TensaHub › Hugging Face Inference

Kimi-K3.1-Pro · BaseTen

API for the model moonshotai/Kimi-K3.1-Pro:baseten at Hugging Face Inference, $2 / $10 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 BaseTen through the Hugging Face router (fp8 quantization).

Type
Model
Provider
Hugging Face Inference
Host
BaseTen
Model ID
moonshotai/Kimi-K3.1-Pro:baseten
Pricing
Paid
Input / output price
$2 / $10 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 1058 ms · 92 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:baseten","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:baseten",
    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:baseten',
  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 · BaseTen API free?

No: Kimi-K3.1-Pro · BaseTen is a paid API ($2 / $10 per million tokens).

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

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

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

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

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

Similar APIs listed in the catalog: Kimi-K3.1-Pro · AkashML, Kimi-K3.1-Pro · Amazon Bedrock, Kimi-K3.1-Pro · DeepInfra, Kimi-K3.1-Pro · Doubleword, Kimi-K3.1-Pro · Fireworks.

Alternatives