Kimi-K2.7-Code

Long-context code model for software-development and agentic coding tasks.

API IDKimi-K2.7-Code
View setup
View usage

Overview

Context
262,144 tokens
Input
Text
Output
Text
Providers
Azure AI Foundry
Released
Jun 2026
Latest operational check
Healthy
API compatibility
  • OpenAI Chat Completions
Recommended for
  • Code generation and explanation
  • Agentic software-development workflows

Keep in mind: A specialized AI Service matches the workload more directly

Supported features
  • Function calling: Not supported
  • Structured outputs: Not supported
  • Vision: Not supported
  • Streaming: Supported
  • Reasoning: Not supported
  • Prompt caching: Not supported
Supported parameters
frequency_penaltyfunction_callfunctionslogit_biaslogprobsmax_completion_tokensmax_tokensnparallel_tool_callspredictionpresence_penaltyprompt_cache_keyresponse_formatseedservice_tierstopstorestreamstream_optionstemperaturetool_choicetoolstop_logprobstop_p
View API reference

Make your first request

View full setup
curl --fail-with-body https://gateway.primexos.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"Kimi-K2.7-Code","messages":[{"role":"user","content":"Hello from Primex"}],"stream":false}'

Executing this request uses your account’s API credits.