Kimi/kimi-k2.6

Kimi

OperationalChat & ReasoningCodingAdvanced ReasoningOutput $3.0856/1M-20%vs officialCommercial useData privacy

Input

Output

Send a message on the left. The reply appears here.

Pricing

This model is priced by the usage dimensions listed here. Compare all pricing.

List prices in USD. Your effective price also depends on the billing group attached to your API key.

Criteria缓存命中kimi-k2.6
$0.1256per 1M0.157/1M
Criteria缓存未命中kimi-k2.6
$0.7432per 1M0.929/1M
CriteriaOutputkimi-k2.6
$3.0856per 1M3.857/1M

API

POST/v1/chat/completions
const BASE_URL = "https://api.dreamtoai.com";
const API_KEY = process.env.MIX_API_KEY;

const headers = {
  "Authorization": `Bearer ${API_KEY}`,
  "Content-Type": "application/json",
};

const payload = {
  "model": "kimi-k2.6",
  "messages": [
    {
      "content": "你好,世界",
      "role": "user"
    }
  ],
  "temperature": 1,
  "top_p": 0.95,
  "max_tokens": 4096,
  "stream": false,
  "presence_penalty": 0,
  "frequency_penalty": 0,
  "n": 1,
  "thinking": {
    "type": "enabled"
  }
};

const submit = await fetch(`${BASE_URL}/v1/jobs`, {
  method: "POST",
  headers,
  body: JSON.stringify(payload),
}).then((r) => r.json());

const status = await fetch(`${BASE_URL}/v1/jobs/${submit.id}`, { headers })
  .then((r) => r.json());
console.log(status);

Create a key in Console → API Keys and replace the placeholder in the sample.

README

kimi-k2.6

Kimi

Why Choose This?

Language and reasoning
Handles writing, analysis, coding and multi-turn conversation in one model.
Pay as you go
Billed per use from your wallet, with no subscription.
Works with your existing SDK
Call it in the OpenAI Chat Completions format, so existing clients only need a new base URL and key.
One key for every model
The same API key works for every model on dreamtoai.

Parameters

ParameterRequiredDescription
messagesarrayRequiredConversation history as a list of role and content messages.
temperaturenumberOptionalSampling temperature. Lower is more focused, higher is more varied. Default: 1.
top_pnumberOptionalNucleus sampling threshold. Default: 0.95.
max_tokensintegerOptionalMaximum number of tokens to generate.
streambooleanOptionalStream the reply as server-sent events. Default: false.
presence_penaltynumberOptional惩罚重复的主题 Default: 0.
frequency_penaltynumberOptional惩罚重复的词句 Default: 0.
nnumberOptionalNumber of outputs to generate. Default: 1.
thinkingobjectOptional思考模式

How to Use

  1. Try it here first — Sign in and run the model in the playground above to check the output before you write code.
  2. Create an API key — Open Console → API Keys and create a key. The same key works for every model.
  3. Write your messages — Put the task and its context in the messages array; add a system prompt to set the assistant behavior.
  4. Set optional parameters — Adjust the optional parameters listed above to control the output.
  5. Send the request — Call POST /v1/chat/completions with the model ID kimi-k2.6.
  6. Read the reply — The reply and its token usage come back in the response and are logged in the console.

Writing Effective Prompts

Clear instructions get better answers. Tell the model who it is, what you need and how the answer should look.

1. Set the role and goal

Open with who the model should act as and what the task is. Put rules that never change in the system prompt.

You are a senior Python reviewer. Review the function below for bugs and readability.

2. Give the context

Paste what the answer depends on: documents, code, data or earlier decisions. Separate each part with a heading or tag.

3. Specify the output

Name the format, length and tone: a table, JSON with given keys, five bullet points, a 200-word summary.

4. Show an example

One or two input and output examples fix the style faster than a long description.

5. Iterate

When an answer misses, add the missing constraint to the prompt instead of starting over.

Prompt
WeakWrite about our product.
StrongYou are a B2B copywriter. Write three 40-word LinkedIn posts announcing our invoicing API for small accounting firms. Tone: confident, plain English, no emojis. End each post with a question.

Pricing

Billing itemPriceOfficial price
缓存命中$0.1256 per 1M$0.157/1M
缓存未命中$0.7432 per 1M$0.929/1M
Output$3.0856 per 1M$3.857/1M

That is 20% below the official list price.

List prices in USD. Your effective price also depends on the billing group attached to your API key. Compare all pricing

Best Use Cases

  • Coding assistants — Generate, review and refactor code, or explain an unfamiliar codebase.
  • Agents and automation — Plan multi-step tasks and call tools from your own workflows.
  • Knowledge work — Summarize reports, draft documents and answer questions over your own content.
  • Customer support — Power help-desk bots and draft replies in a consistent tone.
  • Data extraction — Turn unstructured text into structured JSON for downstream systems.
  • Translation and localization — Translate and adapt copy across languages.

Pro Tips

  • Put stable instructions in the system prompt and keep user messages for the task itself.
  • Set max_tokens to cap the length and cost of each reply.
  • Ask for JSON with the exact keys you need when a program reads the answer.
  • Test prompts in the playground above before wiring them into code.
  • Check token usage in the console to spot unusually expensive prompts.

Browse all LLMsBrowse API Market

FAQ

What is kimi-k2.6?

Kimi

How do I call the kimi-k2.6 API?

Send POST /v1/chat/completions with the model ID kimi-k2.6 and your API key. Ready-to-run samples are in the API section above.

How is billing calculated?

Requests are billed at the prices listed above and charged to your wallet. Final cost depends on usage and the billing group attached to your API key.

Where do I get an API key?

Create one in Console → API Keys. The same key works for every model on the gateway.

Can I use the output commercially?

Yes. You can use what you generate in commercial projects, subject to the model provider’s terms.

About kimi-k2.6 on dreamtoai

Kimi

Related models

Next steps