Quick Start
Update just two lines in your existing OpenAI code.Base URL
Each model has its own endpoint URL. Replace<endpoint_id> with the endpoint ID from the table below.
Supported Models and Features
✅ supported · ❌ not supported ·
- not applicable or TBD
Response Format
Chat Completions responses use the same structure as the OpenAI API.Streaming
Set thestream option to true to receive the response in real time as SSE (Server-Sent Events). (Default: false)
- Each chunk delivers a text fragment in
choices[0].delta.content, and the stream ends with adata: [DONE]event. - Send
stream_options={"include_usage": true}to receive token usage (usage) in the final chunk.
Streaming is currently supported on Qwen3.6-35B-A3B, Qwen3.5-9B, Qwen3-32B, and Llama3.3-70B.
Tool Calling (Function Calling)
Lets the model call external functions or services. Supported on Qwen3.6-35B-A3B, Qwen3.5-9B, Qwen3-32B, and Llama3.3-70B. Tool calling is a three-step flow: define functions and send the request, the model suggests a function call, then execute the function and send back the result. The model does not execute functions itself — it only generates which function to call and with what arguments.1. Define your functions and send the request
2. The model suggests a function call
When the model decides a function call is needed, it returns atool_calls array with finish_reason: "tool_calls".
3. Execute the function and return the result
Append the result as arole: "tool" message and send the request again — the model generates the final answer based on the result.
tool_choice options
Even with
tool_choice: "none", the model may still emit function-call-shaped text in the response body if tools definitions remain in the request. When you don’t need function calls, the most reliable approach is to omit the tools parameter entirely.Parallel tool calls
The model can return multiple function calls in a single response via thetool_calls array. Set parallel_tool_calls to false (default true) to limit the model to one function call at a time.
Streaming tool calls
Withstream: true, tool call data arrives split across chunks. The first chunk of each tool call carries id and function.name, and subsequent chunks deliver function.arguments in sequence. Group tool calls by index, then concatenate function.arguments in arrival order. The stream ends with a chunk carrying finish_reason: "tool_calls".
Vision (Image Input)
Qwen3.6-35B-A3B and Qwen3.5-9B accept image input. Passmessages[].content as an array and include images with the image_url type. image_url.url accepts an externally reachable image URL or a base64-encoded data URI (data:image/jpeg;base64,...).
The number of images per request is limited per model — Qwen3.6-35B-A3B: up to 4, Qwen3.5-9B: up to 1. Video input is not supported.
Reasoning
Qwen3.6-35B-A3B and Qwen3.5-9B support reasoning (thinking). The reasoning trace is returned separately from the final answer (content) in the reasoning field.
- Reasoning text also consumes
max_tokens. Set it generously — if the value is too small, the answer may get cut off. - When streaming, reasoning fragments arrive first via
delta.reasoning, followed bydelta.content. - Qwen3-32B returns its reasoning inline as
<think>tags insidecontentinstead of thereasoningfield. It can likewise be disabled withenable_thinking: false.
Disabling reasoning
To get an answer directly without reasoning, turn it off viachat_template_kwargs.
JSON Mode (Structured Outputs)
Setresponse_format to always receive valid JSON.
Embedding
Converts text into vectors, useful for semantic search, recommendation systems, and RAG. You can also pass an array of strings asinput to embed multiple texts in a single request.
Supported Parameters
Air API supports the core OpenAI parameters based on the official vLLM spec.vLLM extension sampling parameters such as
top_k, min_p, and repetition_penalty are also available. With the OpenAI SDK, pass them via extra_body.Related Documentation
API Usage Guide
Learn the full flow for secret key authentication and code-based API integration.
Available Models
See specs and pricing for every model.
Troubleshooting
Find solutions to common issues and errors.
API Reference
Explore detailed API specifications, including endpoints and parameters.

