TensaHub › Hugging Face Inference

Kimi-K3.1-Pro · Doubleword

API for the model moonshotai/Kimi-K3.1-Pro:doubleword at Hugging Face Inference, $1.34 / $6.7 per million tokens, context 1,048,576 tokens. curl, Python and JavaScript samples, live testing.

Test and rate in the catalog

moonshotai/Kimi-K3.1-Pro served by Doubleword through the Hugging Face router (mxfp4 quantization).

Type
Model
Provider
Hugging Face Inference
Host
Doubleword
Model ID
moonshotai/Kimi-K3.1-Pro:doubleword
Pricing
Paid
Input / output price
$1.34 / $6.7 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
Response time
First token 1196 ms · 89 tokens/s · uptime 99.9%
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:doubleword","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:doubleword",
    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:doubleword',
  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 · Doubleword API free?

No: Kimi-K3.1-Pro · Doubleword is a paid API ($1.34 / $6.7 per million tokens).

How do I call Kimi-K3.1-Pro · Doubleword from my code?

Kimi-K3.1-Pro · Doubleword 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:doubleword. Ready-to-use code (streaming, JSON, retries) is available in the developer toolkit.

What is the context window of Kimi-K3.1-Pro · Doubleword?

Kimi-K3.1-Pro · Doubleword accepts up to 1,048,576 tokens of context (prompt and history).

What are the alternatives to Kimi-K3.1-Pro · Doubleword?

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 · Fireworks.

Alternatives