Built from the official docs: openrouter.ai · Qwen3.6 35B A3B - API Pricing & Benchmarks · checked 27 November 2026
Through OpenRouter
Get an API key
Sign up at OpenRouter and create an API key in your dashboard. You will pass it as <OPENROUTER_API_KEY> in the steps below.
Call it with curl
Send a POST request to the OpenRouter responses endpoint using the model slug qwen/qwen3.6-35b-a3b. Replace <OPENROUTER_API_KEY> with your key.
curl https://openrouter.ai/api/v1/responses \ -H "Content-Type: application/json" \ -H "Authorization: Bearer <OPENROUTER_API_KEY>" \ -d '{ "model": "qwen/qwen3.6-35b-a3b", "input": "What is the meaning of life?" }'Or install the OpenRouter Python SDK
If you prefer Python, install the OpenRouter package.
pip install openrouterCall it from Python
Set the OPENROUTER_API_KEY environment variable to your key, then run this. The slug qwen/qwen3.6-35b-a3b selects the model.
from openrouter import OpenRouter import os with OpenRouter(api_key=os.getenv("OPENROUTER_API_KEY")) as client: response = client.responses.send( model="qwen/qwen3.6-35b-a3b", input="What is the meaning of life?", ) if response.status != "completed": message = response.error.message if response.error else f"Response ended as {response.status}" raise RuntimeError(message) message = next(item for item in response.output if item.type == "message") print(next(part.text for part in message.content if part.type == "output_text"))Or reuse existing OpenAI SDK code
OpenRouter is OpenAI-compatible, so you can point the OpenAI SDK at it by setting the base URL and your key. Replace <OPENROUTER_API_KEY> with your key.
from openai import OpenAI client = OpenAI( base_url="https://openrouter.ai/api/v1", api_key="<OPENROUTER_API_KEY>", ) response = client.responses.create( model="qwen/qwen3.6-35b-a3b", input="What is the meaning of life?" ) print(response.output_text)
Check it worked
The response JSON has "status": "completed" and contains a message item whose output_text holds the model's reply; printing it shows generated text.