DEVELOPER DOCS

Integrate in five minutes

OpenAI, Anthropic Messages, Responses and Gemini compatible. Change only the API key, base URL and model name.

01

Send your first request

Create an API key in the dashboard, then run:

Shell
curl https://api.kimiseek.app/v1/chat/completions \
  -H "Authorization: Bearer $KIMISEEK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-flash-0731",
    "messages": [{"role":"user","content":"Hello"}],
    "stream": true
  }'
02

Authentication

Use a Bearer token for every request. Keys start with ks- and can be copied from the dashboard key list.

Security

Never expose an API key in browser code or a public repository.

03

Supported models and pricing

Copy a model ID from this table into the model field. Rates are KimiSeek's current selling prices for real-time requests.

Model and API IDPricing tierInputCached inputOutputContext
DeepSeek V4 Pro 0813deepseek-v4-pro-0813Alias: deepseek-v4-proPeak (01:00–04:00, 06:00–10:00 UTC)¥6.75¥0.225¥20.251M
Off-peak (all other hours)¥3.375¥0.1125¥10.125
DeepSeek V4 Flash 0731deepseek-v4-flash-0731Alias: deepseek-v4-flashOff-peak (all other hours)¥1.125¥0.0375¥3.3751M
Peak (01:00–04:00, 06:00–10:00 UTC)¥2.25¥0.075¥6.75
DeepSeek V4.1 Flashdeepseek-v4.1-flashAlias: deepseek-flashOff-peak (all other hours)¥0.8¥0.016¥3.21M
Peak (01:00–04:00, 06:00–10:00 UTC)¥1.6¥0.032¥6.4
DeepSeek V4 Flash Vision Expdeepseek-v4-flash-vision-expOff-peak (all other hours)¥0.98¥0.0196¥3.921M
Peak (01:00–04:00, 06:00–10:00 UTC)¥1.96¥0.0392¥7.84
GLM-5.3 Flashglm-5.3-flashStandard¥0.6¥0.1725¥2.11M
Qwen3.8 Maxqwen3.8-maxStandard¥9¥1.125¥27991K
DeepSeek V4.1 Flash 260910deepseek-v4-1-flash-260910Alias: deepseek-v4.1-flash-260910Off-peak (all other hours)¥0.9¥0.018¥3.61M
Peak (01:00–04:00, 06:00–10:00 UTC)¥1.8¥0.036¥7.2
GLM-5.3glm-5.3Alias: GLM-5.3Standard¥6¥1.5¥211.024M
Kimi K3kimi/kimi-k3Alias: kimi-k3Standard¥16¥1.6¥801.048576M
GLM-5.2ZHIPU/GLM-5.2Alias: glm-5.2Standard¥6¥1.5¥211M
Qwen3.8 Flashqwen3.8-flashStandard¥0.64¥0.08¥2.161M
Qwen3.8 27Bqwen3.8-27bStandard¥2.4¥0.48¥9.61M
Qwen3.8 2.4T A95Bqwen3.8-2.4t-a95bStandard¥9.6¥1.2¥28.81M
Qwen3.7 Maxqwen3.7-maxStandard¥9.6¥1.92¥28.8991K
Qwen3.6 Plusqwen3.6-plusInput ≤ 256K¥1.6Input rate¥9.61M
Input > 256K¥6.4Input rate¥38.4
Qwen3.7 Plusqwen3.7-plusInput ≤ 256K¥1.6¥0.32¥6.41M
Input > 256K¥4.8¥0.96¥19.2

Image model pricing

Image models are billed per generated image. Qwen Image also charges for reference images; Z-Image Turbo uses the higher output rate when prompt enhancement is enabled.

Image modelInput / imageOutput / imageEnhanced output / image
Qwen Image 3.0 Proqwen-image-3.0-pro¥0.016¥0.2
Qwen Image 3.0qwen-image-3.0¥0.016¥0.144
Wan 2.7 Image Prowan2.7-image-pro¥0¥0.4
Wan 2.7 Imagewan2.7-image¥0¥0.16
Z-Image Turboz-image-turbo¥0¥0.08¥0.16

Prices are in CNY per 1M tokens. Plus tiers use input-token count; DeepSeek V4 models use the request start time. View full Batch and explicit-cache pricing

A machine-readable catalog is also available at: GET https://api.kimiseek.app/v1/models

DeepSeek V4 Flash examples

These examples use the canonical ID deepseek-v4-flash-0731; the shorter alias deepseek-v4-flash is also accepted. Both protocols use the same KimiSeek API key.

Shell · OpenAI-compatible
curl https://api.kimiseek.app/v1/chat/completions \
  -H "Authorization: Bearer $KIMISEEK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-flash-0731",
    "messages": [{"role":"user","content":"Hello"}]
  }'
Shell · Anthropic Messages
curl https://api.kimiseek.app/v1/messages \
  -H "x-api-key: $KIMISEEK_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-flash-0731",
    "max_tokens": 1024,
    "messages": [{"role":"user","content":"Hello"}]
  }'

Image generation API

Call image models with /v1/images/generations. Set image to HTTPS references or image data URLs when editing.

Shell · Images API
curl https://api.kimiseek.app/v1/images/generations \
  -H "Authorization: Bearer $KIMISEEK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen-image-3.0-pro",
    "prompt": "A red panda reading under a cedar tree",
    "size": "1024x1024",
    "n": 1
  }'

Use the official OpenAI SDK

Change only model to switch providers. Each request is routed to the upstream configured for that model.

TypeScript · OpenAI SDK
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.KIMISEEK_API_KEY,
  baseURL: "https://api.kimiseek.app/v1",
});

const response = await client.chat.completions.create({
  model: "qwen3.7-plus",
  messages: [{ role: "user", content: "Analyze this code" }],
});
04

Claude Code and Codex

Configure with CC Switch

Use the CC Switch interface to add KimiSeek as a provider for Codex and Claude Code separately.

  1. Create or copy a KimiSeek API key in the dashboard first. Open API key management
  2. Open CC Switch, select Codex or Claude Code, and add a custom provider, or edit an existing one.
  3. Enter the provider details below. Website and notes are optional and can be left blank.
    Provider name
    kimiseek
    API Key
    Your own KimiSeek API key (starting with ks-)
    Default model
    glm-5.3-flash

    The screenshots use glm-5.3-flash. You can also copy an available model ID from the catalog above.

  4. Enter the API request address (Base URL) shown below for your client. Leave the Full URL switch off.
  5. Click Save, enable KimiSeek in that client's provider list, then restart the client. Configure and enable each client separately if you use both.

Codex

The Codex Base URL must include the /v1 suffix.
API request address · Base URL
https://api.kimiseek.app/v1
CC Switch · Codex · https://api.kimiseek.app/v1
Codex · Configuration screenshot (click for full size)

Claude Code

The Claude Code Base URL must not include the /v1 suffix.
API request address · Base URL
https://api.kimiseek.app/
CC Switch · Claude Code · https://api.kimiseek.app/
Claude Code · Configuration screenshot (click for full size)

Claude Code uses the Anthropic Messages compatibility endpoint.

Shell · Claude Code
export ANTHROPIC_BASE_URL="https://api.kimiseek.app"
export ANTHROPIC_AUTH_TOKEN="ks-your-key"
export ANTHROPIC_MODEL="deepseek-v4-pro-0813"

claude

Codex uses the Responses API and reads KIMISEEK_API_KEY from the environment.

TOML · Codex
model = "qwen3.7-max"
model_provider = "kimiseek"

[model_providers.kimiseek]
name = "KimiSeek"
base_url = "https://api.kimiseek.app/v1"
env_key = "KIMISEEK_API_KEY"
wire_api = "responses"
Gemini protocol

generateContent and streamGenerateContent are supported; pass the key with x-goog-api-key.

05

Streaming

Set stream: true for standard SSE. Generated usage is settled when the stream completes or is interrupted.

Error codes

400Invalid request or model name401Invalid API key or exhausted quota402Insufficient CNY balance503Model channel unavailable

CNY billing

Input, cached input and output tokens are multiplied by their rates and settled entirely in CNY.