Qwen3-30B-A3B

Models

Model details

Model
alibaba/qwen-3-30b
Provider
vercel-ai-gateway
API
anthropic-messages
Base URL
https://ai-gateway.vercel.sh
Input
text
Reasoning
Yes
Context window
40,960
Max tokens
16,384
Show configuration
{
  "providers": {
    "vercel-ai-gateway": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "alibaba/qwen-3-30b",
          "name": "Qwen3-30B-A3B",
          "reasoning": true,
          "input": [
            "text"
          ],
          "contextWindow": 40960,
          "maxTokens": 16384,
          "cost": {
            "input": 0.12,
            "output": 0.5,
            "cacheRead": 0,
            "cacheWrite": 0
          },
          "compat": {
            "allowEmptySignature": true
          }
        }
      ],
      "api": "anthropic-messages",
      "baseUrl": "https://ai-gateway.vercel.sh"
    }
  }
}

Pricing

USD per million tokens. A tier is selected from the total input tokens in each request and applies to that entire request.

Pricing rates for Qwen3-30B-A3B
Request inputInputOutputCache readCache write
All requests$0.12$0.5$0$0

Session cost calculator

Estimate the requests made during an agent session. A user turn can make several model calls while using tools, so costs are calculated per model request.

Session shape
Rounded median shapes from recent Pi agent sessions.
Warm-request cache reuse
Effective token reuse combines partial hits and occasional complete misses.
Estimated session$0.00
Uncached input
—
Cache reads
—
Uncached prefixes
—
Cache writes
—
Output
—
Without caching
—

The first request starts cold unless marked otherwise. Output is billed separately from context growth because reasoning tokens are not always retained. This remains a directional estimate: providers differ in eligibility, rounding, and retention.

Compatibility flags

Effective values after applying Pi's API defaults and model overrides.

Effective compatibility flags for Qwen3-30B-A3B
FeatureValue
supportsEagerToolInputStreamingYes
supportsLongCacheRetentionYes
sendSessionAffinityHeadersNo
supportsCacheControlOnToolsYes
supportsTemperatureYes
forceAdaptiveThinkingNo
allowEmptySignatureYes