Cara memakai Kimi K2.6 lewat Moonshot API tanpa salah model ID
Untuk Kimi K2.6 di API resmi Moonshot, gunakan base url dan endpoint /chat/completions; model ID sebaiknya diambil dari GET /models. Endpoint penting: /chat/completions untuk chat, /models untuk daftar model, /users/me/balance untuk saldo, dan /batches untuk batch job.
Cách dùng Kimi K2.6 qua API Moonshot: endpoint đúng và model IDLuồng nên dùng: cấu hình endpoint Moonshot, gọi /models để xác minh model ID, rồi gửi request chat.
Prompt AI
Create a landscape editorial hero image for this Studio Global article: Cách dùng Kimi K2.6 qua API Moonshot: endpoint đúng và model ID. Article summary: Dùng Kimi K2.6 qua API Moonshot bằng OpenAI SDK với base url https://api.moonshot.ai/v1, rồi gọi /chat/completions; điểm cần kiểm chứng là model ID, nên gọi /models trong tài khoản thay vì đoán.. Topic tags: ai, kimi, moonshot ai, llm, api. Reference image context from search candidates: Reference image 1: visual subject "# Moonshot AI (Kimi K2.6). ## Step 1: Create a Moonshot API account. Go to and create a new Moonshot API account. ## Step 2: Set up Moonshot API account. To use the model via API," source context "Moonshot AI (Kimi K2.6)" Reference image 2: visual subject "Connect and use Kimi K2.6 from Moonshot AI with API Key - Featured image. # How to use Kimi K2.6 from Moonshot AI with API Key on TypingMind. Learn how to access and
openai.com
Kalau Anda sudah terbiasa dengan OpenAI SDK, integrasi Kimi K2.6 lewat API resmi Moonshot relatif lurus. Yang perlu dijaga justru bukan URL-nya, melainkan nilai model yang dikirim. Kimi Open Platform menyebut API HTTP mereka kompatibel dengan OpenAI, dapat dipanggil memakai OpenAI SDK, dan untuk SDK cukup mengubah base_url ke https://api.moonshot.ai/v1; jika HTTP langsung, path chat lengkapnya adalah https://api.moonshot.ai/v1/chat/completions. [13]
Masalahnya, halaman List Models sudah mengumumkan Kimi K2.6, tetapi contoh respons dokumentasinya masih menampilkan idkimi-k2.5. Jadi, untuk integrasi produksi, jangan menebak nama model. Panggil
GET /models
dari akun Moonshot Anda dan pakai nilai id yang benar-benar dikembalikan API. [17]
Endpoint yang perlu diingat
Kebutuhan
Konfigurasi atau endpoint
Catatan
Memakai OpenAI SDK
base_url = https://api.moonshot.ai/v1
Kimi menyebut API-nya OpenAI-compatible dan SDK OpenAI bisa dipakai langsung. [13]
Chat completions
POST https://api.moonshot.ai/v1/chat/completions
API overview memberi full path ini; dokumentasi Chat API memakai struktur model dan messages. [13][14]
Daftar model
GET https://api.moonshot.ai/v1/models
Endpoint ini mengembalikan daftar model; contoh respons memiliki field id. [17]
Dokumentasi Batch API menyediakan endpoint untuk membuat batch. [16]
Alur aman sebelum mengirim request produksi
Siapkan API key Moonshot. Contoh API Kimi memakai header
Authorization: Bearer ...
; dokumentasi TypingMind untuk Kimi K2.6 juga menggambarkan alur membuat akun Moonshot API, mengisi balance, dan mengambil API key. [2][15][17]
Setel client seperti API OpenAI. Jika memakai OpenAI SDK, bagian pentingnya adalah mengganti base_url ke https://api.moonshot.ai/v1. [13]
Panggil /models lebih dulu. Endpoint List Models memang dibuat untuk menampilkan model yang tersedia dan responsnya memuat field id; nilai inilah yang sebaiknya Anda kirim sebagai parameter model. [17]
Kirim request chat dengan model dan messages. Dokumentasi Chat API menunjukkan pola request dengan model dan messages, sementara API overview mencantumkan endpoint /chat/completions. [13][14]
Cek saldo atau pakai batch bila perlu. Kimi menyediakan endpoint balance untuk mengecek akun dan endpoint batch untuk membuat batch job. [15][16]
Contoh Python dengan OpenAI SDK
Contoh berikut memakai base_url resmi yang disebutkan Kimi untuk OpenAI SDK. [13] Variabel KIMI_MODEL_ID harus diisi dari nilai id hasil
GET /models
, bukan dari tebakan nama produk atau salinan model ID milik gateway lain. [17]
python
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ['MOONSHOT_API_KEY'],
base_url='https://api.moonshot.ai/v1',
)
response = client.chat.completions.create(
model=os.environ['KIMI_MODEL_ID'],
messages=[
{'role': 'user', 'content': 'Halo, perkenalkan diri secara singkat.'}
],
)
print(response)
Contoh cURL: ambil model ID, lalu panggil chat
Langkah pertama yang paling aman adalah melihat daftar model di akun Moonshot/Kimi Anda, karena endpoint ini mengembalikan daftar model beserta field id. [17]
Setelah memilih id yang sesuai dari respons, kirim request ke Chat Completions. Full path /chat/completions dan struktur request model plus messages sama-sama disebutkan dalam dokumentasi Kimi. [13][14]
Jika request gagal karena billing, atau Anda ingin memastikan akun siap sebelum integrasi, Kimi menyediakan endpoint balance di /users/me/balance dan contoh dokumentasinya memakai Bearer token. [15]
Jangan campur model ID Moonshot dengan gateway lain
Beberapa penyedia perantara punya model ID sendiri untuk Kimi K2.6. AIMLAPI, misalnya, memakai endpoint https://api.aimlapi.com/v1/chat/completions dengan model moonshot/kimi-k2-6. [1] OpenRouter menampilkan model moonshotai/kimi-k2.6 pada halaman API mereka. [5]
ID tersebut hanya aman dipakai jika Anda memang memanggil gateway yang bersangkutan. Jika request dikirim ke endpoint resmi https://api.moonshot.ai/v1/chat/completions, cara yang paling minim risiko adalah memanggil
GET https://api.moonshot.ai/v1/models
dan memakai id yang dikembalikan Moonshot untuk akun Anda. [13][17]
Ringkasnya
Alur implementasi yang rapi adalah: ambil API key, setel OpenAI SDK dengan base_urlhttps://api.moonshot.ai/v1, panggil /models untuk memverifikasi model ID Kimi K2.6, lalu kirim request ke /chat/completions dengan model dan messages. Dengan cara ini, Anda mengikuti dokumentasi OpenAI-compatible milik Kimi sekaligus menghindari kesalahan umum: menyalin model ID dari AIMLAPI atau OpenRouter ke endpoint Moonshot resmi. [1][5][13][14][17]
Studio Global AI
Search, cite, and publish your own answer
Use this topic as a starting point for a fresh source-backed answer, then compare citations before you share it.
Untuk Kimi K2.6 di API resmi Moonshot, gunakan base url https://api.moonshot.ai/v1 dan endpoint /chat/completions; model ID sebaiknya diambil dari GET /models.
Endpoint penting: /chat/completions untuk chat, /models untuk daftar model, /users/me/balance untuk saldo, dan /batches untuk batch job.
ID seperti moonshot/kimi k2 6 dari AIMLAPI atau moonshotai/kimi k2.6 dari OpenRouter adalah ID khusus gateway masing masing, bukan otomatis ID untuk endpoint Moonshot.
Người ta cũng hỏi
Câu trả lời ngắn gọn cho "Cara memakai Kimi K2.6 lewat Moonshot API tanpa salah model ID" là gì?
Untuk Kimi K2.6 di API resmi Moonshot, gunakan base url https://api.moonshot.ai/v1 dan endpoint /chat/completions; model ID sebaiknya diambil dari GET /models.
Những điểm chính cần xác nhận đầu tiên là gì?
Untuk Kimi K2.6 di API resmi Moonshot, gunakan base url https://api.moonshot.ai/v1 dan endpoint /chat/completions; model ID sebaiknya diambil dari GET /models. Endpoint penting: /chat/completions untuk chat, /models untuk daftar model, /users/me/balance untuk saldo, dan /batches untuk batch job.
Tôi nên làm gì tiếp theo trong thực tế?
ID seperti moonshot/kimi k2 6 dari AIMLAPI atau moonshotai/kimi k2.6 dari OpenRouter adalah ID khusus gateway masing masing, bukan otomatis ID untuk endpoint Moonshot.
Tôi nên khám phá chủ đề liên quan nào tiếp theo?
Tiếp tục với "Phân tích nghiên cứu: Trẻ học từ nhờ nghe nhiều hơn hay xử lý từ nhanh hơn?" để có góc nhìn khác và trích dẫn bổ sung.
Tìm kiếm và kiểm chứng thông tin: Cách dùng Kimi K2.6 qua API như thế nào?
Studio Global AI19 nguồn
Câu trả lời được trích dẫn
Có thể dùng Kimi K2.6 qua API theo cách gần giống OpenAI API, nhưng từ bằng chứng hiện có, phần chắc chắn nhất là cách kết nối vào nền tảng Kimi/Moonshot và các endpoint chính; còn ví dụ payload đầy đủ riêng cho đúng model ID của Kimi K2.6 thì bằng chứng hiện tại chưa hiển thị rõ. [3][7][8]
Cách dùng qua API chính thức của Kimi/Moonshot
Kimi Open Platform cung cấp HTTP API tương thích OpenAI, nên có thể dùng trực tiếp OpenAI SDK. [3]
Khi dùng SDK, cần đặt base_url là https://api.moonshot.ai/v1. [3]
Nếu gọi HTTP trực tiếp, endpoint gốc cũng là https://api.moonshot.ai/v1. [3]
API chat có tài liệu “Basic Information”, cho thấy cách gọi theo kiểu chat.completions.create(...) với model và messages, tức cùng kiểu request body như OpenAI Chat Completions. [4]
Gọi API chat theo chuẩn OpenAI-compatible, truyền model và messages. [3][4]
Nếu chưa chắc model ID chính xác của Kimi K2.6, gọi endpoint /models để kiểm tra danh sách model khả dụng trước. [8]
Mẫu gọi API tối thiểu
Ví dụ theo đúng hướng dẫn tổng quan của Kimi là dùng OpenAI SDK với base_url của Moonshot. [3]
python
from openai import OpenAI
client = OpenAI(
api_key="YOUR_KIMI_API_KEY",
base_url="https://api.moonshot.ai/v1"
)
resp = client.chat.completions.create(
model="KIMI_K2_6_MODEL_ID",
messages=[
{"role": "user", "content": "Xin chào, hãy tự giới thiệu."}
]
)
print(resp)
Phần model="KIMI_K2_6_MODEL_ID" ở trên chỉ là chỗ điền model ID thực tế; trong bằng chứng hiện có, tôi không thấy snippet nào hiển thị trực tiếp tên model ID chính xác của Kimi K2.6 trong request mẫu. [7][8]
Nếu cần kiểm tra khả năng truy cập và billing trước, có thể gọi endpoint balance bằng Bearer token. [5]
Nếu dùng bên trung gian thay vì API chính thức
Có tài liệu bên thứ ba từ AIMLAPI cho model kimi-k2-6, và ví dụ của họ gọi
Điều này cho thấy Kimi K2.6 cũng có thể được truy cập qua nhà cung cấp trung gian, nhưng đây không phải endpoint chính thức của Kimi/Moonshot. [1][3]
Điều đã kiểm chứng được và điều chưa chắc
Đã kiểm chứng được rằng Kimi API là OpenAI-compatible và dùng base URL https://api.moonshot.ai/v1. [3]
Đã kiểm chứng được rằng có tài liệu riêng cho Kimi K2.6 và tài liệu model list xác nhận Kimi K2.6 đã phát hành. [7][8]
Đã kiểm chứng được rằng nền tảng có các endpoint cho chat, list models, balance, và batch. [4][5][6][8]
Chưa kiểm chứng được từ bằng chứng hiện có tên model ID chính xác cần điền khi gọi Kimi K2.6 trong request body. Insufficient evidence. [7][8]
Nếu bạn muốn, tôi có thể viết tiếp cho bạn một mẫu hoàn chỉnh bằng curl, Python, hoặc JavaScript theo đúng kiểu OpenAI-compatible, với chỗ nào chưa xác minh được tôi sẽ đánh dấu rõ.
import requests import requests import json for getting a structured output with indentation import json for getting a structured output with indentation response = requests.post( response = requests.post( " " headers={ headers={ Insert your AIML API Key in...
Moonshot AI (Kimi K2.6). Step 1: Create a Moonshot API account. Go to and create a new Moonshot API account. Step 2: Set up Moonshot API account. To use the model via API, you’ll need to add balance to your account. Step 3: Get your Moonshot API key. Be sur...
MoonshotAI: Kimi K2.6. moonshotai/kimi-k2.6. Kimi K2.6 is Moonshot AI's next-generation multimodal model, designed for long-horizon coding, coding-driven UI/UX generation, and multi-agent orchestration. It handles complex end-to-end coding tasks across Pyth...
Using the API. API Reference. Batch API. API Overview. Kimi Open Platform provides OpenAI-compatible HTTP APIs. You can use the OpenAI SDK directly. When using SDKs, set base url to When calling HTTP endpoints directly, use the full path such as OpenAI Co...
create( model = "kimi-k2.5", model = "kimi-k2.5", messages = [ messages = [ {"role": "system", "content": "You are Kimi, an AI assistant provided by Moonshot AI. {{ "id": "cmpl-04ea926191a14749b7f2c7a48a68abc6", "id": "cmpl-04ea926191a14749b7f2c7a48a68abc6"...
Kimi API Platform home pagelight logodark logo. Using the API. API Reference. Batch API. curl --request GET \ curl --request GET \ --url \ --url \ --header 'Authorization: Bearer ' --header 'Authorization: Bearer '. {{ "code": 123, "code": 123, "data": { "d...
🎉 Kimi K2.6 has been released with improved long-context coding stability. Top-up bonus event in progress 🔗. Kimi API Platform home pagelight logodark logo. Using the API. Capabilities. API Reference. Files. Batch API. curl --request GET \ --url \ --heade...
Cara memakai Kimi K2.6 lewat Moonshot API tanpa salah model ID
Untuk Kimi K2.6 di API resmi Moonshot, gunakan base url dan endpoint /chat/completions; model ID sebaiknya diambil dari GET /models. Endpoint penting: /chat/completions untuk chat, /models untuk daftar model, /users/me/balance untuk saldo, dan /batches untuk batch job.
Cách dùng Kimi K2.6 qua API Moonshot: endpoint đúng và model IDLuồng nên dùng: cấu hình endpoint Moonshot, gọi /models để xác minh model ID, rồi gửi request chat.
Prompt AI
Create a landscape editorial hero image for this Studio Global article: Cách dùng Kimi K2.6 qua API Moonshot: endpoint đúng và model ID. Article summary: Dùng Kimi K2.6 qua API Moonshot bằng OpenAI SDK với base url https://api.moonshot.ai/v1, rồi gọi /chat/completions; điểm cần kiểm chứng là model ID, nên gọi /models trong tài khoản thay vì đoán.. Topic tags: ai, kimi, moonshot ai, llm, api. Reference image context from search candidates: Reference image 1: visual subject "# Moonshot AI (Kimi K2.6). ## Step 1: Create a Moonshot API account. Go to and create a new Moonshot API account. ## Step 2: Set up Moonshot API account. To use the model via API," source context "Moonshot AI (Kimi K2.6)" Reference image 2: visual subject "Connect and use Kimi K2.6 from Moonshot AI with API Key - Featured image. # How to use Kimi K2.6 from Moonshot AI with API Key on TypingMind. Learn how to access and
openai.com
Kalau Anda sudah terbiasa dengan OpenAI SDK, integrasi Kimi K2.6 lewat API resmi Moonshot relatif lurus. Yang perlu dijaga justru bukan URL-nya, melainkan nilai model yang dikirim. Kimi Open Platform menyebut API HTTP mereka kompatibel dengan OpenAI, dapat dipanggil memakai OpenAI SDK, dan untuk SDK cukup mengubah base_url ke https://api.moonshot.ai/v1; jika HTTP langsung, path chat lengkapnya adalah https://api.moonshot.ai/v1/chat/completions. [13]
Masalahnya, halaman List Models sudah mengumumkan Kimi K2.6, tetapi contoh respons dokumentasinya masih menampilkan idkimi-k2.5. Jadi, untuk integrasi produksi, jangan menebak nama model. Panggil
GET /models
dari akun Moonshot Anda dan pakai nilai id yang benar-benar dikembalikan API. [17]
Endpoint yang perlu diingat
Kebutuhan
Konfigurasi atau endpoint
Catatan
Memakai OpenAI SDK
base_url = https://api.moonshot.ai/v1
Kimi menyebut API-nya OpenAI-compatible dan SDK OpenAI bisa dipakai langsung. [13]
Chat completions
POST https://api.moonshot.ai/v1/chat/completions
API overview memberi full path ini; dokumentasi Chat API memakai struktur model dan messages. [13][14]
Daftar model
GET https://api.moonshot.ai/v1/models
Endpoint ini mengembalikan daftar model; contoh respons memiliki field id. [17]
Dokumentasi Batch API menyediakan endpoint untuk membuat batch. [16]
Alur aman sebelum mengirim request produksi
Siapkan API key Moonshot. Contoh API Kimi memakai header
Authorization: Bearer ...
; dokumentasi TypingMind untuk Kimi K2.6 juga menggambarkan alur membuat akun Moonshot API, mengisi balance, dan mengambil API key. [2][15][17]
Setel client seperti API OpenAI. Jika memakai OpenAI SDK, bagian pentingnya adalah mengganti base_url ke https://api.moonshot.ai/v1. [13]
Panggil /models lebih dulu. Endpoint List Models memang dibuat untuk menampilkan model yang tersedia dan responsnya memuat field id; nilai inilah yang sebaiknya Anda kirim sebagai parameter model. [17]
Kirim request chat dengan model dan messages. Dokumentasi Chat API menunjukkan pola request dengan model dan messages, sementara API overview mencantumkan endpoint /chat/completions. [13][14]
Cek saldo atau pakai batch bila perlu. Kimi menyediakan endpoint balance untuk mengecek akun dan endpoint batch untuk membuat batch job. [15][16]
Contoh Python dengan OpenAI SDK
Contoh berikut memakai base_url resmi yang disebutkan Kimi untuk OpenAI SDK. [13] Variabel KIMI_MODEL_ID harus diisi dari nilai id hasil
GET /models
, bukan dari tebakan nama produk atau salinan model ID milik gateway lain. [17]
python
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ['MOONSHOT_API_KEY'],
base_url='https://api.moonshot.ai/v1',
)
response = client.chat.completions.create(
model=os.environ['KIMI_MODEL_ID'],
messages=[
{'role': 'user', 'content': 'Halo, perkenalkan diri secara singkat.'}
],
)
print(response)
Contoh cURL: ambil model ID, lalu panggil chat
Langkah pertama yang paling aman adalah melihat daftar model di akun Moonshot/Kimi Anda, karena endpoint ini mengembalikan daftar model beserta field id. [17]
Setelah memilih id yang sesuai dari respons, kirim request ke Chat Completions. Full path /chat/completions dan struktur request model plus messages sama-sama disebutkan dalam dokumentasi Kimi. [13][14]
Jika request gagal karena billing, atau Anda ingin memastikan akun siap sebelum integrasi, Kimi menyediakan endpoint balance di /users/me/balance dan contoh dokumentasinya memakai Bearer token. [15]
Jangan campur model ID Moonshot dengan gateway lain
Beberapa penyedia perantara punya model ID sendiri untuk Kimi K2.6. AIMLAPI, misalnya, memakai endpoint https://api.aimlapi.com/v1/chat/completions dengan model moonshot/kimi-k2-6. [1] OpenRouter menampilkan model moonshotai/kimi-k2.6 pada halaman API mereka. [5]
ID tersebut hanya aman dipakai jika Anda memang memanggil gateway yang bersangkutan. Jika request dikirim ke endpoint resmi https://api.moonshot.ai/v1/chat/completions, cara yang paling minim risiko adalah memanggil
GET https://api.moonshot.ai/v1/models
dan memakai id yang dikembalikan Moonshot untuk akun Anda. [13][17]
Ringkasnya
Alur implementasi yang rapi adalah: ambil API key, setel OpenAI SDK dengan base_urlhttps://api.moonshot.ai/v1, panggil /models untuk memverifikasi model ID Kimi K2.6, lalu kirim request ke /chat/completions dengan model dan messages. Dengan cara ini, Anda mengikuti dokumentasi OpenAI-compatible milik Kimi sekaligus menghindari kesalahan umum: menyalin model ID dari AIMLAPI atau OpenRouter ke endpoint Moonshot resmi. [1][5][13][14][17]
Studio Global AI
Search, cite, and publish your own answer
Use this topic as a starting point for a fresh source-backed answer, then compare citations before you share it.
Untuk Kimi K2.6 di API resmi Moonshot, gunakan base url https://api.moonshot.ai/v1 dan endpoint /chat/completions; model ID sebaiknya diambil dari GET /models.
Endpoint penting: /chat/completions untuk chat, /models untuk daftar model, /users/me/balance untuk saldo, dan /batches untuk batch job.
ID seperti moonshot/kimi k2 6 dari AIMLAPI atau moonshotai/kimi k2.6 dari OpenRouter adalah ID khusus gateway masing masing, bukan otomatis ID untuk endpoint Moonshot.
Người ta cũng hỏi
Câu trả lời ngắn gọn cho "Cara memakai Kimi K2.6 lewat Moonshot API tanpa salah model ID" là gì?
Untuk Kimi K2.6 di API resmi Moonshot, gunakan base url https://api.moonshot.ai/v1 dan endpoint /chat/completions; model ID sebaiknya diambil dari GET /models.
Những điểm chính cần xác nhận đầu tiên là gì?
Untuk Kimi K2.6 di API resmi Moonshot, gunakan base url https://api.moonshot.ai/v1 dan endpoint /chat/completions; model ID sebaiknya diambil dari GET /models. Endpoint penting: /chat/completions untuk chat, /models untuk daftar model, /users/me/balance untuk saldo, dan /batches untuk batch job.
Tôi nên làm gì tiếp theo trong thực tế?
ID seperti moonshot/kimi k2 6 dari AIMLAPI atau moonshotai/kimi k2.6 dari OpenRouter adalah ID khusus gateway masing masing, bukan otomatis ID untuk endpoint Moonshot.
Tôi nên khám phá chủ đề liên quan nào tiếp theo?
Tiếp tục với "Phân tích nghiên cứu: Trẻ học từ nhờ nghe nhiều hơn hay xử lý từ nhanh hơn?" để có góc nhìn khác và trích dẫn bổ sung.
Tìm kiếm và kiểm chứng thông tin: Cách dùng Kimi K2.6 qua API như thế nào?
Studio Global AI19 nguồn
Câu trả lời được trích dẫn
Có thể dùng Kimi K2.6 qua API theo cách gần giống OpenAI API, nhưng từ bằng chứng hiện có, phần chắc chắn nhất là cách kết nối vào nền tảng Kimi/Moonshot và các endpoint chính; còn ví dụ payload đầy đủ riêng cho đúng model ID của Kimi K2.6 thì bằng chứng hiện tại chưa hiển thị rõ. [3][7][8]
Cách dùng qua API chính thức của Kimi/Moonshot
Kimi Open Platform cung cấp HTTP API tương thích OpenAI, nên có thể dùng trực tiếp OpenAI SDK. [3]
Khi dùng SDK, cần đặt base_url là https://api.moonshot.ai/v1. [3]
Nếu gọi HTTP trực tiếp, endpoint gốc cũng là https://api.moonshot.ai/v1. [3]
API chat có tài liệu “Basic Information”, cho thấy cách gọi theo kiểu chat.completions.create(...) với model và messages, tức cùng kiểu request body như OpenAI Chat Completions. [4]
Gọi API chat theo chuẩn OpenAI-compatible, truyền model và messages. [3][4]
Nếu chưa chắc model ID chính xác của Kimi K2.6, gọi endpoint /models để kiểm tra danh sách model khả dụng trước. [8]
Mẫu gọi API tối thiểu
Ví dụ theo đúng hướng dẫn tổng quan của Kimi là dùng OpenAI SDK với base_url của Moonshot. [3]
python
from openai import OpenAI
client = OpenAI(
api_key="YOUR_KIMI_API_KEY",
base_url="https://api.moonshot.ai/v1"
)
resp = client.chat.completions.create(
model="KIMI_K2_6_MODEL_ID",
messages=[
{"role": "user", "content": "Xin chào, hãy tự giới thiệu."}
]
)
print(resp)
Phần model="KIMI_K2_6_MODEL_ID" ở trên chỉ là chỗ điền model ID thực tế; trong bằng chứng hiện có, tôi không thấy snippet nào hiển thị trực tiếp tên model ID chính xác của Kimi K2.6 trong request mẫu. [7][8]
Nếu cần kiểm tra khả năng truy cập và billing trước, có thể gọi endpoint balance bằng Bearer token. [5]
Nếu dùng bên trung gian thay vì API chính thức
Có tài liệu bên thứ ba từ AIMLAPI cho model kimi-k2-6, và ví dụ của họ gọi
Điều này cho thấy Kimi K2.6 cũng có thể được truy cập qua nhà cung cấp trung gian, nhưng đây không phải endpoint chính thức của Kimi/Moonshot. [1][3]
Điều đã kiểm chứng được và điều chưa chắc
Đã kiểm chứng được rằng Kimi API là OpenAI-compatible và dùng base URL https://api.moonshot.ai/v1. [3]
Đã kiểm chứng được rằng có tài liệu riêng cho Kimi K2.6 và tài liệu model list xác nhận Kimi K2.6 đã phát hành. [7][8]
Đã kiểm chứng được rằng nền tảng có các endpoint cho chat, list models, balance, và batch. [4][5][6][8]
Chưa kiểm chứng được từ bằng chứng hiện có tên model ID chính xác cần điền khi gọi Kimi K2.6 trong request body. Insufficient evidence. [7][8]
Nếu bạn muốn, tôi có thể viết tiếp cho bạn một mẫu hoàn chỉnh bằng curl, Python, hoặc JavaScript theo đúng kiểu OpenAI-compatible, với chỗ nào chưa xác minh được tôi sẽ đánh dấu rõ.
import requests import requests import json for getting a structured output with indentation import json for getting a structured output with indentation response = requests.post( response = requests.post( " " headers={ headers={ Insert your AIML API Key in...
Moonshot AI (Kimi K2.6). Step 1: Create a Moonshot API account. Go to and create a new Moonshot API account. Step 2: Set up Moonshot API account. To use the model via API, you’ll need to add balance to your account. Step 3: Get your Moonshot API key. Be sur...
MoonshotAI: Kimi K2.6. moonshotai/kimi-k2.6. Kimi K2.6 is Moonshot AI's next-generation multimodal model, designed for long-horizon coding, coding-driven UI/UX generation, and multi-agent orchestration. It handles complex end-to-end coding tasks across Pyth...
Using the API. API Reference. Batch API. API Overview. Kimi Open Platform provides OpenAI-compatible HTTP APIs. You can use the OpenAI SDK directly. When using SDKs, set base url to When calling HTTP endpoints directly, use the full path such as OpenAI Co...
create( model = "kimi-k2.5", model = "kimi-k2.5", messages = [ messages = [ {"role": "system", "content": "You are Kimi, an AI assistant provided by Moonshot AI. {{ "id": "cmpl-04ea926191a14749b7f2c7a48a68abc6", "id": "cmpl-04ea926191a14749b7f2c7a48a68abc6"...
Kimi API Platform home pagelight logodark logo. Using the API. API Reference. Batch API. curl --request GET \ curl --request GET \ --url \ --url \ --header 'Authorization: Bearer ' --header 'Authorization: Bearer '. {{ "code": 123, "code": 123, "data": { "d...
🎉 Kimi K2.6 has been released with improved long-context coding stability. Top-up bonus event in progress 🔗. Kimi API Platform home pagelight logodark logo. Using the API. Capabilities. API Reference. Files. Batch API. curl --request GET \ --url \ --heade...