Skip to content
中文

List current prices

Code Mode: praxis.billing.prices.list

HTTP: GET /billing/v1/prices

Read every open price item with the amount in force now, in USD and CNY, for example to show a pricing page or check what a meter costs before using it. No credential: the response is the public price book, not an organization’s prices, so customer-specific prices and cost floors are not part of it (the source does not carry them). Each entry names the item id, the product (the id’s namespace such as router, sandbox or search), the meter’s unit and how many units one amount covers (per is 1000000 for per-million-token meters). A model with one amount has one entry; a price that varies by tier or by dimensions has one entry per tier or cell, told apart by variant: tier carries up_to, cell carries when, and a matrix default is kind default. Only versions already in force are shown, so an announced price never appears before its effective_from. usd and cny are decimal strings of major units copied from the price book; a currency the item does not price is null and must be shown as ”—”, never as 0. pricing_version and effective_at identify the catalog this body came from, and the ETag is derived from both: send it as If-None-Match to get 304 until either changes. Cache-Control is public, max-age=60, so revalidate rather than keeping a copy longer. Reading is free.

Signature

praxis.billing.prices.list(args?:Record<string,never>):Promise<{/** The published catalog version this body was cut from; it changes on any price write. */ pricing_version:string;/** The latest effective_from among the listed entries; null when no item has a price in force yet. */ effective_at:(string)|null;/** One entry per amount in force, ordered by item id and then by the model's own tier/cell order. */ items:Array<{/** The price item key, stable and never reused, for example router:default/deepseek-v4-pro:input or sandbox:cpu_second. */ id:string;/** The item key's namespace — the product that owns the meter (router, sandbox, search, browser, media, knowledge, agent, …); group the table by this. */ product:string;/** The item key's subject when it has one, such as default/deepseek-v4-pro; null for a two-segment key. */ subject:(string)|null;/** The item's display name from the price book. */ name:string;/** The meter's unit as billing records it, for example token, cpu_second or request. */ unit:string;/** How many units one amount covers, as a decimal integer string; 1000000 for per-million-token meters, 1 for a per-request or per-second meter. */ per:string;/** When this amount took effect. */ effective_from:string;/** Which amount of a multi-amount model this entry is; null when the item has exactly one amount. */ variant:({/** This entry is one tier of a tiered price, chosen by the meter's tier selector. */ kind:"tier";/** The tier's upper bound of the selector; the last tier is null (no upper bound). */ up_to:(string)|null}|{/** This entry is one cell of a matrix price, priced for the dimension values in when. */ kind:"cell";/** The dimension values this cell prices, for example resolution 1080p. */ when:{[key:string]:string}}|{/** This entry is the matrix's default amount, used when no cell matches. */ kind:"default"})|null;/** The stored USD amount in major units as a decimal string, or null when the item does not price USD; never 0 as a stand-in. */ usd:(string)|null;/** The stored CNY amount in major units as a decimal string, or null when the item does not price CNY; it is what a CNY account is charged, never 0 as a stand-in. */ cny:(string)|null}>}>;

Responses

StatusContent typesDescription
200application/jsonThe catalog in force. price_list.items is grouped by nothing — order by product and name to render a table; a null amount means the currency is not priced, not that it is free.
304If-None-Match matched the ETag: the body you hold is still current. No body is returned; keep using the copy you have until the tag changes.
502The price book could not be read (PRICE_LIST_UNAVAILABLE). Retry after a minute; do not show a price you cannot confirm.
503The price book has not been published yet (UNAVAILABLE). Retry after a minute; there is no price to show.