API ManyNew models: Qwen 3.8 Max, Claude Haiku 5.5, Claude Opus 5.5, Claude Sonnet 5.5

Moonshot AI · Text & reasoning · Tool use

Kimi K2 API

Call Kimi K2 with the same key and request shape as every other model in the catalog.

Test it onlineIntegration docs$0.769 in · $3.105 out per 1M tokens
Kimi K2 example

WHY IT FITS

Inside the gateway

Kimi K2 is an OpenAI-compatible chat model with a 131K token context window, priced per million input and output tokens. Point any OpenAI SDK at this endpoint, send the model id with a messages array, and the response carries token usage you can reconcile against the published rate.

OpenAI-compatible

Call Kimi K2 with the standard chat completions request shape.

Per-token pricing

$0.7695 per million input tokens and $3.1050 per million output tokens.

Long context

131K tokens of context for large prompts and documents.

Tool use

Tool use is supported for Kimi K2.

INTEGRATION

Wire it in four steps

  1. Create a key

    Open the dashboard, mint a server-side API key and top up a small balance.

  2. Discover

    Call GET /v1/models to confirm moonshotai/kimi-k2, its live specification and the per-token rate.

  3. Send

    POST /v1/chat/completions with the model id and your messages, using any OpenAI-compatible client.

  4. Read

    The reply comes back in the same response (or as a stream), with token usage and the USD cost.

CALLING

Make your first call

# OpenAI-compatible chat completions
curl https://apimany.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"moonshotai/kimi-k2","messages":[{"role":"user","content":"Hello!"}],"max_tokens":512}'

ONLINE TEST

Send a real message from this page

The request runs against this site's own /v1/chat/completions using your signed-in balance, or an API key if you are not signed in. A pasted key stays in this browser tab and is never stored; the result is charged at the quoted USD price.

Or sign in to chat with your account balance.

GOOD TO KNOW

Integration questions

Is Kimi K2 OpenAI-compatible?
Yes. Send model moonshotai/kimi-k2 to POST /v1/chat/completions with a messages array, exactly like the OpenAI SDK.
How is Kimi K2 billed?
Per token: $0.7695 per million input tokens and $3.1050 per million output tokens. Usage is returned on every response.
What context window does Kimi K2 have?
131K tokens of context, with the output limit published by GET /v1/models.
Which parameters does Kimi K2 support?
Tool use; recognised fields are validated before dispatch.
Can I use my existing API key?
Yes — the same account key works. Confirm the live id and rate with GET /v1/models before wiring it in.

KEEP EXPLORING

Nearby models