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

# Qwen3 235B A22B Instruct

> Qwen's 235B-parameter instruction model combines 22B active parameters with low-cost structured tool use.

&#x20; ![](https://cdn.photogenius.ai/new-ai-images/site/v1/landing/marks/marks/44c15113/qwen.svg)**Qwen**`qwen3-235b-instruct`Context window**262,144 tokens**

Streaming
JSON mode
Tool calling
Long context
Multilingual

Maximum output: **65,536 tokens**.

## Pricing

| Input | Output | Cached input | Cache write |
| :- | :- | :- | :- |
| \$0.20 / MTok | \$0.60 / MTok | \$0.02 / MTok | \$0.20 / MTok |

Typical request (5K input / 1K output tokens): \~\$0.0016. [Live pricing](https://www.ninjachat.ai/api/v1/models/qwen3-235b-instruct).

## Use this model

[Set up your SDK client](https://docs.ninjachat.ai/sdks.md#create-a-client), then run:

```typescript TypeScript SDK theme={null}
const completion = await client.chat.completions.create({
  model: "qwen3-235b-instruct",
  messages: [{ role: "user", content: "Explain edge caching in one paragraph." }],
});

console.log(completion.choices[0].message.content);
```

```python Python SDK theme={null}
completion = client.chat.completions.create(
    model="qwen3-235b-instruct",
    messages=[{"role": "user", "content": "Explain edge caching in one paragraph."}],
)

print(completion["choices"][0]["message"]["content"])
```

```bash cURL theme={null}
curl https://www.ninjachat.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $NINJACHAT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"qwen3-235b-instruct","messages":[{"role":"user","content":"Explain edge caching in one paragraph."}]}'
```

## Supported parameters

`messages``temperature``max_completion_tokens``top_p``stop``frequency_penalty``presence_penalty``seed``stream``user``routing``tools``tool_choice``response_format`

Send only parameters from this list. `routing.require_parameters` (default `true`) skips any provider rail that cannot honor every requested parameter, so requests keep the behavior you asked for.

## Routing & fallbacks

Pin `qwen3-235b-instruct` with `model` when you want this model's behavior, or list it in an ordered `models` array. With `ninja/auto` first, the router's top pick runs first and `qwen3-235b-instruct` is the explicit fallback; `ninja/auto` acts as the router only when it is the first entry.

```json theme={null}
{
  "models": [
    "ninja/auto",
    "qwen3-235b-instruct"
  ],
  "messages": [
    {
      "role": "user",
      "content": "Explain edge caching in one paragraph."
    }
  ],
  "routing": {
    "allow_fallbacks": true
  }
}
```

You are billed at the resolved model's token rates, and only for the successful execution.

> [accordion] Check current availability and limits
>
> ```typescript TypeScript SDK theme={null}
> const model = await client.models.retrieve("qwen3-235b-instruct");
>
> if (!model.servable) throw new Error("qwen3-235b-instruct is temporarily unavailable");
>
> console.log({
>   contextWindow: model.contextWindow,
>   maxOutputTokens: model.maxOutputTokens,
>   capabilities: model.capabilities,
>   supportedParameters: model.supportedParameters,
>   pricing: model.pricing,
>   providers: model.providers,
> });
> ```

**Guides:** [Text generation](https://docs.ninjachat.ai/chat.md) · [Fallbacks](https://docs.ninjachat.ai/fallback-chains.md) · [Smart routing](https://docs.ninjachat.ai/smart-routing.md) · [Pricing](https://docs.ninjachat.ai/pricing.md) · [All models](https://docs.ninjachat.ai/models-overview.md)


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