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 个 token$0.4523$0.514−12%
输出 每 1M 个 token$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 密钥

    登录 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 起,仅对成功请求计费。