Skip to content
此頁面尚未提供您使用的語言,因此目前以英文顯示。
Moonshot AI · Kimi

kimi-k2.5 API

Use kimi-k2.5 on APISea for text generation and multi-turn chat through an OpenAI-compatible API.

聊天聊天與文字同步
模型 ID
kimi-k2.5

kimi-k2.5 API 定價

所有價格皆以 USD 計價。比較 APISea 費率與相同計費單位的官方牌價。

Token 類型APISea官方節省
輸入 每 1M tokens$0.4523$0.514−12%
輸出 每 1M tokens$0.6106$0.6939−12%

什麼是 kimi-k2.5?

kimi-k2.5 is a chat model from Moonshot AI’s Kimi family, available through APISea for text generation and conversational applications. Send text messages with user, assistant, and system roles to provide instructions and conversation history. Developers can use this interface to build assistants, draft content, or work with supplied documents. The listed limits are 262,144 input tokens and 262,144 output tokens, giving you explicit boundaries when planning requests.

Call the model through APISea’s OpenAI-compatible Chat Completions interface using one API key and the base URL https://api.apisea.ai/v1. The API offers streaming or complete responses, along with controls such as temperature, top_p, max_tokens, and stop sequences. APISea charges $0.4523 per 1M input tokens and $0.6106 per 1M output tokens on a pay-as-you-go basis, billing only successful requests. The default configuration is about 12% below the provider list price.

kimi-k2.5 的特色

Text Conversation Interface

Send messages with user, assistant, and system roles. Include earlier assistant responses to provide multi-turn conversation context.

Listed Token Limits

kimi-k2.5 has a maximum input of 262,144 tokens and a maximum output of 262,144 tokens.

Flexible Response Delivery

Use stream=true for server-sent events or stream=false to receive the complete response at once.

Generation Controls

Set max_tokens to bound generation and temperature or top_p to adjust output variation. Stop sequences let you define where generation should end.

4 個步驟呼叫 kimi-k2.5 API

  1. 01

    取得 API key

    登入 APISea,儲值 $50 起,並在控制台建立 sk-sea 金鑰。

  2. 02

    設定 base URL

    在 SDK 或 HTTP 用戶端中,將 https://api.apisea.ai/v1 設為 base URL。

  3. 03

    傳送請求

    呼叫 POST /v1/chat/completions,並使用下方的參數及 "model": "kimi-k2.5"。

  4. 04

    處理回應

    讀取回應(或使用 stream: true 串流接收 token)。使用量和費用會顯示在控制台中。

curl https://api.apisea.ai/v1/chat/completions \
  -H "Authorization: Bearer $APISEA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2.5",
    "messages": [
      {"role": "system", "content": "You are a concise assistant."},
      {"role": "user", "content": "Explain what an AI API gateway does in two sentences."}
    ],
    "stream": false
  }'

參數

參數類型必填預設說明
modelstring必填gpt-5Model name
messagesarray必填—List of conversation messages
rolestring必填userRole type
contentstring必填—Message content
temperaturenumber選填—Controls output randomness, range 0-2
max_tokensinteger選填—Maximum number of tokens to generate
streamboolean選填—Whether to use streaming output
top_pnumber選填—Nucleus sampling parameter, range 0-1
frequency_penaltynumber選填—Frequency penalty, range -2.0 to 2.0
presence_penaltynumber選填—Presence penalty, range -2.0 to 2.0
stopstring or array選填—Stop sequences
ninteger選填—Number of completions to generate

使用 kimi-k2.5 可以打造什麼

Conversational Assistants

Build a text assistant that receives user questions, system instructions, and prior messages through the chat interface.

Document Summaries

Supply document text and ask for a summary with a defined structure. Budget the instructions and source text within the listed input limit.

Content Drafting

Create a workflow for drafting and revising text, using system messages to specify tone and user messages to provide the brief.

Internal Knowledge Q&A

Pass relevant reference text alongside employee questions to build a text-based knowledge assistant. Ask the model to distinguish supplied information from unanswered questions.

提升結果品質的技巧

  • 01

    Set an Output Budget

    Choose max_tokens based on the response length your application needs rather than defaulting to the maximum. Output is billed at $0.6106 per 1M tokens.

  • 02

    Tune One Sampling Control

    Use either temperature or top_p to adjust generation, as recommended in the API documentation. Lower temperature values make output more deterministic.

  • 03

    Choose Streaming Explicitly

    Set stream=true for incremental SSE output or stream=false for a complete response. Setting it explicitly avoids relying on endpoint defaults.

  • 04

    Track Token Usage

    Use prompt_tokens, completion_tokens, and total_tokens in the documented usage object to monitor consumption. Trim unnecessary conversation history to reduce billed input tokens.

限制與須知

  • Maximum input is 262,144 tokens; maximum output is 262,144 tokens.

  • The documented message content is text; these facts do not establish image, video, or audio input support.

  • The API accepts up to 4 stop sequences.

kimi-k2.5 API 常見問題

How much does kimi-k2.5 cost on APISea?

APISea charges $0.4523 per 1M input tokens and $0.6106 per 1M output tokens. The default configuration is about 12% below the provider list price, with pay-as-you-go billing only for successful requests.

How do I call kimi-k2.5 through the API?

Use https://api.apisea.ai/v1 as your OpenAI-compatible base URL and send a POST request to /chat/completions with model set to kimi-k2.5 and a messages array. Authenticate with your APISea API key using a Bearer token.

Does kimi-k2.5 support streaming on APISea?

The documented Chat Completions interface supports streaming through stream=true, returning SSE output. Set stream=false to receive the complete response at once.

Which generation parameters can I use?

The documented interface includes temperature, top_p, max_tokens, frequency_penalty, presence_penalty, stop, and n. Temperature ranges from 0–2, while top_p ranges from 0–1.

What are the input and output token limits?

The listed maximum input is 262,144 tokens, and the listed maximum output is 262,144 tokens. Use max_tokens to set the requested generation cap within the output limit.

Can I use kimi-k2.5 commercially?

Commercial use is subject to the provider's terms and applicable APISea terms. Review those terms for your intended application before deploying.

相關模型

涵蓋:250+ 個模型 · 最低儲值 $50

開始使用 kimi-k2.5 開發

一把金鑰,$50 起按量付費,僅對成功的請求收費。