# A drop-in Anthropic-compatible API

Markdown version of https://kymaapi.com/for/anthropic, for agents and crawlers. Same content as the HTML page.

- Generated: 2026-10-06T21:42:05.534Z
- HTML page: https://kymaapi.com/for/anthropic
- Model catalog: https://kymaapi.com/models.md
- Pricing: https://kymaapi.com/pricing.md

Anthropic-compatible

Keep the official Anthropic SDK or Claude Code. Just point `base_url` at Kyma and run the best open-source models through the same `/v1/messages` API: at published per-model rates. No code rewrite.

- [Create account](https://kymaapi.com/signup)
- [Setup Guide](https://kymaapi.com/for/anthropic#setup)

### Same Messages API

Kyma implements the Anthropic `/v1/messages` shape. The official Python & TypeScript SDKs work unchanged: only `base_url` changes.

### Open models, lower cost

Run Qwen, Kimi, DeepSeek, MiniMax and more through Anthropic-shaped requests: pay per use, with $0.50 of signup credit for eligible free-tier models after email verification.

### Automatic fallback

For eligible failures, Kyma API tries another compatible route when available. Requests can still fail.

## Recommended Models

Drop these model ids into your Anthropic-SDK `model` field.

- 1 · Qwen 3.6 Plus · Vision input · Supports reasoning, tool use, vision input. Compare current prices and measured uptime on the model page. · `qwen-3.6-plus` · Reasoning
- 2 · Kimi K2.6 · Vision input · Supports reasoning, tool use, vision input. Compare current prices and measured uptime on the model page. · `kimi-k2.6` · Reasoning
- 3 · MiniMax M2.5 · Tool use · Supports reasoning, tool use. Compare current prices and measured uptime on the model page. · `minimax-m2.5` · Reasoning
- 4 · Gemma 4 31B · Vision input · Supports reasoning, tool use, vision input. Compare current prices and measured uptime on the model page. · `gemma-4-31b` · Reasoning

## Switch guide

1. [Create account](https://kymaapi.com/signup) → 2. Change `base_url` to `https://kymaapi.com` → 3. Keep your existing Anthropic code.

**Anthropic Python SDK**

```
from anthropic import Anthropic

# Point the official SDK at Kyma: only base_url + key change.
client = Anthropic(
    api_key="kyma-xxxxx",                # your Kyma key
    base_url="https://kymaapi.com",    # Kyma is Anthropic-compatible
)

msg = client.messages.create(
    model="qwen-3.6-plus",             # any Kyma model id
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello"}],
)
print(msg.content[0].text)
```

**Anthropic TypeScript SDK**

```
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: "kyma-xxxxx",
  baseURL: "https://kymaapi.com",   // drop-in Anthropic-compatible
});

const msg = await client.messages.create({
  model: "qwen-3.6-plus",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});
console.log(msg.content[0].text);
```

**Claude Code / Anthropic env**

```
# Any tool that reads the standard Anthropic env vars
# (Claude Code, Cline's Anthropic mode, custom scripts):

export ANTHROPIC_BASE_URL="https://kymaapi.com"
export ANTHROPIC_API_KEY="kyma-xxxxx"

# It now hits Kyma's /v1/messages with open-source models.
```

**Raw /v1/messages call**

```
curl https://kymaapi.com/v1/messages \
  -H "x-api-key: kyma-xxxxx" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "qwen-3.6-plus",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello"}]
  }'
```

## Keep your Anthropic code: swap the backend

$0.50 signup credit for eligible free-tier models after email verification. No card required.

[Create account](https://kymaapi.com/signup)

## Explore more

Browse the models that power your Anthropic-SDK calls, compare them, and check live rankings.

- [Qwen 3.6 Plus](https://kymaapi.com/models/qwen-3.6-plus)
- [Kimi K2.6](https://kymaapi.com/models/kimi-k2.6)
- [MiniMax M2.5](https://kymaapi.com/models/minimax-m2.5)
- [Gemma 4 31B](https://kymaapi.com/models/gemma-4-31b)
- [Compare models](https://kymaapi.com/compare)
- [Live model rankings](https://kymaapi.com/rankings)
- [Anthropic SDK guide](https://docs.kymaapi.com/guides/anthropic)
