All models

Qwen

Qwen 3.8 Flash

Qwen3.8 Flash is a multimodal reasoning model from Alibaba. It is suited for coding assistance, agentic workflows, visual understanding, document and codebase analysis, desktop interaction, chart analysis, and long-video analysis.

textreasoningfunction tools
qwen3.8-flash
Open in playground

Our price

$0.309375 / $0.969375

input / output per 1M

Official

$0.113 / $0.382
+153.8–173.8% vs official

USD · Published rate · Updated 2026-10-12

First request

Available
curl https://api.tokely.me/v1/chat/completions \
  -H "Authorization: Bearer $TOKELY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3.8-flash",
    "messages": [{"role": "user", "content": "Hello!"}],
    "max_tokens": 1024
  }'

Set TOKELY_API_KEY to your dashboard key. Requests require a funded Tokely balance. Base URL: https://api.tokely.me/v1.

Capabilities & limits

Context window
1,000,000 tokens
Model max output
131,072 tokens
Cached input price
$0.033011 per 1M tokens
Provider
Qwen
API model ID
qwen3.8-flash
Category
Text
Endpoints
POST /v1/chat/completions
Tokely max output
131,072 tokens / request, including reasoning tokens
Default output
256 tokens. Set an explicit limit for longer responses.
Request limits
16 MB JSON body (including base64) · 128 messages · 32 function tools
Rate limit
60 requests / minute / account, across its keys
Supported input
Text and function tool results · inline PNG, JPEG and WebP images
Model modalities
text, image, video. Tokely accepts text, inline images and PDFs where listed above; audio and video input are not enabled.

The context includes your instructions, conversation history, tool definitions and generated output. Keep the input and requested output within the model’s context window.

API reference

Authenticate with Authorization: Bearer YOUR_TOKELY_API_KEY. Use an OpenAI SDK with the Tokely base URL.

model
Required string: qwen3.8-flash
messages
An array of system, developer, user, assistant and tool messages.
max_tokens
Optional integer, 1–131,072. Defaults to 256.
stream
Streaming has not been verified for this model.
reasoning_effort
Optional reasoning effort. Supported values depend on the model; omit to use its default.
tools
Function definitions executed by your application. Provider-hosted tools are not enabled.

The response contains choices with message or tool_calls, finish_reason, and usage (prompt_tokens, completion_tokens, total_tokens). Streaming sends chat completion chunks.

400 / 415
Invalid request, parameter, endpoint for this model, or content type.
401 / 403
Invalid, revoked or restricted API key.
402
Insufficient account balance or API key budget.
429
Request limit reached. Retry after the indicated delay.
502 / 503 / 504
Upstream failure, temporary service unavailability or request timeout.

Compare nearby prices

USD per million tokens. Compare price and context; these are not quality benchmarks.
ModelInputOutputContext
Qwen 3.8 FlashQwen · this model$0.309375$0.9693751,000,000
CodestralMistral$0.32$0.95128,000
Gemini 3.1 Flash LiteGoogle$0.175$1.051,048,576
Grok Build 0.1Grok$0.404415$0.80883256,000
GPT-4.1 MiniOpenAI$0.28$1.121,047,576

Frequently asked questions

How much does Qwen 3.8 Flash cost?

$0.309375 per million input tokens, $0.969375 per million output tokens and $0.033011 per million cached input tokens. Usage is charged to your Tokely balance.

Do I need a separate Qwen account?

Use your Tokely API key and balance. A separate provider key is not required.

How do I switch to this model?

Set model to qwen3.8-flash and use /v1/chat/completions. Keep your Tokely base URL and API key.

What is the context window?

1,000,000 tokens, including input and output. The Tokely request body and output limits listed above also apply.

More Qwen models & prices

Compare Qwen 3.8 Flash with other Qwen versions and with the official developer rates.

All Qwen models on Tokely · Cheap LLM API — Token Prices & Discounts · Compare AI API gateways · Estimate your token cost