thezakuloGet the newsletter
← All setup guides

Setup guide · 5 steps · about 10 minutes

How to start using Qwen: Qwen3.6 35B A3B

Qwen3.6 35B A3B is an open-weight multimodal mixture-of-experts model from Alibaba Cloud (35B total / 3B active parameters) that accepts text, image, and video input and returns text, with thinking mode, function calling, and structured output.

Built from the official docs: openrouter.ai · Qwen3.6 35B A3B - API Pricing & Benchmarks · checked 27 November 2026

Through OpenRouter

  1. 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.

  2. 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?"
    }'
  3. Or install the OpenRouter Python SDK

    If you prefer Python, install the OpenRouter package.

    pip install openrouter
  4. Call 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"))
  5. 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.

Try these first

Get every issue by email

One email a week with the written issue. Free, one-click unsubscribe

Subscribe