TensaHub › Hugging Face Inference

Kimi-K2.7-Code · Inceptron

API for the model moonshotai/Kimi-K2.7-Code:inceptron at Hugging Face Inference, $0.63 / $3.5 per million tokens, context 262,144 tokens. curl, Python and JavaScript samples, live testing.

Test and rate in the catalog

moonshotai/Kimi-K2.7-Code served by Inceptron through the Hugging Face router (int4 quantization).

Type
Model
Provider
Hugging Face Inference
Host
Inceptron
Model ID
moonshotai/Kimi-K2.7-Code:inceptron
Pricing
Paid
Input / output price
$0.63 / $3.5 per million tokens
Keyless access
No
Key variable
HF_TOKEN
Base URL (OpenAI-compatible)
https://router.huggingface.co/v1
Context
262,144 tokens
Inputs
Text, Image
Features
Tool calling, JSON output
Response time
First token 748 ms · 58 tokens/s · uptime 100%
Developer rating
Not rated yet
Documentation
https://huggingface.co/moonshotai/Kimi-K2.7-Code

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-K2.7-Code:inceptron","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-K2.7-Code:inceptron",
    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-K2.7-Code:inceptron',
  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-K2.7-Code · Inceptron API free?

No: Kimi-K2.7-Code · Inceptron is a paid API ($0.63 / $3.5 per million tokens).

How do I call Kimi-K2.7-Code · Inceptron from my code?

Kimi-K2.7-Code · Inceptron 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-K2.7-Code:inceptron. Ready-to-use code (streaming, JSON, retries) is available in the developer toolkit.

What is the context window of Kimi-K2.7-Code · Inceptron?

Kimi-K2.7-Code · Inceptron accepts up to 262,144 tokens of context (prompt and history).

What are the alternatives to Kimi-K2.7-Code · Inceptron?

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