All models

kimi-k2.7-code

MoonshotChatReasoningVision
Get your API key
STANDARD APIs · QUICK SETUP

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
Get your API key
OpenAI Python SDK
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.

Please send the HTML fragment you want translated into English.
kimi-k2.7-code

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.

Please send the HTML fragment you'd like translated into English.