# AI21 models

2 models · one OpenAI-compatible API

2 AI21 models are on OpenCheap, each at its own price per 1M tokens. The cheapest to call is jamba-1.5-mini, at $0.21 per 1M input tokens and $0.42 per 1M output tokens. The largest context is jamba-1.5-large's, 256K tokens. Prices are per 1M input / output tokens, as of 2026-12-04 11:48 UTC.

## Every AI21 model

Price per 1M tokens, input / output

- [jamba-1.5-large](https://opencheap.si/models/jamba-1.5-large): jamba-1.5-large $2.10 / $8.40 · 256K context · 1 provider
- [jamba-1.5-mini](https://opencheap.si/models/jamba-1.5-mini): jamba-1.5-mini $0.21 / $0.42 · 256K context · 1 provider

## Call any AI21 model

Every model from AI21 is called the same way: point the OpenAI SDK at `https://api.opencheap.si/v1` with your OpenCheap key and pass the model id, for example [opencheap/jamba-1.5-large](https://opencheap.si/models/jamba-1.5-large). Each request goes to the cheapest healthy provider of that model, and every answer reports what it cost in `usage.cost`. You pay per token from one prepaid balance, and credits never expire.

```
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/jamba-1.5-large",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

---

Source: https://opencheap.si/models/lab/ai21 · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
