> ## Documentation Index
> Fetch the complete documentation index at: https://mixroute.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Kimi K2.8 Preview

> Kimi K2.8 Preview | 文字生成

文字生成 · `kimi-k2.8-preview`

使用此完整 MixRoute 模型 ID 選擇路由。

`POST /v1/chat/completions`

請在 [MixRoute 模型廣場](https://console.mixroute.ai/models) 確認金鑰分組的可用性。列入目錄不代表路由已開放。

> [!WARNING]
>
> 此請求格式需要目前的 MixRoute 分組已啟用該模型的計費設定。如傳回 `model_price_error`，請聯絡 MixRoute 支援；調整提示詞無法開通路由。

## 快速範例

執行前請設定 `MIXROUTE_API_KEY`。

```bash theme={null}
curl --fail-with-body --request POST 'https://api.mixroute.ai/v1/chat/completions' \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "kimi-k2.8-preview",
  "messages": [
    {
      "role": "user",
      "content": "Reply with OK only."
    }
  ],
  "max_tokens": 64
}'
```

從 `choices[0].message.content` 讀取文字。

## 參數

| 欄位 | 說明 |
| - | - |
| `model` | `kimi-k2.8-preview`. 使用上方列出的完整模型 ID。 |
| `messages` | 範例中的輸入對話。 |

## API 參考

* [Chat Completions](https://mixroute.ai/docs/zh-Hant/api-reference/endpoint/chat-openai.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.