inference-providers

Qwen3.8 Flash

by alibaba · family qwen

Facts

Release date2026-08-26
Retired date
Knowledge cutoff
Context (max)1,000,000
Max output
Modalitiestext, image → text
Aliasesqwen3.8-flashQwen3.8-Flash
Open weightsyes (Qwen/Qwen3.8-Flash-Next)
DescriptionProduction vision-language MoE (125B LM params / 6B active); 262K context extensible to 1M via YaRN; API coming soon on QwenCloud — preview architecture for Qwen4.

Unknown values are shown as —.

Offerings

ProviderWire IDVariantEndpointProtocolStatusPrice (USD / Mtok)Reasoning
OpenCode Goqwen3.8-flashflashgo-chat-completionsopenai-chatgatoggle · default off · returns reasoning_content
OpenRouterqwen/qwen3.8-flashflashchat-completionsopenai-chatga0.15 / 0.47effort · default on · returns reasoning_content · round-trips reasoning_content

Reasoning controls

OpenCode Go· qwen3.8-flash· go-chat-completions toggle

chat_template_kwargs.enable_thinking on true · off false

toggle · default off · returns reasoning_content

OpenRouter· qwen/qwen3.8-flash· chat-completions effort

reasoning.effort nonelowmedium●highxhighmax

effort · default on · returns reasoning_content · round-trips reasoning_content

Example requests

OpenCode Go · openai-chat · qwen3.8-flash

curl 'https://opencode.ai/zen/go/v1/chat/completions' \
  -H 'Authorization: Bearer <YOUR_API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "qwen3.8-flash",
  "messages": [
    {
      "role": "user",
      "content": "Tell me about the weather."
    }
  ],
  "chat_template_kwargs": {
    "enable_thinking": true
  }
}'
Python (requests)
import requests

resp = requests.post(
    "https://opencode.ai/zen/go/v1/chat/completions",
    headers={
      "Authorization": "Bearer <YOUR_API_KEY>",
      "Content-Type": "application/json"
    },
    json={
      "model": "qwen3.8-flash",
      "messages": [
        {
          "role": "user",
          "content": "Tell me about the weather."
        }
      ],
      "chat_template_kwargs": {
        "enable_thinking": true
      }
    },
)
print(resp.json())
TypeScript (fetch)
const resp = await fetch("https://opencode.ai/zen/go/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer <YOUR_API_KEY>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "model": "qwen3.8-flash",
    "messages": [
      {
        "role": "user",
        "content": "Tell me about the weather."
      }
    ],
    "chat_template_kwargs": {
      "enable_thinking": true
    }
  }),
})
console.log(await resp.json())

OpenRouter · openai-chat · qwen/qwen3.8-flash

curl 'https://openrouter.ai/api/v1/chat/completions' \
  -H 'Authorization: Bearer <YOUR_API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "qwen/qwen3.8-flash",
  "messages": [
    {
      "role": "user",
      "content": "Tell me about the weather."
    }
  ],
  "reasoning": {
    "effort": "medium"
  }
}'
Python (requests)
import requests

resp = requests.post(
    "https://openrouter.ai/api/v1/chat/completions",
    headers={
      "Authorization": "Bearer <YOUR_API_KEY>",
      "Content-Type": "application/json"
    },
    json={
      "model": "qwen/qwen3.8-flash",
      "messages": [
        {
          "role": "user",
          "content": "Tell me about the weather."
        }
      ],
      "reasoning": {
        "effort": "medium"
      }
    },
)
print(resp.json())
TypeScript (fetch)
const resp = await fetch("https://openrouter.ai/api/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer <YOUR_API_KEY>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "model": "qwen/qwen3.8-flash",
    "messages": [
      {
        "role": "user",
        "content": "Tell me about the weather."
      }
    ],
    "reasoning": {
      "effort": "medium"
    }
  }),
})
console.log(await resp.json())
  • ⚠ Responses include reasoning_content artifacts — pass them back unmodified on subsequent turns (dropping them triggers 400s or quality loss).