AI Gateway pricing
AI Gateway bills model token usage in USD. It’s on the same plans as every other DWS API: Requests use your plan’s included monthly usage first. Once that runs out, they’re charged to your wallet. One plan and one balance cover all the DWS APIs.
Plans
The free plan includes $5 of usage every month, shared across all DWS products. See API pricing for every plan and what it includes, and the dashboard pricing page(opens in a new tab) for your account’s plan and billing settings.
Token rates
AI Gateway lists model prices in USD per million tokens, with separate rates for input, cached input, and output. The same rates apply to your monthly usage and to your wallet.
| Model | Input | Cached input | Output |
|---|---|---|---|
| Nutrient Small | $0.12 | $0.012 | $0.60 |
| Nutrient Medium | $1.20 | $0.06 | $6.00 |
| Nutrient Large | $2.40 | $0.12 | $12.00 |
| Nutrient Document Decision | $0.10 | $0.10 | Free |
| Nutrient System One | $0.0504 | $0.0504 | Free |
| Nutrient Embedding | $0.024 | — | — |
Estimate a request
For a request without long-context adjustments, add these charges:
- Uncached input tokens × input rate ÷ 1,000,000.
- Cached input tokens × cached-input rate ÷ 1,000,000.
- Output tokens × output rate ÷ 1,000,000.
Cached input is part of total input; subtract it before calculating the uncached-input charge. Actual charges use reported token usage. Model-specific long-context pricing can change the estimate.
Pay-as-you-go and quota
Requests draw on your plan’s monthly usage first. Usage beyond it is paid from your prepaid pay-as-you-go wallet, at the same token rates. The wallet reloads automatically when it runs low, up to a monthly limit you set in the dashboard. When neither your monthly usage nor your wallet can cover a request, it can return 402 insufficient_quota.
Test keys and streaming
Test keys don’t consume your included usage, and they’re not a production tier.
Streaming requests also consume tokens. Disconnecting a client doesn’t guarantee that generation or billing stops.
Next steps
- Errors and limits — Handle quota and rate-limit failures.