The machine-readable price list: GET /api/models and GET /api/image-prices
The prices the pricing page shows are also available as JSON, with no key and no sign-in. GET /api/models gives each model's price per thousand input and output tokens in Toman, GET /api/image-prices the price of one picture at each quality, and GET /api/pricing-meta the dollar rate these prices use and when it took effect. Each answer is computed when it is asked for.
Last updated:
Model prices: GET /api/models
curl https://1xai.ir/api/models
The answer is one JSON document, {"models": [ … ]}, with one row per model. Rows come grouped by vendor, newest first within each vendor; the models page shows them in this order.
| Field | Type | Meaning |
|---|---|---|
provider | Type:string | Meaning:The vendor: openai, anthropic, gemini, deepseek, xai, moonshot, zhipu, alibaba, minimax, tencent |
model | Type:string | Meaning:The model id, as you send it in a request's model field |
input_per_1k_toman | Type:number | Meaning:Toman per thousand input tokens; not rounded |
output_per_1k_toman | Type:number | Meaning:Toman per thousand output tokens; not rounded |
kind | Type:string | Meaning:chat, reasoning or embedding: the section the site lists the model under, read from its id; not a billing unit |
family | Type:string | Meaning:The model family's display name, such as GPT-5.5 |
version | Type:integer | Meaning:A sort key within the family (newer is larger); not a version number to display |
context_tokens | Type:integer | Meaning:The input tokens the model accepts; absent when not known |
advertise | Type:boolean | Meaning:true when GET /v1/models lists the model. A false row can still be called and is billed |
catalogue | Type:boolean | Meaning:true for the text models the models page and the pricing page show |
tagline | Type:string | Meaning:A one-line description in Persian; absent when none has been written |
private | Type:boolean | Meaning:Present only as true: a model that can be called but is kept off the public pages; its advertise and catalogue are false |
offer | Type:boolean | Meaning:Present only as true: a special offer, a model sold at a low price on limited capacity, with no fallback route behind it |
{
"provider": "openai",
"model": "gpt-5.5",
"input_per_1k_toman": 1565.725,
"output_per_1k_toman": 9394.35,
"advertise": true,
"catalogue": true,
"kind": "chat",
"family": "GPT-5.5",
"version": 5005,
"context_tokens": 1050000
}Which models are listed
- Every model with a per-token price that its vendor has not retired (deprecations).
- For the text models (
catalogue: true) the two figures are a call's per-token price, and tools such as web search are billed apart (caching and tools). Other rows may be models also billed by another unit, such as pictures, audio or realtime voice; their full price is on the pricing page. - The list of models the API answers to, image, audio and video models included, is
GET /v1/models, which takes a key (models). - New fields may be added; a program should ignore the fields it does not know.
What the prices are
The prices are in Toman, with each model's own markup (markup), at today's dollar rate. They are list prices: an account's volume discount or own rate is not in them, and neither is the cached-input price. A call's actual amount is on its usage row and, for a non-streamed answer, in the X-1xai-Cost-Toman header (response metadata).
Each answer is computed from the price list when it is asked for, and is sent with Cache-Control: no-store. The prices move when the dollar rate is refreshed, every day at 9 in the morning, Tehran time, or when a vendor changes a price; reading the feed once an hour is enough.
The dollar rate: GET /api/pricing-meta
curl https://1xai.ir/api/pricing-meta
{"toman_per_usd": 272300, "update_hour_tehran": 9, "as_of": "2026-11-22T09:00:00+03:30"}/api/models carries no time. GET /api/pricing-meta gives the rate the prices use: toman_per_usd, the daily refresh hour in Tehran time (update_hour_tehran) and as_of, the last daily refresh time up to now (RFC3339, with the Tehran offset). On a day the refresh does not happen, the rate in use is older than as_of.
Image prices: GET /api/image-prices
curl https://1xai.ir/api/image-prices
No key. For each model of the image studio, the studio's own estimate of one picture at each quality, with that model's own markup, in Toman: what an account with no rate of its own sees beside the Generate button.
| Field | Type | Meaning |
|---|---|---|
models[].id | Type:string | Meaning:The model id |
models[].available | Type:boolean | Meaning:false when the model has no price now |
models[].unavailable_reason | Type:string or null | Meaning:null, or unpriced |
models[].per_image_toman | Type:object | Meaning:Quality (low, medium, high, …) to the Toman of one picture |
models[].per_input_toman | Type:number or null | Meaning:The Toman of one input image (a picture you send to edit); null for a model with no input-image price |
toman_per_usd | Type:number | Meaning:The dollar rate these figures use |
as_of | Type:string | Meaning:The same as_of as GET /api/pricing-meta |
These figures estimate one picture from a short prompt. The amount a call is billed is on that call's usage row.
1xAi is an independent gateway. It is not affiliated with, endorsed by, or a reseller for OpenAI, Anthropic, Google, DeepSeek, xAI, Moonshot AI, Z.ai, Alibaba Qwen, MiniMax or Tencent Hunyuan. Requests are relayed upstream rather than answered by models of our own, so each provider's own usage policies apply to what their models will and will not do, and their model availability is theirs to change. Current reachability is published on the status page.