20% off all GPT ๐ŸŽ‰ 30% off DeepSeekLearn more

Qwen Flash

Chat
qwen/qwen-flash

Qwen Flash is the fastest and lowest-cost model in Alibaba's Qwen family, served through Dashscope and built for latency-sensitive tasks. It delivers ultra-fast inference while supporting tool use (function calling), prompt caching, and web search. Context window: 1M tokens, output: 32K. The 1M-token context lets it scan long documents in a single pass, and prompt caching keeps repeated instructions cheap in high-volume pipelines. Available via OpenAI and Anthropic protocols.

Context Window
1M
Max Output Tokens
32K
Released
2025-07-28
Capabilities
Function CallingPrompt CachingWeb Search
Available Providers
AliyunAlibaba Cloud
Supported Protocols
openaianthropic

Providers

Alibaba Cloudprovider.type: "alicloud"
Input Tokens
$0.022/M
Output Tokens
$0.22/M
Cache Read
$0.0043/M
Cache Write
$0.027/M
Web Search
$0.01/R
Protocols
openai/v1/chat/completions/v1/responses
anthropic
Aliyunprovider.type: "aliyun"
Input Tokens
$0.022/M
Output Tokens
$0.22/M
Cache Read
$0.0043/M
Cache Write
$0.027/M
Web Search
$0.01/R
Protocols
openai/v1/chat/completions/v1/responses
anthropic

Code Examples

from openai import OpenAI
client = OpenAI(
base_url="https://api.ofox.run/v1",
api_key="YOUR_OFOX_API_KEY",
)
response = client.chat.completions.create(
model="qwen/qwen-flash",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)

Frequently Asked Questions

Qwen Flash on Ofox.ai costs $0.022/M per million input tokens and $0.22/M per million output tokens. Pay-as-you-go, no monthly fees.