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

# Qwen 3 Coder

> A code-specialized Qwen model for generation, debugging, and structured engineering tasks.

## Overview

`qwen-3-coder` is the specialized Qwen option when your workload is mostly code generation and debugging rather than mixed general-purpose work.

## Specs

| Field              | Value                                            |
| ------------------ | ------------------------------------------------ |
| Model ID           | `qwen-3-coder`                                   |
| Best for           | Code generation, debugging, implementation tasks |
| Context window     | 131K                                             |
| Max output tokens  | 32K                                              |
| Input modalities   | Text                                             |
| Output modalities  | Text                                             |
| Tool calling       | Yes                                              |
| Structured outputs | Yes                                              |
| Prompt caching     | Yes                                              |
| Speed              | Medium                                           |
| Cost band          | Balanced                                         |
| Release stage      | Stable                                           |

## Use this when

* Your workload is mostly implementation rather than open-ended reasoning.
* You want a code-specialized option that still supports tools and JSON outputs.
* You need more context than `qwen-3-32b`.

## Pick something else when

* You want the best general-purpose default: use [`qwen-3.6-plus`](/models/qwen-3.6-plus).
* You want stronger long-session agent behavior: use [`kimi-k2.6`](/models/kimi-k2.6).
* You need faster low-latency coding loops: use `qwen-3-32b`.

## Example

```python theme={null}
from openai import OpenAI

client = OpenAI(base_url="https://kymaapi.com/v1", api_key="ky-...")

response = client.chat.completions.create(
    model="qwen-3-coder",
    messages=[{"role": "user", "content": "Write a Bun route handler with input validation and tests."}],
    response_format={"type": "json_object"}
)
```
