Documentation

Language models

Use the service
View .mdOpenAPI

Prices and billing

You pay for your work, per unit, using prepaid credit or monthly workspace billing: per page answered, per token of a chat call, per token a fine-tune trains. Never for the model starting, waiting or moving, an open stream between its waves, or a webhook delivery.

Status. Prices per unit are live since 2026-10-10; the dollar figures on this page are dated examples, and GET /v1/quote gives today's.

The prices

Each unit has one price per million, set when your work is admitted and kept for that work, whatever changes after. An example, the prices of 2026-10-10:

UnitPrice per 1M on 2026-10-10Counted as
Pages answered (laya-page-role)$2.289each page with a result, once
Prompt tokens (qwen3.8-27b)$0.091prompt tokens not read from the cache
Cached prompt tokens$0.023prompt tokens read from the cache, a quarter of the prompt price
Cache writes$0.091the prompt price: writing to the cache costs nothing extra
Output tokens$1.721every answer token, reasoning included
Training tokens (laya-page-role-base)$0.0061the tokens the trainer feeds, each once
Verifiable RL & OPD tokens (laya-student-lora-grpo/v1, laya-student-lora-opd/v1)$0.0244 ($0.0120 on /scavenge)the prompt and completion tokens across each prompt's num_generations rollouts

Where a token price comes from

A chat model's tariff is either measured by us or declared by the pool that serves it; measured in GET /v1/models says which.

TariffSet frommeasured reads
MeasuredOur own measurement of the model at full load: its measured speed sets the price.An object: on, the date, and the measured speeds.
DeclaredPrompt and output prices per 1M that the pool's owner declares: a model you enrolled yourself (Bring your own model), or one we serve at a declared price. Cached and cache-write prices follow from the prompt price.null: no measurement of ours stands behind it.

Measured examples:

Chat modelPrompt per 1MCached per 1MOutput per 1MMeasured
qwen3.8-27b$0.091$0.023$1.7212026-10-05, 8 streams
qwen3.5-4b$0.025$0.006$0.8612026-10-11, 8 streams
blink-v0.3-26b-a4b$0.020$0.005$0.9232026-10-11, 8 streams
decider-35b-a3b$0.032$0.008$0.7152026-10-11, 8 streams

Either tariff follows the cost of the hardware behind it, so it can move between one job and the next; 503 price_unavailable means none can be set now.

Large models and your token price

A large model runs as one replica laid across several accelerator cards; Models writes TP2 for two cards and TP4 for four. That sizes our cost, never your unit.

Our sideYour side
UnitA replica rented by the hour: one card's hourly rate times the cards it spans, so a TP4 replica costs four cards.Tokens: prompt, cached and output, per 1M.
Where it showsIn no answer of this API.The quote, price in the catalog, and your usage.
The card countSizes what we rent.Changes nothing: never multiply a quoted price by it. The quoted price is the whole price of your call.

Before a job: the quote

sh
curl -s "https://weights.fyi/run/v1/quote?model=laya-page-role&pages=100000" -H "Authorization: Bearer $WEIGHTS_API_KEY"

A page job costs its pages times the page price, whether the model is asleep or ready. A fine-tune's quote is an estimate (GET /v1/quote (finetune)); the job is charged for the tokens it actually trains, every epoch, never the validation pass. The same prices admit your work: a batch whose pages cost more than your available credit is refused before it runs.

As your work lands: the charges

  • Pages are charged per batch of results as they are written: a page answered is a page charged, once. A page that fails is not charged.
  • A chat call is charged once, when it ends: its prompt tokens (cached ones at the cached price) and the answer tokens you received. One refused, failed, cut on our side or ended before its first token costs nothing.
  • A fine-tune is charged as it trains, for the tokens trained since the last charge. Steps the model has to train again after a move are not charged twice; a fine-tune you stop pays for what it trained.

A job's cost (GET /v1/jobs/{job_id}) is the sum of its charges so far, final once it has ended. GET /v1/usage shows each job's units and cost, each LLM endpoint's tokens and charges, and every day's charges by unit.

When the model moves

A move to new hardware costs you a wait, nothing else. Pages in flight are sent again and charged once; a chat call in flight is carried over and charged once, on your own prompt and the answer tokens you received. A job served across a move lists its runs.

Credit

Add prepaid credit by card under Billing & usage: you pay on Stripe's hosted payment page and come straight back. No card data reaches this service. Payments on this service run in Stripe's test mode for now, so that page takes Stripe's test cards, not a real card. Credit is prepaid, in US dollars. Owners can also enroll in monthly pay-as-you-go; its spending allowance replaces the prepaid credit gate. GET /v1/usage shows where it stands, and available_usd_micros is what you can spend now. The allowance gates work before it runs:

  • New work must fit your spending allowance at its price (402 queue_exceeds_credit with pages_allowed; 402 training_not_covered for a fine-tune's estimate).
  • Starting the model costs nothing, so work that starts it needs a positive spending allowance (402 no_credit when there is none).
  • When the allowance runs out during a job, no new pages are sent; the job shows waiting_for: "credit" and goes on once spending allowance is available again. Pages with the model finish, so a balance can end slightly below zero.
  • A fine-tune's estimate is set aside while it is open.

Keeping the model ready

POST /v1/endpoint/warm starts the model ahead of your work, and holding an LLM endpoint ready (POST /v1/endpoints/{endpoint}/ready) keeps it so. Both are free, and so are the 144 s the model stays awake after your last page.

Spend caps and options

A token can carry a spend cap per UTC day: the charges of its jobs posted since 00:00 UTC plus their waiting pages at their price, and new work that would pass it is refused with 402 token_daily_cap. The cap also holds what is left of the token's open training estimates every day until they end, and a training job that reaches it stops cleanly at a checkpoint until the next day or a higher cap; its cost can pass the cap by a little. Tracing and tracking, which sends your traces to your own destinations, is priced per job: Tracing and tracking is free today: its fee per job is $0.00.