GET
/v1/models/opencode/kimi-k2.7-code
Accept:
| rawId | kimi-k2.7-code |
| displayName | Kimi K2.7 Code |
| id | opencode-kimi-k2-7-code |
| activity | chat |
| schemaEndpointId | inference/openai/v1/chat/completions |
| releasedAt | 1781222400 — Jun 12, 2026 |
| firstSeenAt | 1781222400 — Jun 12, 2026 |
| lastSeenAt | 1795361658 — 7m ago |
| pricing | $0.95 / 1M input · $4 / 1M output → open calculator input_tokens (usage) · output_tokens (usage) · cache_read_tokens (usage) |
| contextWindow | 262144 |
| maxOutput | 262144 |
| modalities | {"input":["text","image","video"],"output":["text"]} |
| capabilities | {"tools":true,"reasoning":true,"structured_outputs":true,"vision":true} |
| knowledgeCutoff | "2025-01" |
| openWeights | true |
| requestMap | {"thinking":null,"maxTokensField":null,"developerRole":null,"replayReasoningContent":true,"store":null,"strictTools":null,"sessionAffinity":null,"cacheControl":null,"toolStream":null,"reasoningEffort":null} |
| providerMetadata | {"id":"kimi-k2.7-code","name":"Kimi K2.7 Code","description":"Coding-focused Kimi model, stronger on long-horizon repo work with less overthinking","family":"kimi-code","attachment":true,"reasoning":true,"reasoning_options":[],"tool_call":true,"interleaved":{"field":"reasoning_content"},"structured_output":true,"temperature":false,"knowledge":"2025-01","release_date":"2026-06-12","last_updated":"2026-06-12","modalities":{"input":["text","image","video"],"output":["text"]},"open_weights":true,"limit":{"context":262144,"output":262144},"provider":{"api":"https://opencode.ai/inference/openai/v1"},"cost":{"input":0.95,"output":4,"cache_read":0.19},"canonical_model_id":"moonshotai/kimi-k2.7-code"} |
| weightsUrl | not published by this provider’s list endpoint |
Endpoints & schemas
GET /v1/schemas/opencode →| endpoint | activity |
|---|---|
| inference/openai/v1/chat/completions | chat |
endpoints matching this model — the provider has more, see /v1/schemas/opencode
Use it
shell
$ curl https://modelschemas.com/v1/schemas/opencode/chat/inference/openai/v1/chat/completions # request schema
$ curl -X POST https://modelschemas.com/v1/validate -d '{"provider":"opencode","endpointId":"inference/openai/v1/chat/completions","payload":{…}}'
$ curl -X POST https://modelschemas.com/v1/estimate -d '{"provider":"opencode","model":"kimi-k2.7-code","usage":{"input_tokens":1200,"output_tokens":400}}'