Qwen3 30B A3B API
qwen3-30b-a3b
Qwen3 30B A3B is a language model from Qwen, available through the GPUniq API under the identifier `qwen3-30b-a3b`. It takes a context window of 131K tokens (roughly 98,304 words — about 197 printed pages) per request. Pricing starts at $0.18 per 1M input tokens. It is reachable from the OpenAI-compatible endpoint, so any client that speaks the OpenAI Chat Completions API works by changing two settings: the base URL and the key.
Pricing
Every request is billed on two counters: the tokens you send (prompt, system message, conversation history, any attached images) and the tokens the model generates. Output is the pricier side on essentially every model, and reasoning tokens count as output even when you never see them. Prices below are per 1,000,000 tokens.
| Billed for | GPUniq | Reference list price | Difference |
|---|---|---|---|
| Inputper 1M tokens | $0.18 | $0.12 | — |
| Outputper 1M tokens | $0.75 | $0.50 | — |
Billed from your GPUniq balance as you use it — no subscription, no monthly minimum, no per-seat fee. Prices refresh from the live catalog hourly.
Specifications
What the model accepts, what it returns, and the limits you will hit first.
- API identifier
qwen3-30b-a3bPass this exact string as the "model" field of your request.
- Type
- Chat & text
Served by Qwen.
- Context window
- 131,072 tokens
About roughly 98,304 words — about 197 printed pages. Prompt, conversation history and attachments all count against it.
- Max output
- 16,384 tokens
Ceiling for a single reply. Set max_tokens below it to cap cost per request.
- Accepts
- Text
What you can put in the request body besides plain text.
- Returns
- Text
- Measured speed
- ≈72 tokens/sec
Rolling average of real GPUniq traffic. This sample comes from non-streaming requests, so it includes the wait before the first token.
- Tokenizer
- Qwen3
Determines how your text splits into billable tokens.
- Available since
- 2025-04-28
- Knowledge cutoff
- 2025-03-31
The model has no built-in knowledge of events after this date.
- Upstream moderation
- No
No vendor-side safety filter is applied on top of the model.
Capabilities
The four things worth checking before you build against a model.
- Function calling: supported
Send tool definitions, get back the call the model wants made.
- Structured outputs: not supported
Replies constrained to your JSON Schema.
- Vision input: not supported
Accepts images in the message content.
- Extended reasoning: supported
Thinks before answering; thinking tokens bill as output.
How to call it
Any OpenAI-compatible client works: change the base URL and the key, keep everything else.
Endpoint
POST /v1/openai/chat/completions
Base URL
https://api.gpuniq.com/v1/openai
curl https://api.gpuniq.com/v1/openai/chat/completions \
-H "Authorization: Bearer YOUR_GPUNIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3-30b-a3b",
"messages": [{"role": "user", "content": "Explain rate limiting in one paragraph."}]
}'Create a key on /chat and send it as a bearer token. The same key works across every model in the catalog, so switching models means changing one string.
Supported request parameters
qwen3-30b-a3b accepts the parameters below. Anything not listed is ignored rather than rejected, so a shared client can send the same body to several models.
- frequency_penalty
- Discourages repeating tokens the model has already used often.
- include_reasoning
- Returns the reasoning trace alongside the answer instead of hiding it.
- logit_bias
- Nudges specific tokens up or down before sampling.
- max_tokens
- Hard cap on the reply length. Also your cost ceiling per request, since output is the expensive half of the bill.
- min_p
- Drops tokens below a share of the top token’s probability.
- presence_penalty
- Pushes the model toward introducing new topics.
- reasoning
- Extended thinking. The model works through the problem before answering; the thinking tokens are billed as output.
- repetition_penalty
- Blunt anti-loop control, mostly useful on open-weight models.
- response_format
- Selects the response shape — plain text or JSON. The weaker cousin of structured outputs: it enforces valid JSON, not your particular schema.
- seed
- Asks for repeatable sampling. Best effort on every vendor — it makes runs similar, it does not make them identical.
- stop
- Stop sequences that cut generation as soon as they appear.
- temperature
- Randomness. Near 0 for extraction and classification, higher for drafting and ideation.
- tool_choice
- Forces or forbids a tool call for one request — useful when you want a guaranteed structured answer instead of prose.
- tools
- Function calling. You describe callable functions in JSON Schema and the model replies with the call it wants made, which is what agent frameworks are built on.
- top_k
- Limits sampling to the k most likely next tokens.
- top_p
- Nucleus sampling — an alternative to temperature. Tune one or the other, not both.
qwen3-30b-a3b — frequently asked
How much does qwen3-30b-a3b cost?
$0.18 per 1M input tokens and $0.75 per 1M output tokens on GPUniq. Billing is pay-as-you-go from your balance — no subscription and no monthly minimum.
What is the context window of qwen3-30b-a3b?
131,072 tokens — roughly 98,304 words — about 197 printed pages. That budget covers your system prompt, the whole conversation history and any attachments you send, not just the newest message. A single reply can be up to 16,384 tokens.
Does qwen3-30b-a3b support function calling and structured outputs?
Yes — qwen3-30b-a3b accepts tool definitions and returns tool calls. Schema-constrained structured outputs are not available on this model; ask for JSON in the prompt and validate on your side.
How do I call qwen3-30b-a3b from my code?
Point any OpenAI-compatible client at https://api.gpuniq.com/v1/openai, use a GPUniq API key as the bearer token, and pass "qwen3-30b-a3b" as the model. The official OpenAI SDKs, LangChain, Cursor, Cline and OpenWebUI all work unmodified — only the base URL and the key change.
How fast is qwen3-30b-a3b?
Around 72 output tokens per second, measured from live traffic on GPUniq rather than quoted from a datasheet. This sample is derived from non-streaming requests, so it includes the wait before the first token.