Skip to main content

Discounts

A multiplier on list price, set per entrypoint or per model.

How discounts work

List price is a model’s undiscounted price, as its vendor publishes it. For Nunchux-optimized models, Nunchux is the vendor. With a discount, your charge is list price × multiplier. The multiplier is specific to your account and to one entrypoint. An entrypoint is a group of models, not a single model. The multiplier comes off each charge, on every entrypoint. The credits_used field on GET /v1/usage already includes it. Batch requests are the exception. A batch request is charged without your multiplier, at the price you would pay with no discount. The difference is credited to your balance when the month’s invoice closes, using your entrypoint-wide multiplier. Until then, pending_discount_estimate on GET /v1/credits shows the credit so far. The Nunchux-optimized entrypoint is spelled nunchaku in the API, in this response and in error bodies.

The default discount

Without a discount, some models carry a default discount: you pay list price × 0.9, which is 10% off list price. The table above shows which ones. On the others, you pay list price. GET /v1/pricing shows the price you pay on each model. A discount replaces the default discount. The two never combine. For example, with a google multiplier of 0.8 you pay list price × 0.8, not list price × 0.9 × 0.8. A row covers either every model behind its entrypoint or one model only. Entrypoints where you have no discount have no row at all.

Entrypoint rows and model rows

Each row has a model_key.
  • model_key is null: the row covers every model of the entrypoint.
  • model_key is a model id: the row covers that model only. It replaces the entrypoint row for that model.
The two never combine. Exactly one multiplier applies to a request: the model’s own row if it has one, otherwise the entrypoint row. Models with neither row get the default discount if they carry one, and list price otherwise. Model rows do not apply to batch requests yet. Batch requests use the entrypoint row.

Checking your discounts

GET /v1/discounts takes no parameters and returns only your own rows. It uses the same API key for authentication as every other endpoint.
A 200 carries a single discounts array, sorted by entrypoint. The API returns standard error codes with a JSON error body.
No active discount is a normal 200, not an error. An empty array means no discount applies: each model gets the default discount if it carries one, and list price otherwise.
The response carries multiplier and nothing precomputed, so derive any percentage you want to display yourself.
PollingThis is a free poll and it never takes a job slot. It still counts toward your requests per minute, and a discount changes rarely, so caching the response for minutes is fine. There is no webhook for discount changes.

Reading the multiplier

The multiplier field is the fraction of list price you pay.

Time windows

Every discount has a start date and may have an end date. The endpoint returns only the discounts that are active now. One that has not started yet, or that has already ended, is left out entirely rather than returned as an inactive row.

Where else the multiplier shows

  • GET /v1/pricing lists entrypoint-wide rows under contract. It lists model rows under model_contract, by entrypoint and then by model. On Nunchux Optimized models, applied_at reads charge.
  • GET /v1/models returns contract_multiplier for each model. It is the model’s own row if it has one, otherwise its entrypoint row.