Keep your SDK. Connect in minutes.
Point the Base URL to api.acedata.cloud, configure your platform API key and the model ID below, and use your compatible SDK or client.
- API host
api.acedata.cloud- model
kimi-k2.7-code
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["ACEDATACLOUD_API_KEY"],
base_url="https://api.acedata.cloud/v1",
)
response = client.chat.completions.create(
model="kimi-k2.7-code",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)Choose an available protocol for this model. OpenAI SDK uses a Base URL ending in /v1; Anthropic SDK uses the root URL. See each guide for protocol-specific parameters, tools and response formats.
Kimi Model for Code Understanding and Tool Collaboration
Kimi K2.7 Code is designed for programming, long-context instruction following, and multi-step tool calls. Submit text, code, or images through Chat Completions and continuously refine implementations based on test results.
Specifications and API
- Model ID
- kimi-k2.7-code
- Input and Output
- Text, code, and image message input; assistant text output
- Standard Endpoint
- POST /v1/chat/completions
- Response Fields
- choices[].message.content and usage
The official model context window is 256K tokens; request limits and available parameters on this platform are subject to the API documentation.
Code Understanding and Modification
Submit relevant files, error messages, and constraints so the model can analyze dependencies, propose modifications, and explain its reasoning. Include test output in the next message to continue checking whether the fixes meet the requirements.
Use Cases
Suitable for repository Q&A, scoped code fixes, frontend implementation, and programming tasks requiring multiple rounds of tool feedback. Images can serve as interface references, but actual pages still need to be validated by running them.
Tool Calls and Conversation History
Declare functions through tools, let the application execute the returned tool calls, and then feed the results back into messages. Save complete assistant messages and reasoning content to support continued multi-turn workflows.
Getting Started
Explicitly set model to kimi-k2.7-code and submit messages. For standard requests, read the complete JSON response; when stream is enabled, read the continuous output. Do not pass the thinking toggle or reasoning_effort for this model.
Usage and Pricing
This platform charges at the same pricing tier as K2.6, with input, output, and cache hits billed according to actual usage. For specific Credits rates, please visit this model's pricing page.
Frequently Asked Questions
What is the model ID?
Use kimi-k2.7-code, paying attention to the decimal point and the code suffix.
Can Thinking be disabled?
This model does not provide an option to disable reasoning; omit thinking and reasoning_effort from the request.
How do I send images?
Use an image_url image block in the user message, and include the task requirements and desired output.
Will tools execute automatically?
Tool calls are executed by the integrating application. Feed the results back into messages so the model can continue its analysis.
How can I verify that changes are effective?
Verify changes through actual builds, tests, and business acceptance results. Do not judge task completion solely based on responses or code snippets.
Use it in your favorite tools
Choose a development approach or application suited to this model and follow its setup guide.
Connect kimi-k2.7-code to OpenAI SDK
OpenAI Chat Completions API
SDK installation, authentication and examplesConnect kimi-k2.7-code to Cherry Studio
Using Ace Data Cloud with Cherry Studio
Chat client setup · Base URL, API key and modelConnect kimi-k2.7-code to ChatBox
Using Ace Data Cloud with ChatBox
Chat client setup · Base URL, API key and modelKimi Chat Completions API
API parameters and request examplesInput
$0.30per 1M tokens
Output
$1.23per 1M tokens
You pay$13,584for 142,800 credits · $0.0951 / credits46% OFF
You're billed in credits. Pick a top-up tier to see its per-credit rate — the larger the top-up, the cheaper each credit.
Quickstart
This is only a basic call example. See the full docs for more parameters and advanced usage.
View Docs

