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

# Pricing

> Pay-as-you-go pricing for API usage

<Tip>New users in the Singapore region get a free quota to try models at no cost. Other regions have no free quota. See [Free quota](/resources/free-quota) for details.</Tip>

Billing varies by model type: text models charge per token, image generation per image, video generation per second, and speech models per character or per second of audio. Failed API calls are not charged and do not consume free quota.

<Note>
  Prices differ by **region** and by **service deployment scope**, and so do the models available. The [Model pricing](/developer-guides/getting-started/model-prices) reference lists unit prices in one tab per region: select the tab for the region whose endpoint you call. See [Regions and endpoints](/developer-guides/getting-started/regions). For featured model pricing and discounts, visit the [Pricing page](https://www.qwencloud.com/pricing/api). For the full catalog, see the [Model Marketplace](https://www.qwencloud.com/models).
</Note>

Select a region in the upper-right corner of the console before you check prices. Switching regions changes the models and prices shown, but not the currency: prices in all regions are listed and billed in US dollars (USD).

The billing rules on this page apply in every region. Unit prices in the examples below are illustrative.

## Text generation

### Qwen4-Max prices <span id="qwen4-max-pricing" />

Real-time and cache prices are in USD per million tokens. Thinking and non-thinking modes use the same price, with no input-length tiers.

| Billing item                   | Singapore (International) | Beijing (China) / Global |
| ------------------------------ | ------------------------- | ------------------------ |
| Input                          | \$1.5                     | \$1.413                  |
| Output (thinking + answer)     | \$4.5                     | \$4.24                   |
| Cache write (5m)               | \$1.875                   | \$1.767                  |
| Cache write (1h)               | \$3                       | \$2.827                  |
| Explicit / implicit cache read | \$0.075                   | \$0.071                  |

Global deployment is available in Frankfurt, Hong Kong, Tokyo and US (Virginia).

**Qwen4-Max Batch prices — China North 2 (Beijing) only**

Prices are in USD per million tokens.

| API                                                                               | Input                   | Output                 |
| --------------------------------------------------------------------------------- | ----------------------- | ---------------------- |
| [Batch File](/developer-guides/text-generation/batch)                             | \$0.707                 | \$2.12                 |
| [Batch Chat](/developer-guides/text-generation/batch-chat) (limited-time 50% off) | Original price: \$1.413 | Original price: \$4.24 |

### General text generation billing

Billed per million tokens. Input and output are priced separately.

**Tiered pricing**: Some models use tiered pricing — the rate depends on the total input tokens in a single request. All tokens in that request are billed at the matched tier.

<Accordion title="Tiered pricing example">
  Suppose a model has two tiers: 0 \< tokens ≤ 32K and 32K \< tokens ≤ 128K. If a single request contains 100K input tokens, it falls in the second tier (32K \< 100K ≤ 128K), so ALL tokens are billed at the second-tier rate — not the first 32K at tier 1 and the remaining 68K at tier 2.
</Accordion>

**Factors that affect billing**:

- **[Batch File](/developer-guides/text-generation/batch)** — Asynchronous file processing costs 50% of the real-time input and output rates. The service is available in Singapore and China North 2 (Beijing); check the supported models for your region.
- **[Batch Chat](/developer-guides/text-generation/batch-chat)** — The request waits for the result. List prices match real-time rates, with a limited-time 50% discount. Available in China North 2 (Beijing) for supported models.
- **Context caching** — Cached input tokens receive a discount; the exact discount varies by model. [Learn more →](/developer-guides/run-and-scale/context-cache)
- **Thinking mode** — Thinking tokens count as output tokens and are billed at the output rate. [Learn more →](/developer-guides/text-generation/thinking#billing)
- Batch and cache discounts cannot be combined on the same request.

## Image generation

Billed per input image and per successfully generated **output image**. Models that don't specify an input image price charge output only.

**Billing formula**:

```
fee = input_image_price × input_count + output_image_price × output_count
```

**Notes**:

- Some models tier output pricing by **output image resolution**.
- Text-to-image has no input images, so no input charge applies.
- Failed requests are not charged.

<Accordion title="Image generation billing example">
  Suppose a model bills input and output images separately: \$0.003/image for input, and output is tiered by resolution — \$0.03/image at 1k, \$0.075/image at 2k.

  **Example 1: Image-to-image, 1k output, 1 image generated**

  - Input fee: \$0.003 × 1 = \$0.003
  - Output fee: \$0.03 × 1 = \$0.03
  - Total: \$0.033

  **Example 2: Text-to-image, 2k output, 2 images generated**

  Text-to-image has no input image, so no input charge:

  - Output fee: \$0.075 × 2 = \$0.15
  - Total: \$0.15

  **Example 3: Request 4 images, only 3 succeed**

  Only successfully generated images are billed. Failed images incur no charge.
</Accordion>

## Video generation

Output is billed per **second of generated video**. Some models also charge for input video by the second; models without a listed input video price do not charge for input.

**Billing formula**:

```
fee = output_price_per_second × output_duration (seconds) + input_price_per_second × billable_input_duration (seconds)
```

**Notes**:

- Some models price by **output resolution** (e.g., 720P vs 1080P).
- Some models price by **output mode** (e.g., standard vs professional).
- Some models price by **aspect ratio** (e.g., 1:1 vs 3:4).
- Some models use a flat rate regardless of resolution, mode, or aspect ratio.
- Reference-to-video, video editing, and Wan 3.0 video generation models also **bill input video by the second** at the same rate as output. This includes: `wan3.0-video`, `wan3.0-video-prime`, `wan2.7-r2v` series, `wan2.6-r2v` series, `wan2.7-videoedit`, and `happyhorse-1.0-video-edit`. Exception: `wan2.1-vace-plus` is a video editing model but does not charge for input.
- Text-to-video, image-to-video, and other models without input video billing incur no input charge.
- Failed requests are not charged.

<Accordion title="Video generation billing example">
  Suppose a model charges \$0.10/sec at 720P. You generate a 5-second video:

  - Fee: \$0.10 × 5 = \$0.50

  If the same model charges \$0.15/sec at 1080P, generating 5 seconds:

  - Fee: \$0.15 × 5 = \$0.75

  **Example 3: Reference-to-video with input video billing**

  Suppose a reference-to-video model charges \$0.10/sec for both input and output video. You provide a 3-second reference video and generate a 5-second output video:

  - Input fee: \$0.10 × 3 = \$0.30
  - Output fee: \$0.10 × 5 = \$0.50
  - Total: \$0.80

  Input video duration has a billing cap. See [Reference-to-video](/developer-guides/video-generation/reference-video#input-video-billing-rules) for details.
</Accordion>

## Text to speech

Billed per **10,000 input characters**. Output is not charged.

**Character counting rules**:

- One Chinese character (simplified, traditional, Japanese kanji, Korean hanja) counts as 2 characters.
- All other characters (letters, digits, punctuation, spaces, Japanese kana, Korean letters) count as 1 character.
- When using SSML, only the text content is counted — SSML tags are excluded.

**Example**: "Hello" = 5 characters; a single Chinese character = 2 characters.

## Speech to text

Billed per **second of audio input**. Output is not charged. Applies to both real-time recognition and audio file transcription.

## Speech to speech

Speech-to-speech models (Qwen-Omni series) handle text, audio, and image/video in a single call. Billed per million tokens, with different rates per modality.

**Multi-turn billing**: Like text models, the model maintains full conversation context. Historical turns are billed as input in subsequent rounds, so input token counts grow with each turn.

Token conversion rates vary by model. See [Token counting →](/developer-guides/run-and-scale/token-counting) for details.

## Embedding & reranking

Billed per million input tokens. Output is not charged.

**Factors that affect billing**: Models that support Batch API are billed at 50% of real-time input pricing (Batch is available in Singapore and China North 2 (Beijing)).

<a id="built-in-tools" />

## Built-in tools

Some built-in tools incur per-call fees in addition to model token costs. Tool fees differ by region. Prices are per 1,000 calls.

| Tool                                                                | Singapore           | China North 2 (Beijing) | Germany (Frankfurt) | China (Hong Kong)   | Japan (Tokyo)       | US (Virginia)       |
| ------------------------------------------------------------------- | ------------------- | ----------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
| [Web Search](/developer-guides/tool-calling/web-search)             | \$10                | \$0.573411              | \$0.573411          | \$0.573411          | \$0.573411          | \$0.573411          |
| [Web Extractor](/developer-guides/tool-calling/web-scraping)        | Free (limited time) | Free (limited time)     | Free (limited time) | Free (limited time) | Free (limited time) | Free (limited time) |
| [Code Interpreter](/developer-guides/tool-calling/code-interpreter) | Free (limited time) | Free (limited time)     | Free (limited time) | Free (limited time) | Free (limited time) | Free (limited time) |
| [Image Search](/developer-guides/tool-calling/image-search)         | \$8                 | \$6.881                 | -                   | -                   | -                   | -                   |

Image Search covers text-to-image and image-to-image search. Image Search is available only in Singapore and China North 2 (Beijing).

[Function calling](/developer-guides/tool-calling/function-calling) and [MCP](/developer-guides/tool-calling/mcp) have no tool fees — tool descriptions count as input tokens.

## Save on costs

- **Batch API** — 50% off for async workloads (Singapore and China North 2 (Beijing)). [Learn more →](/developer-guides/text-generation/batch)
- **Context caching** — Reuse long prompts at reduced cost. [Learn more →](/developer-guides/run-and-scale/context-cache)
- **Model selection** — Match model tier to task complexity. [Compare models →](https://www.qwencloud.com/models)

For worked examples and advanced strategies, see [Cost optimization →](/developer-guides/run-and-scale/cost-optimization).

## Learn more

- [Model pricing](/developer-guides/getting-started/model-prices) — Unit prices by region
- [Regions and endpoints](/developer-guides/getting-started/regions) — Regions, service deployment scopes, and Base URLs
- [Free quota](/resources/free-quota) — Eligibility and activation
- [Cost optimization](/developer-guides/run-and-scale/cost-optimization) — Advanced strategies
- [Token Plan](/token-plan/overview) — Credits-based pricing for AI coding tools
- [Billing FAQ](/resources/faq-billing) — Common questions
- [Bill management](/resources/bill-query) — View usage and invoices
