API for the model moonshotai/Kimi-K3.1-Pro:sail-research at Hugging Face Inference, $1.2 / $9.35 per million tokens, context 1,048,576 tokens. curl, Python and JavaScript samples, live testing.
moonshotai/Kimi-K3.1-Pro served by Sail Research through the Hugging Face router (fp4 quantization).
- Type
- Model
- Provider
- Hugging Face Inference
- Host
- Sail Research
- Model ID
moonshotai/Kimi-K3.1-Pro:sail-research- Pricing
- Paid
- Input / output price
- $1.2 / $9.35 per million tokens
- Keyless access
- No
- Key variable
HF_TOKEN- Base URL (OpenAI-compatible)
https://router.huggingface.co/v1- Context
- 1,048,576 tokens
- Inputs
- Text, Image
- Features
- Tool calling, JSON output
- Response time
- First token 1024 ms · 60 tokens/s · uptime 100%
- Developer rating
- Not rated yet
- Documentation
- https://huggingface.co/moonshotai/Kimi-K3.1-Pro
Code samples
cURL
curl https://router.huggingface.co/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $HF_TOKEN" \
-d '{"model":"moonshotai/Kimi-K3.1-Pro:sail-research","messages":[{"role":"user","content":"Hello, introduce yourself in one sentence."}]}'Python
# pip install openai
import os
from openai import OpenAI
client = OpenAI(base_url="https://router.huggingface.co/v1", api_key=os.environ["HF_TOKEN"])
r = client.chat.completions.create(
model="moonshotai/Kimi-K3.1-Pro:sail-research",
messages=[{"role": "user", "content": "Hello, introduce yourself in one sentence."}],
)
print(r.choices[0].message.content)JavaScript
// npm install openai
import OpenAI from 'openai'
const client = new OpenAI({ baseURL: 'https://router.huggingface.co/v1', apiKey: process.env.HF_TOKEN })
const r = await client.chat.completions.create({
model: 'moonshotai/Kimi-K3.1-Pro:sail-research',
messages: [{ role: 'user', content: 'Hello, introduce yourself in one sentence.' }],
})
console.log(r.choices[0].message.content)
Generate the integration code →
Popular searches
Frequently asked questions
Is the Kimi-K3.1-Pro · Sail Research API free?
No: Kimi-K3.1-Pro · Sail Research is a paid API ($1.2 / $9.35 per million tokens).
How do I call Kimi-K3.1-Pro · Sail Research from my code?
Kimi-K3.1-Pro · Sail Research exposes an OpenAI-compatible API at https://router.huggingface.co/v1: use any OpenAI SDK (Python, JavaScript…) with this base URL. Model identifier: moonshotai/Kimi-K3.1-Pro:sail-research. Ready-to-use code (streaming, JSON, retries) is available in the developer toolkit.
What is the context window of Kimi-K3.1-Pro · Sail Research?
Kimi-K3.1-Pro · Sail Research accepts up to 1,048,576 tokens of context (prompt and history).
What are the alternatives to Kimi-K3.1-Pro · Sail Research?
Similar APIs listed in the catalog: Kimi-K3.1-Pro · AkashML, Kimi-K3.1-Pro · Amazon Bedrock, Kimi-K3.1-Pro · BaseTen, Kimi-K3.1-Pro · DeepInfra, Kimi-K3.1-Pro · Doubleword.
Alternatives
- Kimi-K3.1-Pro · AkashML — Paid
- Kimi-K3.1-Pro · Amazon Bedrock — Paid
- Kimi-K3.1-Pro · BaseTen — Paid
- Kimi-K3.1-Pro · DeepInfra — Paid
- Kimi-K3.1-Pro · Doubleword — Paid
- Kimi-K3.1-Pro · Fireworks — Paid
- Kimi-K3.1-Pro · InferenceNet — Paid
- Kimi-K3.1-Pro · Makora — Paid
- Kimi-K3.1-Pro · Modal — Paid
- Kimi-K3.1-Pro · Nebius — Paid
- Kimi-K3.1-Pro · Parasail — Paid
- Kimi-K3.1-Pro · Pareto Inference — Paid