Qwen3.8 Max (0902)
qwen/qwen3.8-max-0902Run Qwen3.8 Max (0902) in a hosted Python Task with structured output, extended thinking and file inputs.
Alibaba's Qwen3.8 Max (0902 snapshot) via OpenRouter. A 2.4T-parameter mixture-of-experts reasoning model that accepts image and video input, with a 1M token context window.
What Qwen3.8 Max (0902) supports in qbash
- Structured outputReplies as JSON that matches a schema you pass.
- Extended thinkingReasons through a problem before it replies.
- Reasoning effort5 levels, from minimal to xhigh.
- Image inputReads WEBP, PNG, JPEG and GIF images.
- Document inputReads PDF, TEXT, DOC, XLS, RTF and 7 more files.
- Prompt cachingRepeated input is billed at the cached rate.
What is qbash?
qbash is where you build Tasks: Python programs that run a business process on managed infrastructure. Your code runs the steps and calls a model like Qwen3.8 Max (0902) only at the ones that need judgment, with integrations, memory and files available in the same script.
A developer writes the Task once, and anyone on the team runs it from a form, on a schedule, from a webhook or from chat. Each Task is versioned and every run is logged.
Specifications
- Context window
- 1Mtokens
- Max output
- 131,072tokens
- Temperature
- 0 to 1default 1
Structured output with Qwen3.8 Max (0902) in a Python Task
qbash.ai.raw calls Qwen3.8 Max (0902) from a Task. Pass a JSON Schema as output_schema and the reply comes back as a Python dict that matches it, ready to route to a connector.
ticket = qbash.inputs.get("ticket")
triage = qbash.ai.raw(
f"Summarize this support ticket and rate its urgency:\n\n{ticket}",
model="qwen/qwen3.8-max-0902",
output_schema={
"type": "object",
"properties": {
"summary": {"type": "string"},
"urgency": {"type": "string", "enum": ["low", "medium", "high"]},
},
"required": ["summary", "urgency"],
},
)
# triage is a dict, e.g. {"summary": "...", "urgency": "high"}
if triage["urgency"] == "high":
qbash.integrations.slack.create_message(
channel="#support",
text=triage["summary"],
)
qbash.output(triage)
Reasoning effort with Qwen3.8 Max (0902)
Set Effort to minimal, low, medium, high and xhigh in the prompt's Settings. Higher effort spends more tokens on reasoning before the reply.
Turn on Thinking in the same Settings popover to have Qwen3.8 Max (0902) reason through a problem before it replies.
Qwen3.8 Max (0902) pricing
| Input | $2.00 per 1M tokens |
|---|---|
| Output | $6.00 per 1M tokens |
| Cached input | $0.25 per 1M tokens |
| Cache write | $2.50 per 1M tokens |
Standard rates in USD.
Supported file formats
Images
- WEBP up to 5 MB
- PNG up to 5 MB
- JPEG up to 5 MB
- GIF up to 5 MB
Documents
- TEXT
- DOC
- XLS
- RTF
- DOCX
- XLSX
- PPTX
- PPT
- ODT
- ODP
- ODS