Pricing and Billing
Billing dimensions for LLM / images / ASR / TTS / OCR and real-time organization pricing lookup.
Inference Space bills by capability. Prices are based on the system price catalog, currently the CNY version 2026-06-17. Organization contract price > activation discount price > system price: when an organization has a dedicated price for a model, that price applies; otherwise, billing uses the public activation price or system catalog price.
Private deployment uses the same billing dimensions and pricing strategy; only replace the Base domain → Enterprise private deployment.
Real-time organization pricing lookup on this page uses the control-plane path https://ai.inf.space/v1/pricing/lookup. Actual unit prices, available models, and discounts are shown in the console.
Billing dimensions
| Capability | Meter | Unit | Rule |
|---|---|---|---|
| LLM | prompt_tokens, cached_prompt_tokens, completion_tokens | 1M tokens | Non-cached input, cached input, and output are billed separately |
| Image | image_1k, image_2k, image_4k | Image | Billed per image by resolution and quality tier |
| ASR | audio_duration | Hour | Measured in milliseconds internally and displayed in hours |
| TTS | text_characters | 10,000 characters | Billed by the number of synthesized text characters |
| OCR | ocr_pages | Page | Billed by the number of recognized pages |
LLM rules
- The context tier is determined by the input tokens in the request:
≤128k,≤256k, or>256k. Each tier has a different unit price. prompt_tokenscounts non-cached input only; cache hits are counted incached_prompt_tokens.- Cached input is billed at a lower price: use the explicit cache price when available; otherwise, charge
10%(0.1×input) of the input price for the same tier. - Output is billed through
completion_tokens. Reasoning (extended thinking), tool results, and retrieved context ultimately appear in input or output tokens.
See the “Prompt caching” and “Billing” sections of the Claude Messages API.
Image rules (gpt-image-2)
gpt-image-2 is billed per image by resolution and quality tier; image tokens are not billed separately. Actual prices are shown in the console, with organization-specific prices taking precedence.
See GPT-Image 2 image generation and editing for API details.
Real-time organization pricing lookup
Use a gateway API key to query the current effective price catalog for its organization. The response merges organization-specific prices into the system catalog, so the returned prices are the prices used for billing.
GET https://ai.inf.space/v1/pricing/lookup- Host: This control-plane endpoint is available at
https://ai.inf.space/v1/pricing/lookup. - Authentication: HTTP header
Authorization: Bearer <gk_...>. A valid gateway API key is required; its organization defines the query scope. - Optional query parameters:
capability(llm/image/asr/tts/ocr),provider, andmodelfor dimension-based filtering. - Response shape:
{ currency, entries, version }, with additional display fields such asmodelsandlabels.
curl "https://ai.inf.space/v1/pricing/lookup?capability=llm" \
-H "Authorization: Bearer $TOS_API_KEY"import os, requests
resp = requests.get(
"https://ai.inf.space/v1/pricing/lookup",
params={"capability": "llm"},
headers={"Authorization": f"Bearer {os.environ['TOS_API_KEY']}"},
)
data = resp.json()
print(data["currency"], data["version"])
for entry in data["entries"]:
print(entry)const resp = await fetch(
"https://ai.inf.space/v1/pricing/lookup?capability=llm",
{ headers: { Authorization: `Bearer ${process.env.TOS_API_KEY}` } },
);
const data = await resp.json();
console.log(data.currency, data.version);
console.log(data.entries);Example response (illustrative structure; the entries contents depend on the organization's effective catalog):
{
"currency": "CNY",
"entries": [
{
"capabilityId": "llm",
"providerId": "dashscope",
"model": "qwen-plus",
"meters": { "prompt_tokens": "...", "completion_tokens": "..." }
}
],
"version": "2026-06-17"
}Missing or invalid API keys return 401; insufficient scope returns 403. Error bodies are structured JSON. See Error codes and handling.
Effective prices
This page does not maintain a static price table. Use the console or /v1/pricing/lookup to query the current effective prices for an organization. After organization contract prices, activation discounts, and the system catalog are merged, the API response and billing statement are authoritative.
For Chinese speech, estimate 250 characters/min ≈ 425 tokens/min. For voice-agent input tokens, a starting estimate is 3× the output tokens.
Cost calculation
Token 计算器
CNY 2026-07-02智能体成本计算器
默认:银行信贷The pricing strategy is inspired by the official pricing structure for Claude (Anthropic) models: non-cached input, cached input, and output are metered separately and correspond directly to the usage fields in the Claude Messages API.
Vision Segmentation (SAM3 Image/Video)
Image segmentation with POST /v1/vision-segment/predictions and video segmentation with /v1/vision-segment/video, powered by SAM3.
Error Codes and Error Handling
Unified error JSON structure, authentication, routing, and rate-limit error codes, plus retry recommendations.