- Tool Calling
SupportedTool calling · Supported · Default configuration reference; not live verification
- Reasoning
SupportedReasoning · Supported · Default configuration reference; not live verification
- Vision
SupportedVision · Supported · Default configuration reference; not live verification
- Streaming
SupportedStreaming · Supported · Default configuration reference; not live verification
- JSON mode
SupportedJSON mode · Supported · Default configuration reference; not live verification
USD / 1M tokens
- Input
- $0.11
- Cache Read
- $0.016
- Cache Write
- —
- Output
- $0.38
- Context
- 1M
- Max Output
- 128K
- Precision
- Numeric precision undisclosed
- Price checked
Catalog updated: 2026-10-29.
Overview
Qwen3.8-Flash is served through the IteraCompute OpenAI-compatible API. See the tested Gateway controls below; the official API and this route do not accept every parameter identically.
API protocols and integration
- Base URL · OpenAI SDK
https://api.iteracompute.com/v1- Authentication
Authorization: Bearer ITERACOMPUTE_API_KEY
Choose request fields, response parsing and stream completion by endpoint. This table describes wire formats; see this model's capabilities and verification scope.
| Customer endpoint | Model status | Input / output budget | Text result | SSE completion |
|---|---|---|---|---|
OpenAI Chat CompletionsPOST /v1/chat/completions | Declared for this model | messagesmax_tokens | choices[0].message.content | [DONE] |
OpenAI ResponsesPOST /v1/responses | Declared for this model | inputmax_output_tokens | output[] (SDK: output_text) | response.completed |
Anthropic MessagesPOST /v1/messages | Declared for this model | messages; system (top-level)max_tokens (required) | content[] | message_stop |
For the Messages SDK use https://api.iteracompute.com as base URL; max_tokens is required. Do not reuse another protocol's fields.
LLMs.txt · Copy for an AI coding assistant
Includes this model's ID, wire formats and parameter constraints. Check this page's verification scope and current prices before use.
# IteraCompute · qwen/qwen3.8-flash
Model ID: qwen/qwen3.8-flash
Base URL (OpenAI SDK): https://api.iteracompute.com/v1
Authentication: Authorization: Bearer ITERACOMPUTE_API_KEY
Content-Type: application/json
Use only the customer endpoints below. Request and response formats differ by protocol. An endpoint declaration does not certify every capability.
## Chat Completions
POST https://api.iteracompute.com/v1/chat/completions
Input: messages
Output budget: max_tokens
Read text: choices[0].message.content
SSE completion: [DONE]
Docs: https://iteracompute.com/docs.html#api-reference
## Responses
POST https://api.iteracompute.com/v1/responses
Input: input
Output budget: max_output_tokens
Read text: output[] (SDK: output_text)
SSE completion: response.completed
Docs: https://iteracompute.com/docs.html#responses-api
## Messages
POST https://api.iteracompute.com/v1/messages
Input: messages; system (top-level)
Output budget: max_tokens (required)
Read text: content[]
SSE completion: message_stop
Docs: https://iteracompute.com/docs.html#anthropic-messages
## Parameters
Configuration and parameter acceptance do not establish semantic capability. Do not invent undisclosed defaults.
Current parameter configuration is unconfirmed. Check the model page and current catalog before calling.
## References
Model catalog: https://iteracompute.com/models/
Current prices and billing: https://iteracompute.com/pricing/
Documentation index: https://iteracompute.com/llms.txt
Unknown prices are not zero. Account and subscription limits also apply.
Never include a real API key in an LLM prompt or client-side code.
Text models expose Chat Completions, Responses and Messages. Use each protocol’s native fields and this model’s verified capabilities and limits.
Use the parameters and verification evidence published for this exact model. A supplier documentation review does not certify every feature on the gateway.
API parameters
These parameters and ranges come from the model’s existing default configuration, not live verification of the current route. Published configuration takes precedence.
- Tool calling
- Supported
- Reasoning
- Supported
- Vision
- Supported
- Streaming
- Supported
- JSON mode
- Supported
Parameters and values
Click a parameter to copy its name; scroll the table horizontally to see all columns. Usage notes identify protocol differences; identical names do not guarantee cross-endpoint support.
| Parameter | Type | Acceptance | Range | Usage / protocol |
|---|---|---|---|---|
| integer | Reference: supported | [1, 131072] | Output token budget; includes reasoning where applicable. Chat Completions / Messages. | |
| integer | Reference: supported | [1, 131072] | Alternative Chat output budget; use only when accepted by this model. | |
| integer | Reference: supported | [1, 131072] | Responses output budget. Chat acceptance must be checked separately. | |
| number | Reference: supported | [0, 2] | Sampling randomness. An accepted but ignored value does not control generation. | |
| number | Reference: supported | (0, 1] | Nucleus sampling probability threshold. | |
| number | Reference: supported | [-2, 2] | Penalize tokens already present in the generated text. | |
| number | Reference: supported | [-2, 2] | Penalize repeated tokens according to frequency. | |
| integer | Reference: supported | [1, 1] | Number of completions; many routes accept only 1. | |
| boolean | Reference: supported | — | Enable SSE streaming; completion markers depend on the protocol. | |
| array | Reference: supported | — | Tool definitions; the application executes tool calls and returns results. | |
| any | Reference: supported | — | Choose whether and which tool to call; allowed shapes vary by protocol. | |
| object | Reference: supported | — | Chat output format; JSON mode and schema enforcement require separate verification. | |
| any | Reference: supported | — | Reasoning control; object or boolean depends on the model and protocol. |
Reference request (applicability unverified)
POST /v1/chat/completions
{
"model": "qwen/qwen3.8-flash",
"messages": [
{
"role": "user",
"content": "Reply OK"
}
],
"max_tokens": 256
}Parameter revision:a3e507a54493
Technical reference (current configuration takes precedence)
API parameters
Click a parameter to copy its name.
| Parameters | Usage |
|---|---|
text + image → text | |
| 128K | |
| Start with the request example. Adjust temperature or top_p one at a time; omit top_k. | |
| To turn reasoning off, send extra_body={"enable_thinking":false} in the raw HTTP body. Follow the nested extra_body structure in the Python example. | |
| Define functions in tools and use tool_choice=auto. Execute tool_calls in your application, then return role=tool with the matching tool_call_id. | |
| Use response_format={"type":"json_object"} and request JSON in the prompt. Validate the returned JSON and required fields in your application. | |
stream=true, stream_options={"include_usage":true} |
Input and requested output share the context budget. Reasoning tokens count toward output usage.
{
"model": "qwen/qwen3.8-flash",
"messages": [
{
"role": "user",
"content": "Hello!"
}
],
"max_tokens": 512,
"extra_body": {
"enable_thinking": false
},
"stream": true,
"stream_options": {
"include_usage": true
}
}from openai import OpenAI
client = OpenAI(
api_key="ITERACOMPUTE_API_KEY",
base_url="https://api.iteracompute.com/v1",
)
stream = client.chat.completions.create(
model='qwen/qwen3.8-flash',
messages=[{'role': 'user', 'content': 'Hello!'}],
max_tokens=512,
stream=True,
stream_options={'include_usage': True},
extra_body={'extra_body': {'enable_thinking': False}},
)
for chunk in stream:
print(chunk.model_dump_json(exclude_none=True))
SDK extra_body merges its entries into the HTTP body. When the raw request itself contains an extra_body object, preserve that object as nested extra_body in the SDK example.
Response fields and tool results
- Final text; concatenate streamed fragments.
- Optional reasoning text. Preserve it in assistant history when required; its absence does not prove thinking was disabled.
- Parse arguments as JSON, execute the function, and return role=tool with the original call ID.
- Check final usage and the stream terminal. length means truncation; HTTP 200 alone is not successful completion.
- Read the error code and message. For rate limits, honor Retry-After and avoid parallel retries.
Parameter reference
Parameter usage
- To turn reasoning off, send extra_body={"enable_thinking":false} in the raw HTTP body. Follow the nested extra_body structure in the Python example.
Interface reference checked: 2026-10-23
Checked parameter constraints
| Parameters | Usage |
|---|---|
| Chat uses max_tokens or max_completion_tokens; Responses uses max_output_tokens. Use positive integers within Gateway limits. | |
| temperature: 0–2; top_p: greater than 0 and at most 1. Start with the model defaults. |
2026-10-26
API
Current parameter configuration is unconfirmed; the historical example below has not been verified against the current configuration.
Historical example (applicability unverified)
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.iteracompute.com/v1",
api_key=os.environ["ITERACOMPUTE_API_KEY"],
)
response = client.chat.completions.create(
model='qwen/qwen3.8-flash',
messages=[{'role': 'user', 'content': 'Reply OK'}],
max_tokens=256,
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.iteracompute.com/v1",
apiKey: process.env.ITERACOMPUTE_API_KEY,
});
const response = await client.chat.completions.create({
"model": "qwen/qwen3.8-flash",
"messages": [
{
"role": "user",
"content": "Reply OK"
}
],
"max_tokens": 256
});
console.log(response.choices[0].message.content);curl https://api.iteracompute.com/v1/chat/completions \
-H "Authorization: Bearer ITERACOMPUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3.8-flash",
"messages": [
{
"role": "user",
"content": "Reply OK"
}
],
"max_tokens": 256
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.iteracompute.com/v1",
api_key=os.environ["ITERACOMPUTE_API_KEY"],
)
response = client.responses.create(
model='qwen/qwen3.8-flash',
input='Reply OK',
max_output_tokens=256,
)
print(response.output_text)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.iteracompute.com/v1",
apiKey: process.env.ITERACOMPUTE_API_KEY,
});
const response = await client.responses.create({
"model": "qwen/qwen3.8-flash",
"input": "Reply OK",
"max_output_tokens": 256
});
console.log(response.output_text);curl https://api.iteracompute.com/v1/responses \
-H "Authorization: Bearer ITERACOMPUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3.8-flash",
"input": "Reply OK",
"max_output_tokens": 256
}'import os
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.iteracompute.com",
api_key=os.environ["ITERACOMPUTE_API_KEY"],
)
response = client.messages.create(
model='qwen/qwen3.8-flash',
max_tokens=256,
messages=[{'role': 'user', 'content': 'Reply OK'}],
)
print("".join(block.text for block in response.content if block.type == "text"))import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.iteracompute.com",
apiKey: process.env.ITERACOMPUTE_API_KEY,
});
const response = await client.messages.create({
"model": "qwen/qwen3.8-flash",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Reply OK"
}
]
});
console.log(response.content.filter(block => block.type === "text").map(block => block.text).join(""));curl https://api.iteracompute.com/v1/messages \
-H "x-api-key: ITERACOMPUTE_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen/qwen3.8-flash",
"max_tokens": 256,
"messages": [
{
"role": "user",
"content": "Reply OK"
}
]
}'Pricing
Prices in USD per 1M tokens, checked 2026-11-13: $0.11 input, $0.016 cached input, $0.38 output.
Alibaba Cloud Model Studio lists qwen3.8-flash in Singapore / International at $0.15 input and $0.47 output per 1M tokens, checked 2026-10-29, for up to 1M input tokens per request. These are standard real-time rates, excluding regional free quotas and batch discounts. Other deployment regions have different prices.
The official cache guide directs qwen3.8-flash cache-hit pricing to the provider Console. That cache-read price is unconfirmed here; the separate qwen3.8-omni-flash rate is not a substitute.
Alibaba Cloud pricing · Context Cache
- Version / Model ID
qwen/qwen3.8-flashBackend revision: not disclosed- Context
- 1M
- Precision
- Numeric precision undisclosed
- Price checked
- Verification scope and sources
View verification scope and sources
Use the parameters and verification evidence published for this exact model. A supplier documentation review does not certify every feature on the gateway.
Price source: Public Models API · Price and precision evidence are reviewed separately.
Cache-read rates require actual cache hits. A missing rate (—) is unknown, not zero. See usage limits for account and Gateway context restrictions.
Cost calculator
USD · EstimateAdvanced token usage
Input includes cache reads and writes; these portions must not overlap. Output already includes reasoning; enter reasoning as a subset, never add it twice. Count agent steps and retries as requests.
Estimated monthly cost
—USDQwen3.8-Flash
Cache hits and capacity are not guaranteed.
Cost breakdown
- Uncached input
- —
- Cache read
- —
- Cache writes (5m + 1h)
- —
- Output (including reasoning)
- —
Usage limits
- Use the context and output limits shown above when configuring clients. Account limits also apply.
- Start with one representative task. Check correctness, actual usage and response time before increasing traffic.
Tasks and selection tradeoffs
Good fit for high-volume text extraction, classification, summarization and small code edits where cost per call matters. Route multi-step planning or long agent tasks to GLM-5.3 or Qwen3.8-Max with the same API key and base URL.
Choose your tool
FAQ
How do I use Qwen3.8-Flash with the OpenAI SDK?
Set base_url to https://api.iteracompute.com/v1 and model to qwen/qwen3.8-flash. Authenticate with your IteraCompute API key.
What does Qwen3.8-Flash cost?
See the pricing section for current input, cached-input and output rates in USD per 1M tokens. Check the refresh time before use.
What context length is available?
See the summary above for the context and maximum output available through this API. Input and requested output share the context budget.
Ready for your first request?
Create your key, choose a tool and get a non-empty first reply.