ModelliSupportoAziendaBlog
500+ API di Modelli AI, Tutto In Una Sola API. Solo In CometAPI
API dei Modelli
Sviluppatore
Avvio RapidoDocumentazioneDashboard API
Risorse
Modelli di Intelligenza ArtificialeBlogAziendaRegistro delle modificheChi siamo
2025 CometAPI. Tutti i diritti riservati.Informativa sulla PrivacyTermini di Servizio
Home/Models/Moonshot AI/Kimi-K2
M

Kimi-K2

Ingresso:$0.48/M
Uscita:$1.92/M
- **kimi-k2-250905**: versione 0905 della serie Kimi K2 di Moonshot AI, con supporto per contesti ultralunghi (fino a 256k token, frontend e chiamate Tool). - 🧠 Tool Calling migliorato: accuratezza al 100%, integrazione fluida, adatto ad attività complesse e all'ottimizzazione dell'integrazione. - ⚡️ Prestazioni più efficienti: TPS fino a 60-100 (API standard), fino a 600-100 in modalità Turbo, offrendo risposte più rapide e capacità di Inference migliorate, limite di conoscenza fino a metà 2025.
Nuovo
Uso commerciale
Panoramica
Caratteristiche
Prezzi
API
Versioni

Technical Specifications of kimi-k2

ItemDetails
Model IDkimi-k2
ProviderMoonshot AI
Version referencedkimi-k2-250905
Context windowUp to 256k tokens
Tool callingSupported
PerformanceStandard API TPS up to 60–100
Turbo performanceTurbo mode TPS up to 600–100
Knowledge cutoffUp to mid-2025
Best forUltra-long context tasks, complex tool workflows, integration optimization

What is kimi-k2?

kimi-k2 is CometAPI’s platform identifier for Moonshot AI’s Kimi K2 series 0905 version. It is designed for ultra-long-context workloads, with support for up to 256k tokens as well as frontend and Tool calls. The model is positioned for users who need strong performance on complex tasks, especially scenarios that benefit from reliable tool orchestration, long-document handling, and fast inference.

On CometAPI, kimi-k2 can be used as the model ID when sending compatible chat completion requests through the unified API, making it easier to integrate Moonshot AI capabilities into existing applications without changing provider-specific infrastructure.

Main features of kimi-k2

  • Ultra-long context: Supports contexts up to 256k tokens, making it suitable for long documents, extended conversations, large codebases, and multi-step task execution.
  • Enhanced Tool Calling: Built for strong tool-use performance with 100% accuracy claims, enabling seamless integration for complex workflows, external function execution, and automation-heavy applications.
  • Efficient performance: Delivers TPS up to 60–100 through the standard API, helping reduce latency for production use cases that require responsive outputs.
  • Turbo mode acceleration: Offers Turbo mode throughput up to 600–100, improving response speed for high-demand or large-scale inference scenarios.
  • Integration-friendly design: Supports frontend and Tool calls, making it easier to embed into apps, agent systems, and operational pipelines.
  • Stronger inference capability: Optimized to provide improved reasoning and task execution quality for sophisticated business and developer workflows.
  • Recent knowledge coverage: Includes a knowledge cutoff up to mid-2025, which helps on tasks requiring relatively recent background knowledge compared with older-generation models.

How to access and integrate kimi-k2

Step 1: Sign Up for API Key

To use kimi-k2, first create an account on CometAPI and generate your API key from the dashboard. After you have your key, store it securely and use it in the Authorization header for all API requests.

Step 2: Send Requests to kimi-k2 API

Send requests to CometAPI’s compatible chat completions endpoint and specify kimi-k2 as the model name.

curl --request POST \
  --url https://api.cometapi.com/v1/chat/completions \
  --header "Authorization: Bearer YOUR_COMETAPI_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "model": "kimi-k2",
    "messages": [
      {
        "role": "user",
        "content": "Summarize the following document and identify key action items."
      }
    ]
  }'
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_COMETAPI_KEY",
    base_url="https://api.cometapi.com/v1"
)

response = client.chat.completions.create(
    model="kimi-k2",
    messages=[
        {
            "role": "user",
            "content": "Summarize the following document and identify key action items."
        }
    ]
)

print(response.choices[0].message.content)

Step 3: Retrieve and Verify Results

After receiving the response, parse the returned content from the API response object and validate that the output matches your task requirements. For production integrations, you should also verify structured fields, check tool outputs when applicable, and add retries, logging, and guardrails to improve reliability.

Funzionalità per Kimi-K2

Esplora le caratteristiche principali di Kimi-K2, progettato per migliorare le prestazioni e l'usabilità. Scopri come queste funzionalità possono beneficiare i tuoi progetti e migliorare l'esperienza utente.

Prezzi per Kimi-K2

Esplora i prezzi competitivi per Kimi-K2, progettato per adattarsi a vari budget e necessità di utilizzo. I nostri piani flessibili garantiscono che paghi solo per quello che usi, rendendo facile scalare man mano che i tuoi requisiti crescono. Scopri come Kimi-K2 può migliorare i tuoi progetti mantenendo i costi gestibili.
Prezzo Comet (USD / M Tokens)Prezzo Ufficiale (USD / M Tokens)Sconto
Ingresso:$0.48/M
Uscita:$1.92/M
Ingresso:$0.6/M
Uscita:$2.4/M
-20%

Codice di esempio e API per Kimi-K2

Accedi a codice di esempio completo e risorse API per Kimi-K2 per semplificare il tuo processo di integrazione. La nostra documentazione dettagliata fornisce una guida passo dopo passo, aiutandoti a sfruttare appieno il potenziale di Kimi-K2 nei tuoi progetti.
Python
JavaScript
Curl
from openai import OpenAI
import os

# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"
BASE_URL = "https://api.cometapi.com/v1"

client = OpenAI(base_url=BASE_URL, api_key=COMETAPI_KEY)

completion = client.chat.completions.create(
    model="kimi-k2-0905-preview",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello!"},
    ],
)

print(completion.choices[0].message.content)

Python Code Example

from openai import OpenAI
import os

# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"
BASE_URL = "https://api.cometapi.com/v1"

client = OpenAI(base_url=BASE_URL, api_key=COMETAPI_KEY)

completion = client.chat.completions.create(
    model="kimi-k2-0905-preview",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello!"},
    ],
)

print(completion.choices[0].message.content)

JavaScript Code Example

import OpenAI from "openai";

// Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
const COMETAPI_KEY = process.env.COMETAPI_KEY || "<YOUR_COMETAPI_KEY>";
const BASE_URL = "https://api.cometapi.com/v1";

const client = new OpenAI({
  apiKey: COMETAPI_KEY,
  baseURL: BASE_URL,
});

async function main() {
  const completion = await client.chat.completions.create({
    model: "kimi-k2-0905-preview",
    messages: [
      { role: "system", content: "You are a helpful assistant." },
      { role: "user", content: "Hello!" },
    ],
  });

  console.log(completion.choices[0].message.content);
}

main();

Curl Code Example

#!/bin/bash
# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here

curl "https://api.cometapi.com/v1/chat/completions" \
  -H "Authorization: Bearer $COMETAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kimi-k2-0905-preview",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Hello!"}
    ]
  }'

Versioni di Kimi-K2

Il motivo per cui Kimi-K2 dispone di più snapshot può includere fattori potenziali come variazioni nell'output dopo aggiornamenti che richiedono snapshot precedenti per coerenza, offrire agli sviluppatori un periodo di transizione per l'adattamento e la migrazione, e diversi snapshot corrispondenti a endpoint globali o regionali per ottimizzare l'esperienza utente. Per le differenze dettagliate tra le versioni, si prega di fare riferimento alla documentazione ufficiale.
version
kimi-k2-0711-preview
kimi-k2-0905-preview
kimi-k2-250905
kimi-k2-thinking
kimi-k2.5
kimi-k2-thinking-turbo

Altri modelli