# Models & Pricing

Commonstack gives you access to models from OpenAI, Anthropic, Google, DeepSeek, xAI, MiniMax, Zhipu, and others through a single API. New models are added regularly.

Browse the full list with real-time pricing at the [Model Library](https://commonstack.ai/model-library).

### **Model IDs**

When making API calls, use the model ID in `provider/model-name` format. For example:

| Model Library name           | API model ID                         | Context |
| ---------------------------- | ------------------------------------ | ------- |
| Anthropic: Claude Sonnet 4.6 | `anthropic/claude-sonnet-4-20250514` | 1M      |
| Anthropic: Claude Opus 4.6   | `anthropic/claude-opus-4-6`          | 1M      |
| OpenAI: GPT-4.1              | `openai/gpt-4.1`                     | 1M      |
| MiniMax: MiniMax M2.5        | `minimax/minimax-m2.5`               | 205K    |
| Zhipu: GLM 5                 | `zhipu/glm-5`                        | 203K    |

> The exact model IDs (slugs) are returned by the `GET /v1/models` endpoint. Always use those values in your API requests.

### **Pricing**

Commonstack uses pay-as-you-go pricing. No monthly subscriptions, no minimum commitments. You pay only for the tokens you process.

Pricing is per 1M tokens with separate rates for input and output. Some models also support prompt caching at reduced rates. All usage across providers is consolidated into a single bill through your Commonstack account.

| Model             | Input / 1M | Output / 1M | Cache In / 1M | Cache Out / 1M |
| ----------------- | ---------- | ----------- | ------------- | -------------- |
| Claude Sonnet 4.6 | $3         | $15         | $3.75         | $0.30          |
| Claude Opus 4.6   | $5         | $25         | $6.25         | $0.50          |
| MiniMax M2.5      | $0.30      | $1.20       | —             | $0.03          |
| GLM 5             | $1         | $3.20       | —             | $0.20          |

For the complete and up-to-date list, see the [Model Library](https://commonstack.ai/model-library).

### **Payment methods**

Commonstack accepts credit cards and Alipay. Top up your account balance from your dashboard.

{% hint style="success" icon="tag" %}

### **New user bonus**

Get a 20% bonus on your first top-up, up to $500. For example, a $100 top-up gives you $120 in credits.
{% endhint %}

See [payment-and-billing](https://docs.commonstack.ai/platform/payment-and-billing "mention") for full details.

### **Thinking / reasoning tokens**

For models that produce thinking tokens (like Claude with extended thinking or DeepSeek-R1), thinking tokens are billed at the same rate as output tokens.

### **Image tokens**

For multimodal requests that include images, the provider converts images to tokens and returns the token count. You're billed based on whatever token count the provider reports, at that model's standard rates.

### **Fetching models programmatically**

```bash
curl https://api.commonstack.ai/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Returns an OpenAI-compatible response:

```json
{
  "data": [
    {
      "created": 1771947162,
      "id": "x-ai/grok-4-1-fast-non-reasoning",
      "object": "model",
      "owned_by": "xAI"
    },
    {
      "created": 1763447647,
      "id": "openai/gpt-oss-120b",
      "object": "model",
      "owned_by": "OpenAI"
    }
  ],
  "object": "list"
}
```
