This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/dws-ai-gateway/pricing.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. AI Gateway pricing

AI Gateway bills model token usage in USD. Each plan includes a monthly usage allowance, separate from Data Extraction and other DWS products.

Plans and current prices

Use the dashboard pricing page(opens in a new tab) for your account’s available plans, billing settings, and current token rates.

Loading current pricing…

Plan Monthly price (USD) Included usage/month (USD)
Loading current pricing…

Annual options are also available. See the AI Gateway pricing page for all pricing options.

Token rates

AI Gateway lists model prices in USD per million tokens, with separate rates for input, cached input, output, and cache writes, where applicable. Compare model rates below, and check the dashboard pricing page(opens in a new tab) for your account’s current rates, including pay-as-you-go pricing. Use your account’s rates to estimate production costs.

The table below shows USD per million tokens. Select Base rates (included usage) to see how much AI Gateway deducts from your monthly allowance. Select a plan’s pay-as-you-go option to see the amount charged for additional usage. Prices refresh when you open this page. A dash means a rate is unavailable.

Loading current pricing…

Model Input Cached input Output Cache write
Loading current pricing…

Estimate a request

For a request without cache writes or 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. Where a model reports cache-write usage and rates, account for that category separately. 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 monthly included usage first. When pay-as-you-go is enabled, AI Gateway charges additional usage to the shared DWS wallet at your plan’s pay-as-you-go token rates. These rates equal the model’s base token rates multiplied by your plan’s pay-as-you-go multiplier. The pricing cards show the percentage above or below base rates. Configure billing and spending controls in the dashboard. Without remaining included usage or authorized pay-as-you-go capacity, requests 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