> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.empiriolabs.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.empiriolabs.ai/_mcp/server.

# Qwen3.8 27B

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

![Qwen3.8 27B](https://media.empiriolabs.ai/model-logos/qwen.png)

[Alibaba Cloud](/providers/alibaba) · Text Generation

`POST /v1/chat/completions`

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

## At a glance

| Field               | Value                                                                                                                                             |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| Model id            | `qwen3-8-27b`                                                                                                                                     |
| Model release date  | 2026-08-14                                                                                                                                        |
| Input modalities    | Text, Image, Video                                                                                                                                |
| Output modalities   | Text                                                                                                                                              |
| Context window      | 256K                                                                                                                                              |
| Weight precision    | NVFP4 weights + FP8 KV                                                                                                                            |
| Max output tokens   | 32,768                                                                                                                                            |
| Features            | reasoning, vision, video, function\_calling, cache, multimodal, json\_mode, logprobs                                                              |
| Native inference    | Yes                                                                                                                                               |
| New                 | Yes                                                                                                                                               |
| Structured output   | JSON Schema                                                                                                                                       |
| Supported endpoints | `POST /v1/chat/completions`, `POST /v1/responses`, `POST /v1/messages`, `POST /v1/completions`, `POST /v1beta/models/qwen3-8-27b:generateContent` |
| Alternate model ids | `qwen3.8-27b`, `qwen/qwen3-8-27b`, `qwen/qwen3.8-27b`                                                                                             |

## Pricing

| Charge              | Spec                       | Rate                |
| ------------------- | -------------------------- | ------------------- |
| Input               | per 1M prompt tokens       | \$0.17 (was \$0.45) |
| Output              | per 1M generated tokens    | \$0.50 (was \$3.20) |
| Implicit cache read | per 1M cached input tokens | \$0.08              |
| Web Search (Linkup) | per call when invoked      | \$0.013             |

## Example request

```bash
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":"Hello"}]}'
```

## Parameters

| Parameter            | Type    | Required | Default   | Description                                                                                                                                                                                                                                                                         |
| -------------------- | ------- | -------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `temperature`        | number  | no       | `1.0`     | Sampling temperature. 0 is deterministic and 2 is maximum randomness. · Range: 0 – 2                                                                                                                                                                                                |
| `top_p`              | number  | no       | `0.95`    | Nucleus sampling probability mass. Lower values make outputs more focused. · Range: 0 – 1                                                                                                                                                                                           |
| `max_tokens`         | integer | no       | `4096`    | Maximum output tokens. · Range: 1 – 32768                                                                                                                                                                                                                                           |
| `stop`               | string  | no       | -         | Up to 4 strings where the model will stop generating further tokens.                                                                                                                                                                                                                |
| `enable_thinking`    | boolean | no       | true      | Enable reasoning before answering.                                                                                                                                                                                                                                                  |
| `reasoning_effort`   | enum    | no       | `"xhigh"` | Reasoning effort level. none disables thinking. low, medium, and xhigh select discrete thinking depths. There is no token budget control. · Allowed: `none`, `low`, `medium`, `xhigh`                                                                                               |
| `top_k`              | integer | no       | `20`      | Limit sampling to the top K candidate tokens when supported. · Range: 1 – 200                                                                                                                                                                                                       |
| `min_p`              | number  | no       | `0`       | Minimum probability threshold for token sampling. · Range: 0 – 1                                                                                                                                                                                                                    |
| `frequency_penalty`  | number  | no       | `0`       | Penalty based on how often a token has already appeared. · Range: -2 – 2                                                                                                                                                                                                            |
| `presence_penalty`   | number  | no       | `0`       | Penalty for tokens that already appeared in the generated text. · Range: -2 – 2                                                                                                                                                                                                     |
| `repetition_penalty` | number  | no       | `1`       | Higher values discourage repeated phrasing. · Range: 0.1 – 2                                                                                                                                                                                                                        |
| `seed`               | integer | no       | -         | Optional random seed for reproducible sampling. · Range: 0 – 2147483647                                                                                                                                                                                                             |
| `logprobs`           | boolean | no       | false     | Return token log probabilities when supported.                                                                                                                                                                                                                                      |
| `top_logprobs`       | integer | no       | -         | Return up to this many top token log probabilities. · Range: 0 – 20                                                                                                                                                                                                                 |
| `logit_bias`         | object  | no       | -         | Bias token IDs by adding positive or negative values before sampling.                                                                                                                                                                                                               |
| `tools`              | array   | no       | -         | OpenAI-compatible function tool definitions.                                                                                                                                                                                                                                        |
| `tool_choice`        | object  | no       | -         | OpenAI-compatible function tool selection.                                                                                                                                                                                                                                          |
| `stream`             | boolean | no       | false     | Stream response deltas using server-sent events.                                                                                                                                                                                                                                    |
| `response_format`    | enum    | no       | -         | Constrain the output to valid JSON. Use JSON mode for any JSON object, or supply a JSON Schema to force an exact response shape.                                                                                                                                                    |
| `web_search_linkup`  | boolean | no       | false     | Optional web search powered by Linkup. When enabled, recent web sources are retrieved using your latest user message as the query and provided to the model as additional context. Adds \$0.013 per call when invoked on top of the model's normal token cost. Disabled by default. |
| `disable_formatting` | boolean | no       | false     | When enabled, the gateway will not append the "Sources" footer to assistant responses that used Linkup web search. Useful when the model output is piped to another system that expects no decoration.                                                                              |

## Notes

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.

---

*Machine-readable schema:* `GET https://api.empiriolabs.ai/v1/models/qwen3-8-27b`.