Language
Inference Space Docs

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

CapabilityMeterUnitRule
LLMprompt_tokens, cached_prompt_tokens, completion_tokens1M tokensNon-cached input, cached input, and output are billed separately
Imageimage_1k, image_2k, image_4kImageBilled per image by resolution and quality tier
ASRaudio_durationHourMeasured in milliseconds internally and displayed in hours
TTStext_characters10,000 charactersBilled by the number of synthesized text characters
OCRocr_pagesPageBilled 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_tokens counts non-cached input only; cache hits are counted in cached_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, and model for dimension-based filtering.
  • Response shape: { currency, entries, version }, with additional display fields such as models and labels.
  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 the output tokens.

Cost calculation

Token 计算器

CNY 2026-07-02
输入价
¥0.8000 / 1M
缓存价
¥0.2000 / 1M
写入价
¥1 / 1M
输出价
¥2 / 1M
有效输入
4,000 token
本次成本
¥0.0092
语音 token 参考
估算输出
4,250 token
估算输入
12,750 token

智能体成本计算器

默认:银行信贷
模型档位占比合计 100%
周期请求
8,640 次
单次有效输入
6,250 token
单次有效输出
5,625 token
周期 token
54,000,000 / 48,600,000
周期成本
¥140.4

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.

On this page