跳到主要内容

Text model

Kimi K2.7 Code

moonshotai/kimi-k2.7-code

moonshotai/kimi-k2.7-code is a language model from Moonshot AI you can call on the OceanToken API at $0.95 per 1M input tokens and $4.00 per 1M output tokens, with a 262K-token context window and up to 236K output tokens; it supports reasoning, tool calling, image input.

At a glance

Model IDmoonshotai/kimi-k2.7-code
TypeText
PublisherMoonshot AI
Context window262,144 tokens
Max output235,929 tokens
Input price$0.95 per 1M tokens
Output price$4.00 per 1M tokens
Cached input price$0.19 per 1M tokens
Capabilitiesreasoning, tool calling, image input
Endpoint/v1/chat/completions, /v1/responses
API shapeOpenAI-compatible
In the catalog since2026-06-12

Call it

Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.

curl https://api.oceantoken.ai/v1/chat/completions \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "moonshotai/kimi-k2.7-code", "messages": [{"role": "user", "content": "Hello"}]}'

Compared with similar models

Text models on OceanToken closest to moonshotai/kimi-k2.7-code in price. Every price is what you pay, in US dollars, with no platform fee on top.

ModelPublisherContextPrice (per 1M tokens)
Kimi K2.7 CodeMoonshot AI262,144$0.95 / $4.00
GPT-3.5 Turbo 16K
openai/gpt-3.5-turbo-16k
OpenAI16K$3.00 / $4.00
GLM-5 Turbo
z-ai/glm-5-turbo
Z.ai203K$1.20 / $4.00
GLM-5v Turbo
z-ai/glm-5v-turbo
Z.ai203K$1.20 / $4.00

More from Moonshot AI

All Moonshot AI models on OceanToken

Use it

Create an account All models and prices

Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.