> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nunchux.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Authenticate every request with your API key in the `X-API-Key` header or `Authorization: Bearer`. Keys start with `sk-nunchux-`.
> Image generation is synchronous: the image is in the response.
> Video generation is asynchronous: submit the job, poll its task until it reaches a terminal status, then download the output promptly, because output URLs expire.

# Discounts

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

# 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`](https://docs.nunchux.ai/credits-pricing#checking-your-balance) shows the credit so far.

| Entrypoint | Covers | Without a discount |
| - | - | - |
| `kling` | Every Kling model, mode, and duration | 10% default discount on `kling-v3` and `kling-v3-omni`. Other Kling models: list price. |
| `nunchaku` | Nunchux-optimized image and video models | List price |
| `google` | Every Google model: Nano Banana image | 10% default discount |
| `heygen` | Every HeyGen avatar video model | 10% default discount |
| `minimax` | MiniMax H3 video | 10% default discount |
| `alibaba` | Every Alibaba Cloud model: Wan and HappyHorse video | List price |

The Nunchux-optimized entrypoint is spelled `nunchaku` in the API, in this response and in [error bodies](https://docs.nunchux.ai/errors.md).

### 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](#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](https://docs.nunchux.ai/authentication.md) as every other endpoint.

```bash curl theme={"system"}
curl https://api.nunchux.com/v1/discounts \
  -H "X-API-Key: $NUNCHUX_API_KEY"
```

```python python theme={"system"}
import os
import requests

response = requests.get(
    'https://api.nunchux.com/v1/discounts',
    headers={'X-API-Key': os.environ['NUNCHUX_API_KEY']},
    timeout=30,
)
response.raise_for_status()

print(response.json())
```

A `200` carries a single `discounts` array, sorted by entrypoint. The API returns [standard error codes](https://docs.nunchux.ai/errors.md) with a JSON error body.

```json theme={"system"}
{
  "discounts": [
    {
      "entrypoint": "kling",
      "model_key": null,
      "multiplier": 0.9,
      "effective_from": "2026-06-10T00:00:00+00:00",
      "effective_to": null
    },
    {
      "entrypoint": "nunchaku",
      "model_key": null,
      "multiplier": 0.9,
      "effective_from": "2026-07-01T00:00:00+00:00",
      "effective_to": "2026-09-30T00:00:00+00:00"
    }
  ]
}
```

| Field | Type | Description |
| - | - | - |
| `entrypoint` | string | Which surface the discount applies to. One of the entrypoints above. |
| `model_key` | string \| null | The model the row covers, or null when it covers every model of the entrypoint. |
| `multiplier` | number | The fraction of list price you pay. |
| `effective_from` | string | ISO-8601 timestamp with UTC offset. When the discount began. Always present. |
| `effective_to` | string \| null | ISO-8601 timestamp, or null for an open-ended discount. When present, the discount ends at this instant (exclusive). |

No active discount is a normal `200`, not an error. An empty array means no discount applies: each model gets the [default discount](#the-default-discount) if it carries one, and list price otherwise.

```json theme={"system"}
{
  "discounts": []
}
```

The response carries `multiplier` and nothing precomputed, so derive any percentage you want to display yourself.

> [!NOTE]
>
> Polling
>
> This is a free poll and it never takes a job slot. It still counts toward your [requests per minute](https://docs.nunchux.ai/rate-limits.md), 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.

| Value | Meaning | How to display |
| - | - | - |
| 0 \< m \< 1 | Discount | discount = (1 − m) × 100 %, so m = 0.90 means a 10% discount |
| m = 1 | List price | No discount. On a model with a default discount, this is more than you would pay without the row. |
| m > 1 | Surcharge | You pay more than list price |

## Time windows

Every discount has a start date and may have an end date.

| Field | Meaning |
| - | - |
| `effective_from` | When the discount starts. |
| `effective_to` | When it ends. A null value means it has no 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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.