Qwen4-35B-A3B on Vercel AI Gateway

Qwen4 · Alibaba

Serverless
Open Source

Last refreshed 2026-12-04. Next refresh: weekly.

Why use Qwen4-35B-A3B on Vercel AI Gateway?

Vercel AI Gateway offers Qwen4-35B-A3B with pay-as-you-go pricing at $0.06/1M input tokens. Vercel AI Gateway is a unified AI proxy providing a single OpenAI-compatible API endpoint to 275+ models from 25+ providers including Anthropic, OpenAI, Google, Meta, Mistral, DeepSeek, xAI, Alibaba, Amazon, ByteDance, Cohere, MiniMax, MoonshotAI, KwaiPilot, Black Forest Labs, Recraft, Voyage AI, NVIDIA, and more.

Compare Qwen4-35B-A3B across 3 providers to find the best fit for your use case
Input / 1M
$0.060
Output / 1M
$0.36
Cache
read $0.003
Batch
Not sourced

Setup recipe

Python + curl
Install
pip install openai
Auth
export AI_GATEWAY_API_KEY=...
Call
import os
from openai import OpenAI
client = OpenAI(
    api_key=os.environ["AI_GATEWAY_API_KEY"],
Model ID
alibaba/qwen4-35b-a3b

Request example

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AI_GATEWAY_API_KEY"],
    base_url="https://ai-gateway.vercel.sh/v1"
)
response = client.chat.completions.create(
    model="alibaba/qwen4-35b-a3b",
    messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)

Gotchas

  • Use provider model ID "alibaba/qwen4-35b-a3b", not the LLMReference slug "qwen4-35b-a3b".
  • creator/model-name e.g. kwaipilot/kat-coder-pro-v2
  • The examples expect AI_GATEWAY_API_KEY; rename it only if your application config maps the new variable.

Compare Qwen4-35B-A3B Across Providers

ProviderInput (per 1M)Output (per 1M)
OpenRouter$0.06$0.36
Vercel AI Gateway$0.06$0.36
Venice AI$0.04$0.30

Pricing

TypePrice (per 1M)
Input tokens$0.06
Output tokens$0.36

Capabilities

VisionMultimodalReasoningJSON / Tool use

About Qwen4-35B-A3B

Qwen4-35B-A3B is a multimodal mixture-of-experts model for text, image and video input. It combines linear and sparse attention with n-gram embeddings and supports coding, tool use and long-running agent workflows.

Get Started

Model Specs

Released2026-12-04
Parameters35B (3B active)
Context1M
ArchitectureMixture of Experts

Related Models on Vercel AI Gateway