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

# qwen3.8-2.4t-a95b API: Pricing, Example Requests and qwen3.8-max Comparison

> Qwen qwen3.8-2.4t-a95b is live on LaoZhang API at $1.7143 input and $5.1429 output per 1M tokens, the same price as qwen3.8-max. Thinking mode only. OpenAI-compatible examples, cache billing and FAQ.

LaoZhang API now serves Alibaba's Qwen model `qwen3.8-2.4t-a95b`. You call it through the OpenAI-compatible Chat Completions API, it is billed per token, and it costs the same as `qwen3.8-max`. The model always thinks before it answers; thinking cannot be turned off.

* **Released**: December 4, 2026
* **Status**: Active; available in the `default` group
* **Last checked**: December 4, 2026

## Key facts

| Item | Details |
| - | - |
| Model ID | `qwen3.8-2.4t-a95b` |
| Endpoint | Base URL `https://api.laozhang.ai/v1`; Chat Completions `POST /v1/chat/completions`, with streaming and tool calls |
| Token group and billing | `default` group; billing mode Usage first or Usage-based |
| Thinking | Thinking mode only; sending `enable_thinking: false` returns HTTP 400 |
| Reasoning output | Returned in `choices[0].message.reasoning_content`; reasoning tokens are billed as output |
| Price | \$1.7143 input, \$5.1429 output, \$0.3429 cache read per 1M tokens; the [models and pricing list](https://docs.laozhang.ai/en/models.md) is the current reference |

## Pricing

USD per 1M tokens, set from Alibaba Cloud Model Studio's public price on December 4, 2026 (¥12 / ¥36 per 1M tokens).

| Model | Input | Output | Cache read |
| - | -: | -: | -: |
| `qwen3.8-2.4t-a95b` | \$1.7143 | \$5.1429 | \$0.3429 |
| `qwen3.8-max` (for comparison) | \$1.7143 | \$5.1429 | \$0.3429 |

* One price tier: any request with up to 1M input tokens is billed at the rates above.
* Cache reads: repeated requests that share a prefix hit the cache automatically, with no extra parameter, and cached tokens cost 20% of the input price. The count is in `usage.prompt_tokens_details.cached_tokens`.

## Example requests

Create an API key under [Token management](https://api.laozhang.ai/token): choose the `default` group, with the billing mode set to Usage first (recommended) or Usage-based. Then set an environment variable:

```bash theme={null}
export LAOZHANG_API_KEY="your LaoZhang API key"
```

For the Python example, run `python -m pip install openai` first.

> [tab] cURL
>
> ```bash theme={null}
> curl https://api.laozhang.ai/v1/chat/completions \
>   -H "Authorization: Bearer $LAOZHANG_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "model": "qwen3.8-2.4t-a95b",
>     "messages": [
>       {"role": "user", "content": "Explain what a database index is in three sentences."}
>     ]
>   }'
> ```

> [tab] Python
>
> ```python theme={null}
> import os
> from openai import OpenAI
>
> client = OpenAI(
>     api_key=os.environ["LAOZHANG_API_KEY"],
>     base_url="https://api.laozhang.ai/v1",
>     timeout=300.0,
> )
> response = client.chat.completions.create(
>     model="qwen3.8-2.4t-a95b",
>     messages=[{"role": "user", "content": "Explain what a database index is in three sentences."}],
> )
> message = response.choices[0].message
> print(getattr(message, "reasoning_content", None))  # reasoning
> print(message.content)                               # final answer
> ```

* The final answer is in `choices[0].message.content` and the reasoning in `choices[0].message.reasoning_content`.
* To spend fewer reasoning tokens, add `"reasoning_effort": "low"` to the request.
* Token usage and the charge for each request are in your [usage logs](https://api.laozhang.ai/log).

## qwen3.8-2.4t-a95b or qwen3.8-max?

| | `qwen3.8-2.4t-a95b` | `qwen3.8-max` |
| - | - | - |
| Price | \$1.7143 input, \$5.1429 output | Same |
| Thinking | Always on | On by default; send `enable_thinking: false` to turn it off |
| Good for | Complex tasks that benefit from reasoning | Reasoning tasks plus quick replies that need no thinking |

The price is the same, so the choice comes down to whether you need to turn thinking off. For replies without thinking (classification, rewriting, short answers), use `qwen3.8-max` with `enable_thinking: false`. Otherwise, run a few representative requests from your own workload on both and compare quality and latency.

## Who is affected

* **Applies to**: projects that want to call `qwen3.8-2.4t-a95b`. Any API key in the `default` group with Usage first or Usage-based billing works.
* **Not affected**: existing Qwen models such as `qwen3.8-max` and `qwen4-max` are unchanged, and existing integrations need no changes.

## FAQ

### Why does `enable_thinking: false` return an error?

`qwen3.8-2.4t-a95b` only runs in thinking mode. When a request includes `enable_thinking: false`, LaoZhang API returns HTTP 400 with a message explaining why, and nothing is billed. Remove the parameter or set it to `true`; for replies without thinking, call `qwen3.8-max` instead.

### Are reasoning tokens billed?

Yes. Reasoning tokens count as output tokens and are billed at \$5.1429 per 1M tokens. Read `content` if you only need the final answer, and send `"reasoning_effort": "low"` to cut down the reasoning.

### Does it support streaming and tool calls?

Yes. Set `"stream": true` for streaming, and add `"stream_options": {"include_usage": true}` if you want usage in the last chunk. Tool calls use the OpenAI `tools` parameter, and the model returns `tool_calls`.

### How is caching billed?

There is nothing to turn on. Repeated requests that share a prefix, such as the same long system prompt, hit the cache automatically. Cached tokens cost \$0.3429 per 1M tokens and the rest of the input \$1.7143. The cached count is in `usage.prompt_tokens_details.cached_tokens`.

### Where do I check current prices and actual charges?

The [models and pricing list](https://docs.laozhang.ai/en/models.md) has current prices, and your [usage logs](https://api.laozhang.ai/log) show the model, token usage and charge for each request.

## Sources and related links

* [Alibaba Cloud Model Studio pricing](https://help.aliyun.com/zh/model-studio/model-pricing): prices for `qwen3.8-2.4t-a95b` and `qwen3.8-max`.
* [Models and pricing](https://docs.laozhang.ai/en/models.md)
* [LaoZhang API announcements](https://docs.laozhang.ai/en/changelog.md)


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