- Cloudflare-hosted
- Function calling
- Reasoning
- Vision
Qwen 3.8 27B is a 27-billion-parameter instruction-tuned language model from Alibaba's Qwen family, designed for vision, efficient general-purpose text generation and agentic workloads.
| Model Info | |
|---|---|
| Context Window ↗ | 262,144 tokens |
| Function calling ↗ | Yes |
| Reasoning | Yes |
| Vision | Yes |
| Unit Pricing | $0.45 per M input tokens, $3.20 per M output tokens |
Synchronous — Send a request and receive a complete response
prompt
stringrequiredminLength: 1The input text prompt for the model to generate a response.model
stringID of the model to use (e.g. '@cf/zai-org/glm-4.7-flash, etc').▶audio{}
objectParameters for audio output. Required when modalities includes 'audio'.frequency_penalty
number | nullPenalizes new tokens based on their existing frequency in the text so far.logit_bias
object | nullModify the likelihood of specified tokens appearing in the completion. Maps token IDs to bias values from -100 to 100.logprobs
boolean | nullWhether to return log probabilities of the output tokens.top_logprobs
integer | nullHow many top log probabilities to return at each token position (0-20). Requires logprobs=true.max_tokens
integer | nullDeprecated in favor of max_completion_tokens. The maximum number of tokens to generate.max_completion_tokens
integer | nullAn upper bound for the number of tokens that can be generated for a completion.metadata
object | nullSet of 16 key-value pairs that can be attached to the object.modalities
array | nullOutput types requested from the model (e.g. ['text'] or ['text', 'audio']).n
integer | nullHow many chat completion choices to generate for each input message.parallel_tool_calls
booleandefault: trueWhether to enable parallel function calling during tool use.▶prediction{}
objectpresence_penalty
number | nullPenalizes new tokens based on whether they appear in the text so far.reasoning_effort
string | nullConstrains effort on reasoning for reasoning models (o1, o3-mini, etc.).▶chat_template_kwargs{}
object▶response_format
one ofSpecifies the format the model must output.seed
integer | nullIf specified, the system will make a best effort to sample deterministically.service_tier
string | nullSpecifies the processing type used for serving the request.▶stop
one ofstore
boolean | nullWhether to store the output for model distillation / evals.stream
boolean | nullIf true, partial message deltas will be sent as server-sent events.▶stream_options{}
objecttemperature
number | nullSampling temperature between 0 and 2.▶tool_choice
one ofControls which (if any) tool is called by the model. 'none' = no tools, 'auto' = model decides, 'required' = must call a tool.▶tools[]
arrayA list of tools the model may call.top_p
number | nullNucleus sampling: considers the results of the tokens with top_p probability mass.user
stringA unique identifier representing your end-user, for abuse monitoring.▶web_search_options{}
objectOptions for the web search tool (when using built-in web search).▶function_call
one of▶functions[]
arrayminItems: 1maxItems: 128id
stringA unique identifier for the chat completion.object
stringcreated
integerUnix timestamp (seconds) of when the completion was created.model
stringThe model used for the chat completion.▶choices[]
arrayminItems: 1▶usage{}
objectsystem_fingerprint
string | nullservice_tier
string | nullStreaming — Send a request with `stream: true` and receive server-sent events
prompt
stringrequiredminLength: 1The input text prompt for the model to generate a response.model
stringID of the model to use (e.g. '@cf/zai-org/glm-4.7-flash, etc').▶audio{}
objectParameters for audio output. Required when modalities includes 'audio'.frequency_penalty
number | nullPenalizes new tokens based on their existing frequency in the text so far.logit_bias
object | nullModify the likelihood of specified tokens appearing in the completion. Maps token IDs to bias values from -100 to 100.logprobs
boolean | nullWhether to return log probabilities of the output tokens.top_logprobs
integer | nullHow many top log probabilities to return at each token position (0-20). Requires logprobs=true.max_tokens
integer | nullDeprecated in favor of max_completion_tokens. The maximum number of tokens to generate.max_completion_tokens
integer | nullAn upper bound for the number of tokens that can be generated for a completion.metadata
object | nullSet of 16 key-value pairs that can be attached to the object.modalities
array | nullOutput types requested from the model (e.g. ['text'] or ['text', 'audio']).n
integer | nullHow many chat completion choices to generate for each input message.parallel_tool_calls
booleandefault: trueWhether to enable parallel function calling during tool use.▶prediction{}
objectpresence_penalty
number | nullPenalizes new tokens based on whether they appear in the text so far.reasoning_effort
string | nullConstrains effort on reasoning for reasoning models (o1, o3-mini, etc.).▶chat_template_kwargs{}
object▶response_format
one ofSpecifies the format the model must output.seed
integer | nullIf specified, the system will make a best effort to sample deterministically.service_tier
string | nullSpecifies the processing type used for serving the request.▶stop
one ofstore
boolean | nullWhether to store the output for model distillation / evals.stream
boolean | nullIf true, partial message deltas will be sent as server-sent events.▶stream_options{}
objecttemperature
number | nullSampling temperature between 0 and 2.▶tool_choice
one ofControls which (if any) tool is called by the model. 'none' = no tools, 'auto' = model decides, 'required' = must call a tool.▶tools[]
arrayA list of tools the model may call.top_p
number | nullNucleus sampling: considers the results of the tokens with top_p probability mass.user
stringA unique identifier representing your end-user, for abuse monitoring.▶web_search_options{}
objectOptions for the web search tool (when using built-in web search).▶function_call
one of▶functions[]
arrayminItems: 1maxItems: 128type
stringcontentType
text/event-streamformat
binaryBatch — Send multiple requests in a single API call
▶requests[]
arrayid
stringA unique identifier for the chat completion.object
stringcreated
integerUnix timestamp (seconds) of when the completion was created.model
stringThe model used for the chat completion.▶choices[]
arrayminItems: 1▶usage{}
objectsystem_fingerprint
string | nullservice_tier
string | null