How do I use the Wiozen API with Qwen Code?
Connect Qwen Code to Wiozen with three environment variables.
In short: Set OPENAI_BASE_URL to https://api.wiozen.com/v1, OPENAI_API_KEY to your Wiozen key, and OPENAI_MODEL to deepseek-v4.1-flash, then run the qwen command.
Requirements
- A Wiozen API key (
sk-gw-…). Sign-up is free; new accounts get trial credit. - An installed Qwen Code (terminal agent).
Steps
- In your terminal, set the three variables below.
- Run the
qwencommand.
terminal
export OPENAI_BASE_URL=https://api.wiozen.com/v1 export OPENAI_API_KEY=sk-gw-YOUR_KEY export OPENAI_MODEL=deepseek-v4.1-flash
Which model name should I enter?
Only the names on the models page are accepted. Prices per 1 million tokens are listed there too. Any other model name returns 400.
Related guides
- How do you connect an OpenAI-compatible API to a tool you already use?
- Which model should you use in Cline, Cursor, OpenCode and Aider?
- How do you do function calling (tool use) with an AI API?
- How do I add web search to my AI app, and what does a search cost?
- Which AI model should I choose: deciding by price, context and quality
- An AI API returns "Unknown model": where do I find the right model name?
- My AI API returns "401 Invalid API key": why isn't my key accepted?
Other guides: Cline · Roo Code · Kilo Code · Cursor · Continue · Claude Code · Hermes Agent · OpenCode · Aider · Open WebUI · LibreChat · AI Engine