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

# Qwen3.6-Flash

> Qwen3.6-Flash vision-language model via Alibaba via AnyFast OpenAI-compatible API. Fast, agentic, and multi-modal.

Qwen3.6-Flash is Alibaba's native vision-language Flash model, available through AnyFast via an OpenAI-compatible interface. It delivers significant improvements in agentic coding, math/code reasoning, and spatial intelligence compared to Qwen3.5-Flash.

## Key capabilities

* **OpenAI-compatible** — Works as a drop-in replacement with the OpenAI SDK
* **1M token context** — Handles massive documents and conversations with up to 66K output tokens
* **Multi-modal input** — Supports text, image, and video inputs
* **Agentic coding** — Substantially improved coding agent benchmarks
* **Reasoning** — Built-in thinking support via `enable_thinking` parameter
* **Built-in tools** — Web search, code interpreter, web scraping, image search via Responses API

## Quick example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://www.anyfast.ai/v1/chat/completions \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "qwen3.6-flash",
      "messages": [
        { "role": "user", "content": "Explain quantum entanglement in simple terms." }
      ]
    }'
  ```

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

  client = OpenAI(
      api_key="YOUR_API_KEY",
      base_url="https://www.anyfast.ai/v1"
  )

  response = client.chat.completions.create(
      model="qwen3.6-flash",
      messages=[
          {"role": "user", "content": "Explain quantum entanglement in simple terms."}
      ]
  )

  print(response.choices[0].message.content)
  ```

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

  client = OpenAI(
      api_key="YOUR_API_KEY",
      base_url="https://www.anyfast.ai/v1"
  )

  stream = client.chat.completions.create(
      model="qwen3.6-flash",
      messages=[
          {"role": "user", "content": "Write a short poem about the sea."}
      ],
      stream=True
  )

  for chunk in stream:
      print(chunk.choices[0].delta.content or "", end="")
  ```

  ```python Thinking (Reasoning) theme={null}
  from openai import OpenAI

  client = OpenAI(
      api_key="YOUR_API_KEY",
      base_url="https://www.anyfast.ai/v1"
  )

  completion = client.chat.completions.create(
      model="qwen3.6-flash",
      messages=[
          {"role": "user", "content": "Solve this math problem: If x² + 5x + 6 = 0, what is x?"}
      ],
      extra_body={"enable_thinking": True},
      stream=True
  )

  for chunk in completion:
      if chunk.choices and chunk.choices[0].delta:
          delta = chunk.choices[0].delta
          if hasattr(delta, "reasoning_content") and delta.reasoning_content:
              print(delta.reasoning_content, end="", flush=True)
          if delta.content:
              print(delta.content, end="", flush=True)
  ```

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

  client = OpenAI(
      api_key="YOUR_API_KEY",
      base_url="https://www.anyfast.ai/v1"
  )

  response = client.chat.completions.create(
      model="qwen3.6-flash",
      messages=[
          {
              "role": "user",
              "content": [
                  {"type": "text", "text": "Describe this image."},
                  {
                      "type": "image_url",
                      "image_url": {
                          "url": "https://example.com/photo.jpg"
                          # Or base64: "url": "data:image/png;base64,iVBORw0KGgo..."
                      }
                  }
              ]
          }
      ],
      max_completion_tokens=300
  )

  print(response.choices[0].message.content)
  ```

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

  client = OpenAI(
      api_key="YOUR_API_KEY",
      base_url="https://www.anyfast.ai/v1"
  )

  response = client.chat.completions.create(
      model="qwen3.6-flash",
      messages=[
          {
              "role": "user",
              "content": [
                  {"type": "text", "text": "Summarize this video."},
                  {
                      "type": "video_url",
                      "video_url": {
                          "url": "https://example.com/sample.mp4"
                          # Or base64: "url": "data:video/mp4;base64,AAAAIGZ0eXBpc29t..."
                      }
                  }
              ]
          }
      ],
      max_completion_tokens=300
  )

  print(response.choices[0].message.content)
  ```

  ```bash cURL (Image) theme={null}
  curl https://www.anyfast.ai/v1/chat/completions \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "qwen3.6-flash",
      "messages": [
        {
          "role": "user",
          "content": [
            {"type": "text", "text": "Describe this image."},
            {"type": "image_url", "image_url": {"url": "data:image/png;base64,iVBORw0KGgo..."}}
          ]
        }
      ],
      "max_completion_tokens": 300
    }'
  ```
</CodeGroup>

> **Note:** `image_url` and `video_url` support both remote URLs (`https://...`) and base64 data URIs (`data:image/png;base64,...` / `data:video/mp4;base64,...`). Image tokens and video tokens are counted in `usage.prompt_tokens_details`.

## Parameters

| Parameter               | Type    | Required | Description                                                                               |
| ----------------------- | ------- | -------- | ----------------------------------------------------------------------------------------- |
| `model`                 | string  | Yes      | Must be `qwen3.6-flash`                                                                   |
| `messages`              | array   | Yes      | List of `{ role, content }` objects. Supports `image_url` and `video_url` for multi-modal |
| `max_completion_tokens` | integer | No       | Maximum tokens to generate                                                                |
| `temperature`           | float   | No       | `0`–`2`. Controls randomness. Default: `1`                                                |
| `stream`                | boolean | No       | Enable SSE streaming. Default: `false`                                                    |
| `top_p`                 | float   | No       | Nucleus sampling threshold. Default: `1`                                                  |
| `stop`                  | array   | No       | Stop sequences. Must be an array. Default: `null`                                         |
| `enable_thinking`       | boolean | No       | Enable reasoning via `extra_body`. Default: `false`                                       |

<Card title="API Reference" icon="code" href="/api-reference/model-api/alibaba/qwen3.6-flash">
  View the interactive API playground for Qwen3.6-Flash.
</Card>

<script src="/feedback.js" />
