
Qwen/Qwen3 235B 2507
Mixture-of-experts LLM with math and reasoning capabilities
Baseten offers Dedicated Deployments and Model APIs for Qwen3 235B A22B Instruct 2507 powered by the Baseten Inference Stack.
Qwen3 has shown strong performance on math and reasoning tasks, but running it in production requires a highly optimized inference stack to avoid excessive latency.
Deployments of Qwen3 are OpenAI-compatible.
Input
from openai import OpenAI
import os
model_url = "" # Copy in from API pane in Baseten model dashboard
client = OpenAI(
api_key=os.environ['BASETEN_API_KEY'],
base_url=model_url
)
# Chat completion
response_chat = client.chat.completions.create(
model="",
messages=[
{"role": "user", "content": "Write FizzBuzz."}
],
temperature=0.6,
max_tokens=100,
)
print(response_chat)Output
{
"id": "143",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"logprobs": null,
"message": {
"content": "[Model output here]",
"role": "assistant",
"audio": null,
"function_call": null,
"tool_calls": null
}
}
],
"created": 1741224586,
"model": "",
"object": "chat.completion",
"service_tier": null,
"system_fingerprint": null,
"usage": {
"completion_tokens": 145,
"prompt_tokens": 38,
"total_tokens": 183,
"completion_tokens_details": null,
"prompt_tokens_details": null
}
}