Back to guides
API·June 8, 2026·7 min read

Claude API — the complete guide to calling Claude on Kunavo

Claude is Anthropic's frontier family for reasoning, coding and agents. This is the hub for calling it on Kunavo — keys, SDKs, models, pricing and caching, all linked.

Claude is Anthropic's frontier family — the default choice for reasoning, coding and agentic workflows. Kunavo serves the whole family through both an OpenAI-compatible API and the native Anthropic Messages API, at roughly 60% under Anthropic's list price, on one Stripe-billed balance. This is the hub for everything Claude on Kunavo.

What you can do with the Claude API

  • Reasoning & analysis — long-context document analysis, multi-step problem solving.
  • Coding — generation, refactoring and review; Sonnet and Opus are strong agentic coders.
  • Vision — image understanding alongside text.
  • Tool use — function calling for agents and structured output.
  • Prompt caching — cache large stable context and pay 10% of the input rate on cache hits.

Get a key and make your first call

Create a key at /app/keys, then keep the OpenAI SDK and point base_url at Kunavo. Step-by-step (and the native Messages API form) is in how to get a Claude API key.

claude.py
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["KUNAVO_API_KEY"],
    base_url="https://api.kunavo.com/v1",
)

resp = client.chat.completions.create(
    model="claude-sonnet-4-6",
    messages=[{"role": "user", "content": "Explain the CAP theorem to a backend engineer."}],
)
print(resp.choices[0].message.content)

Prefer Anthropic's native shape, with cache_control and extended thinking? The same key works against the Messages API (/v1/messages).

Claude models, and when to use each

  • claude-haiku-4-5 — cheapest and fastest; high-volume classification, support, simple extraction.
  • claude-sonnet-4-6 — the balanced default for reasoning, RAG and coding.
  • claude-opus-4-7 — the heaviest reasoner, for the hardest problems and long context.

Pricing

Claude on Kunavo is about 60% under Anthropic's list: Sonnet 4.6 at $1.20/$6.00 per 1M tokens vs $3/$15. Full per-model rates, worked cost examples and the prompt-caching math are in the Claude API pricing guide.

Go deeper

FAQ

How do I get a Claude API key?

Create a Kunavo account, generate a key at /app/keys, and use it with base_url=https://api.kunavo.com/v1. See the full guide.

How much does the Claude API cost?

About 60% under Anthropic's list — Sonnet 4.6 at $1.20/$6.00 per 1M tokens. See the pricing guide.

Can I use the Anthropic SDK or Messages API?

Yes — both the OpenAI-compatible endpoint and the native Messages API (/v1/messages) work on the same key.

Which Claude model should I use?

Sonnet 4.6 as the default; Haiku 4.5 for cheap high-volume work; Opus 4.7 for the hardest reasoning.