LLM API
qwen3.8-27b
General chat, coding agents and tool use. Our default model.
Try it in the console playground — you sign in first, and it uses your organization’s quota.
Quickstart
Set TOKENFLOW_API_KEY privately in your shell. This page never asks for your key or runs a request.
Chat Completions
POST /v1/chat/completions · application/json
curl --fail-with-body 'https://api.tokenflow.dev/v1/chat/completions' \
-H "Authorization: Bearer $TOKENFLOW_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "qwen3.8-27b",
"messages": [
{
"role": "user",
"content": "Say hello."
}
],
"max_tokens": 32
}'- Images must be inline data URLs or base64; remote image URLs are refused.
Responses
POST /v1/responses · application/json
curl --fail-with-body 'https://api.tokenflow.dev/v1/responses' \
-H "Authorization: Bearer $TOKENFLOW_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "qwen3.8-27b",
"input": "Say hello.",
"max_output_tokens": 32
}'- Images must be inline data URLs or base64; remote image URLs are refused.
Anthropic Messages
POST /v1/messages · application/json
curl --fail-with-body 'https://api.tokenflow.dev/v1/messages' \
-H "Authorization: Bearer $TOKENFLOW_API_KEY" \
-H 'anthropic-version: 2023-06-01' \
-H 'Content-Type: application/json' \
-d '{
"model": "qwen3.8-27b",
"messages": [
{
"role": "user",
"content": "Say hello."
}
],
"max_tokens": 32
}'- Images must be inline data URLs or base64; remote image URLs are refused.
Legacy Completions
POST /v1/completions · application/json
curl --fail-with-body 'https://api.tokenflow.dev/v1/completions' \
-H "Authorization: Bearer $TOKENFLOW_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "qwen3.8-27b",
"prompt": "Say hello.",
"max_tokens": 32
}'- Images must be inline data URLs or base64; remote image URLs are refused.
Parameters & limits
- Images
- Up to 16 inline images; no remote image URLs
- Documented context
- 128K tokens (prompt + output). A specification, not a live engine capacity check.
- Features
- Tool calls · Streaming · Prompt caching · JSON mode and structured output · Thinking off by default; turn it on with chat_template_kwargs.enable_thinking or reasoning_effort
Up to 16 images per request, inline only (data URL or base64).
Pricing & usage
Contact us for pricing
Quota usage counts uncached input and output tokens. An unpublished price does not mean free usage.
View the machine-readable contract
Published specification only. Inspect the discovery API for runtime observations; discovery does not reserve capacity.
{
"id": "qwen3.8-27b",
"kind": "llm",
"summary": "General chat, coding agents and tool use. Our default model.",
"tags": [
"chat",
"coding",
"聊天",
"文本"
],
"protocols": [
{
"id": "chat",
"method": "POST",
"path": "/v1/chat/completions",
"content_type": "application/json",
"modes": [
"json",
"sse"
],
"schema_scope": "supported_subset",
"input_schema": {
"type": "object",
"properties": {
"model": {
"const": "qwen3.8-27b"
},
"messages": {
"type": "array",
"minItems": 1,
"items": {
"type": "object"
}
},
"stream": {
"type": "boolean"
},
"max_tokens": {
"type": "integer",
"minimum": 1
}
},
"required": [
"model",
"messages"
],
"additionalProperties": true
},
"constraints": [
"Follow the selected protocol. This schema documents a subset, not all engine parameters.",
"Images must be inline data URLs or base64; remote image URLs are refused."
],
"example": {
"model": "qwen3.8-27b",
"messages": [
{
"role": "user",
"content": "Say hello."
}
],
"max_tokens": 32
}
},
{
"id": "completions",
"method": "POST",
"path": "/v1/completions",
"content_type": "application/json",
"modes": [
"json",
"sse"
],
"schema_scope": "supported_subset",
"input_schema": {
"type": "object",
"properties": {
"model": {
"const": "qwen3.8-27b"
},
"prompt": {
"type": [
"string",
"array"
]
},
"stream": {
"type": "boolean"
},
"max_tokens": {
"type": "integer",
"minimum": 1
}
},
"required": [
"model",
"prompt"
],
"additionalProperties": true
},
"constraints": [
"Follow the selected protocol. This schema documents a subset, not all engine parameters.",
"Images must be inline data URLs or base64; remote image URLs are refused."
],
"example": {
"model": "qwen3.8-27b",
"prompt": "Say hello.",
"max_tokens": 32
}
},
{
"id": "responses",
"method": "POST",
"path": "/v1/responses",
"content_type": "application/json",
"modes": [
"json",
"sse"
],
"schema_scope": "supported_subset",
"input_schema": {
"type": "object",
"properties": {
"model": {
"const": "qwen3.8-27b"
},
"input": {
"type": [
"string",
"array"
]
},
"stream": {
"type": "boolean"
},
"max_tokens": {
"type": "integer",
"minimum": 1
}
},
"required": [
"model",
"input"
],
"additionalProperties": true
},
"constraints": [
"Follow the selected protocol. This schema documents a subset, not all engine parameters.",
"Images must be inline data URLs or base64; remote image URLs are refused."
],
"example": {
"model": "qwen3.8-27b",
"input": "Say hello.",
"max_output_tokens": 32
}
},
{
"id": "messages",
"method": "POST",
"path": "/v1/messages",
"content_type": "application/json",
"modes": [
"json",
"sse"
],
"schema_scope": "supported_subset",
"input_schema": {
"type": "object",
"properties": {
"model": {
"const": "qwen3.8-27b"
},
"messages": {
"type": "array",
"minItems": 1,
"items": {
"type": "object"
}
},
"stream": {
"type": "boolean"
},
"max_tokens": {
"type": "integer",
"minimum": 1
}
},
"required": [
"model",
"messages",
"max_tokens"
],
"additionalProperties": true
},
"constraints": [
"Follow the selected protocol. This schema documents a subset, not all engine parameters.",
"Images must be inline data URLs or base64; remote image URLs are refused."
],
"example": {
"model": "qwen3.8-27b",
"messages": [
{
"role": "user",
"content": "Say hello."
}
],
"max_tokens": 32
}
}
],
"guaranteed": {
"max_images": 16,
"remote_images": false
},
"documented": {
"context_tokens": 131072,
"context_runtime_verified": false,
"features": [
"Tool calls",
"Streaming",
"Prompt caching",
"JSON mode and structured output",
"Thinking off by default; turn it on with chat_template_kwargs.enable_thinking or reasoning_effort"
],
"limitations": [
"Up to 16 images per request, inline only (data URL or base64)."
]
},
"billing": {
"meter": "tokens",
"quota_basis": "uncached_input_plus_output",
"pricing": {
"status": "quote_required"
}
},
"external_limits": null,
"schema_version": 1,
"publication": "public",
"next": [
{
"method": "POST",
"path": "/v1/chat/completions",
"content_type": "application/json",
"body": {
"model": "qwen3.8-27b",
"messages": [
{
"role": "user",
"content": "Say hello."
}
],
"max_tokens": 32
}
},
{
"method": "POST",
"path": "/v1/completions",
"content_type": "application/json",
"body": {
"model": "qwen3.8-27b",
"prompt": "Say hello.",
"max_tokens": 32
}
},
{
"method": "POST",
"path": "/v1/responses",
"content_type": "application/json",
"body": {
"model": "qwen3.8-27b",
"input": "Say hello.",
"max_output_tokens": 32
}
},
{
"method": "POST",
"path": "/v1/messages",
"content_type": "application/json",
"body": {
"model": "qwen3.8-27b",
"messages": [
{
"role": "user",
"content": "Say hello."
}
],
"max_tokens": 32
}
}
]
}For developers and agents
Choose your way in
Human guides and machine-readable contracts describe the same APIs.
- Speech quickstartWAV uploads, voices and streaming.
- Agent guideCLI discovery, credentials and error handling.
- Discovery OpenAPIBuild a client for list and inspect.
- Static JSON cataloguePublished contracts, not live status or quotas.
Need runtime observations? Use the public discovery API. Tenant access and quotas require your API key.
Published contract updated 2 November 2026. Terms · Data policy · All capabilities