Anthropic-compatible

A drop-in
Anthropic-compatible API

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 a fraction of the cost. No code rewrite.

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 — a fraction of frontier pricing, with $0.50 free credits to start.

Never-die routing

4-layer automatic failover across providers. If one is slow or down, Kyma reroutes — your Anthropic-SDK calls just keep working.

Recommended Models

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

1
Qwen 3.6 Plus#1 on Kyma

Highest overall quality with strong reasoning. The default drop-in when you'd reach for a frontier Anthropic model.

qwen-3.6-plus

131K context

2
Kimi K2.5Best agentic

262K context, multimodal, top agentic tool use — great for Claude-style agent loops via the Messages API.

kimi-k2.6

262K context

3
MiniMax M2.5Best for code

Top SWE-bench score globally. Best for complex multi-file coding through Anthropic-compatible tools.

minimax-m2.5

80.2% SWE-bench

4
DeepSeek V4Reasoning

Strong chain-of-thought reasoning at a fraction of frontier cost.

deepseek-v4-pro

Deep reasoning

5
Gemma 4 31BBest Value

Google's open model with the lowest cost per token. Cheap fallback for simple prompts.

gemma-4-31b

Lowest cost

Switch in 30 Seconds

1. Get your free API key2. Change base_url to https://kymaapi.com3. 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="ky-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: "ky-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="ky-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: ky-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 free credits on signup. No credit card required.

Get Free API Key

Explore more

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