Documentation
Models and quotes
View .mdOpenAPI

Get a price quote

GEThttps://weights.fyi/run/v1/quotescope: read
text
GET https://weights.fyi/run/v1/quote[?model=<model>][&pages=<pages>]
Authorization: Bearer <token>                    scope: read
Available since
2026-10-08, when the service went live on weights.fyi/run.
Answer time
synchronous: the quote is computed from the service's current figures at once.

Prices a job of so many pages before you send it: the pages times the page price per 1M pages answered, the same per page for any size of job and whether the model is asleep or ready, since a job pays for its pages only, never a start. The same price admits work: a job is admitted when its pages, beside those already waiting, fit your available credit. A job keeps the price it was admitted at. Why the price has this shape: Prices and billing.

typical_ready_seconds is how long you would wait for a start, free: the median of the last 10 starts on hardware that served the model before, else our reference 144 s. With model set to an LLM's or a workspace specialist's id the answer is that model's prices per 1M tokens instead, whether its tariff is measured or declared (Prices and billing). For a training job add kind=finetune (its own page).

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and a token that holds the read scope.
modelquerynoThe model to price. The default is laya-page-role, priced per page; an LLM's or a workspace specialist's id is priced per token.
pagesquerynoHow many pages the job would hold, a whole number from 1. The default is 1,000.

Return value

200 OK with the price, in plain dollars, being prices rather than amounts on your account.

FieldMeaning
modelThe model priced.
pagesThe number of pages priced.
usd_per_1m_pagesThe price of 1,000,000 pages answered, in US dollars.
estimate_usd_for_jobThe job's price: pages x usd_per_1m_pages / 1,000,000.
estimate_usd_per_1000_pagesThe same per 1,000 pages, equal for every size of job.
typical_ready_secondsHow long getting the model ready takes now, in seconds; it costs nothing.
typical_ready_basisWhere that figure comes from.
basisThe price in words.

For a model priced per token:

FieldMeaning
modelThe model priced, as you named it.
kindllm for a chat model; classifier or extractor for a workspace specialist, which POST /v1/classify charges per token too.
usd_per_1m_prompt_tokens, usd_per_1m_cached_tokens, usd_per_1m_cache_write_tokens, usd_per_1m_output_tokensThe prices per 1M tokens a call admitted now keeps, in US dollars. Each is the whole price: a model that runs across several accelerator cards is quoted the same way, and nothing is multiplied by the cards.
input_usd_micros_per_million, output_usd_micros_per_millionThe prompt and output prices again as whole micro-dollars per 1M tokens (1,000,000 is $1.00), for integer arithmetic.
basisHow a call is charged, in words.

Errors

StatusCodeWhen it happensWhat to do
400invalid_parameter, parameter_out_of_rangepages is not a whole number, or below 1.Send a number of pages.
400model_not_availableThe model is not one you can run; available lists those you can.Name one of them.
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work (any more).Use a valid token.
403scope_required, account_suspendedThe token lacks read, or the account is suspended.Use a token with read.
503price_unavailableA price cannot be set right now.Ask again after Retry-After.

Examples

From a test copy of the service on 2026-10-10 (not a live price):

sh
curl -s "https://weights.fyi/run/v1/quote?model=laya-page-role&pages=100000" -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{
  "model": "laya-page-role",
  "pages": 100000,
  "estimate_usd_for_job": 0.2288524883347864,
  "estimate_usd_per_1000_pages": 0.002288524883347864,
  "usd_per_1m_pages": 2.288525,
  "basis": "$2.2885 per 1M pages answered ($0.002289 per 1,000), whatever the job's size and whether the model is asleep or awake: a job pays for its pages only.",
  "typical_ready_seconds": 144.0,
  "typical_ready_basis": "our measured reference wake-up"
}

Patterns

How many pages does my credit pay for?

Divide available_usd_micros from GET /v1/usage by the price per page, usd_per_1m_pages (micro-dollars per page are dollars per 1M pages): that is what a new job may hold, and what a refusal's pages_allowed reports.

History

  • 2026-10-08: live.
  • 2026-10-08: the reference speed is kept until 2,048 pages are measured; one page in a 4.4 s call, 0.23 pages a second, had admitted 6,676 of 200,000 pages; the second run quoted 294 pages a second.
  • 2026-10-08: typical_ready_seconds became the median of starts on hardware that served the model before; the median of all starts had said 440 s for a 132 s start.
  • 2026-10-10: a price per 1M pages, usd_per_1m_pages, for any job; no start in any price; the LLM prices per 1M tokens.
  • 2026-11-16: the micro-dollar fields and the specialist kinds documented.

See also

GET /v1/quote (finetune), POST /v1/jobs, Prices and billing.