GPUs and prices

Estimate token cost

Cost per million output tokens of serving on a catalog GPU at the given throughput, utilization, and headroom, beside a hosted price.

GET/v1/estimates/tokensAPI key

Authorization

Send Authorization: Bearer gr_... with a key from the Developer access page. The browser session cookie gpu_router_session also works.

Query parameters

gpustringrequired
throughput_tokens_per_secondnumber | stringrequired

Output tokens per second one GPU serves.

minimum: 0.01

maximum: 30000

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

utilizationnumber | stringrequired

Share of the hour the GPU is serving tokens.

minimum: 0.001

maximum: 1

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

headroomnumber | stringrequired

Multiplier on compute cost for reserved capacity.

minimum: 1

maximum: 100

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

hosted_price_per_million_tokensnumber | string | null

Hosted API price per million output tokens to break even against.

minimum: 1e-06

maximum: 100

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

Responses

200application/json

Successful Response

Show response attributes
gpuenum<string>required

Catalog GPU type the estimate is for.

Available options: T4 L4 A10 L40S A100-40GB A100-80GB RTX-PRO-6000 H100 H200 B200 B300

provider_rate_usd_per_hourstring | nullrequired

Listed provider rate per GPU-hour from the catalog. Null when no rate is recorded.

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

provider_rate_source_urlstring | nullrequired

Where the provider rate was read. Null without a rate.

provider_rate_checked_onstring<date> | nullrequired

When the provider rate was read. Null without a rate.

provider_rate_fetched_atstring<date-time> | nullrequired

When the provider rate was fetched. Null without a rate.

provider_rate_staleboolean | nullrequired

True when a manual rate was fetched more than 30 days ago. Null without a rate.

market_index_usd_per_hourstring | nullrequired

Latest market index per GPU-hour for this GPU: a transaction-derived benchmark, not a provider price. Null when the catalog has no index for this GPU or the caller is not the owner account.

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

market_index_source_urlstring | nullrequired

Public page of the market index. Null without a visible index.

market_index_checked_onstring<date> | nullrequired

UTC date the index observation was fetched. Null without a visible index.

cost_per_million_tokens_at_provider_ratestring | nullrequired

USD per million output tokens at the provider rate: rate x headroom / (throughput x utilization x 3600) x 1,000,000. Null without a provider rate.

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

cost_per_million_tokens_at_market_indexstring | nullrequired

The same arithmetic at the market index instead of the provider rate. Null without a visible index.

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

break_even_utilizationstring | nullrequired

Utilization at which the provider-rate cost per million tokens equals the hosted price: rate x headroom x 1,000,000 / (throughput x 3600 x hosted price). Above 1 means the hosted price is not reached at full utilization. Null without a hosted price or a provider rate.

pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$

401application/json

UNAUTHENTICATED: missing, invalid, expired, or revoked session or API key.

UNAUTHENTICATED
404application/json

GPU_NOT_FOUND: unknown catalog GPU type.

GPU_NOT_FOUND
422application/json

VALIDATION_ERROR: throughput_tokens_per_second is 0.01 to 30000, utilization is 0.001 to 1, headroom is 1 to 100, hosted_price_per_million_tokens is 0.000001 to 100 when given.

VALIDATION_ERROR
500application/json

Unexpected failure: INTERNAL_ERROR.

INTERNAL_ERROR
502application/json

AUTH_PROVIDER_REJECTED: the provider refused the request (not retryable).

AUTH_PROVIDER_REJECTED
503application/json

AUTH_NOT_CONFIGURED (not retryable) or AUTH_PROVIDER_UNAVAILABLE (retryable).

AUTH_NOT_CONFIGUREDAUTH_PROVIDER_UNAVAILABLE