Qwen3.8 27B API

Multimodal reasoner with 256K context, image and video input, function tools, structured JSON, and thinking on by default.

Alibaba CloudText Generation256K contextReleased Aug 14, 2026Native InferenceNew

About Qwen3.8 27B

Multimodal reasoner with 256K context, image and video input, function tools, structured JSON, and thinking on by default.

Supports text, image, and video input, streaming, function tools, structured JSON output, seed control, and thinking mode on by default. Use reasoning_effort (xhigh, medium, low) or enable_thinking=false for direct answers. Automatic cache reads are billed at the cached-input rate when reported by the model service. Explicit cache controls are not supported. Open-weight context is 256K; hosted 1M context and official built-in tools are not included.

Also known as Alibaba Cloud Qwen3.8 27B

reasoningvisionvideofunction callingcachemultimodaljson modelogprobs

Qwen3.8 27B specs

Model ID
qwen3-8-27b
Provider
Alibaba Cloud
Category
Text Generation
Released
Aug 14, 2026
Context window
256K tokens
Max output
32,768 tokens
Input
TextImageVideo
Output
Text
Structured output
JSON Schema
Endpoints
POST/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1/completionsPOST/v1beta/models/qwen3-8-27b:generateContent
Alternate model IDs
qwen3.8-27bqwen/qwen3-8-27bqwen/qwen3.8-27b

Qwen3.8 27B API pricingSave up to 84%

Live pay-as-you-go rates from the EmpirioLabs catalog. You are billed only for what you use, with no monthly minimum.

Type
Spec
Rate
Input
per 1M prompt tokens
$0.45$0.17
Output
per 1M generated tokens
$3.20$0.50
Implicit cache read
per 1M cached input tokens
$0.08
Web Search (Linkup)
per call when invoked
$0.013
Compare on the full pricing page

How to call the Qwen3.8 27B API

Qwen3.8 27B serves the OpenAI-compatible Chat Completions API. Point any OpenAI SDK at https://api.empiriolabs.ai/v1 with your EmpirioLabs API key and use the model id qwen3-8-27b. Get an API key from the EmpirioLabs dashboard.

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3-8-27b",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.empiriolabs.ai/v1",
    api_key="YOUR_EMPIRIOLABS_API_KEY",
)

response = client.chat.completions.create(
    model="qwen3-8-27b",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Full Qwen3.8 27B API reference

Qwen3.8 27B API parameters

Request parameters supported by the Qwen3.8 27B API on EmpirioLabs. Defaults apply when a field is omitted.

ParameterTypeDefaultRange / valuesDescription
temperaturenumber10 to 2Sampling temperature. 0 is deterministic and 2 is maximum randomness.
top_pnumber0.950 to 1Nucleus sampling probability mass. Lower values make outputs more focused.
max_tokensinteger40961 to 32768Maximum output tokens.
stopstring--Up to 4 strings where the model will stop generating further tokens.
enable_thinkingbooleantrue-Enable reasoning before answering.
reasoning_effortenumxhighnone, low, medium, xhighReasoning effort level. none disables thinking. low, medium, and xhigh select discrete thinking depths. There is no token budget control.
top_kinteger201 to 200Limit sampling to the top K candidate tokens when supported.
min_pnumber00 to 1Minimum probability threshold for token sampling.
frequency_penaltynumber0-2 to 2Penalty based on how often a token has already appeared.
presence_penaltynumber0-2 to 2Penalty for tokens that already appeared in the generated text.
repetition_penaltynumber10.1 to 2Penalty used by SGLang to reduce repeated text.
seedinteger-0 to 2147483647Optional random seed for reproducible sampling.
logprobsbooleanfalse-Return token log probabilities when supported.
top_logprobsinteger-0 to 20Return up to this many top token log probabilities.
7 more parameters in the docs

Good to know

Supports text, image, and video input, streaming, function tools, structured JSON output, seed control, and thinking mode on by default. Use reasoning_effort (xhigh, medium, low) or enable_thinking=false for direct answers. Automatic cache reads are billed at the cached-input rate when reported by the model service. Explicit cache controls are not supported. Open-weight context is 256K; hosted 1M context and official built-in tools are not included.

Qwen3.8 27B API: common questions

How much does the Qwen3.8 27B API cost?

On EmpirioLabs, Qwen3.8 27B is billed pay as you go. The live rate card on this page always matches what the API charges.

What is the context window of Qwen3.8 27B?

Qwen3.8 27B supports a 256K-token context window with up to 32,768 output tokens per response.

Is the Qwen3.8 27B API OpenAI-compatible?

Yes. Qwen3.8 27B serves the OpenAI-compatible Chat Completions API, so existing OpenAI SDKs work by pointing base_url at https://api.empiriolabs.ai/v1 and setting the model id to qwen3-8-27b.

Can I try Qwen3.8 27B in the browser before integrating?

Yes. The EmpirioLabs playground runs Qwen3.8 27B in the browser with the same parameters the API exposes, so you can test prompts before writing code.

How do I get a Qwen3.8 27B API key?

Create an EmpirioLabs account, then generate a key under API Keys in the dashboard. Billing is pay-as-you-go credits, so you only pay for the requests you make.

Ready to use better endpoints?

Check out our pricing or reach out if you want your own model deployed on our stack.