Skip to main content
QwenCloud serves the Qwen family of models, plus open models from DeepSeek, Moonshot AI, and Z.ai. QwenCloud supports Chat Completions, Responses, and Anthropic Messages requests.
QwenCloud is a built-in provider you can pay for with credits, so a provider key is optional. Add your own QwenCloud key to bill usage to your QwenCloud account instead of your ngrok.ai credits.

Setup

1

Create an access key and add credits

Follow the quickstart to create an access key and purchase credits in app.ngrok.ai.
2

Store your QwenCloud API key (optional)

Skip this step to pay with credits. To bring your own key, create an API key in your QwenCloud account. Then add a provider key and create an access key configuration with a qwencloud routing rule that uses it.
3

Send requests

Send requests with your access key:
For a model that other providers also serve, such as moonshotai/kimi-k3, add the qwencloud: prefix to keep the request on QwenCloud.

Thinking and tool calls

QwenCloud’s Chat Completions API differs from OpenAI’s in two ways that affect requests through the gateway:
  • Thinking: QwenCloud turns thinking on and off with its own enable_thinking field, and sets a token budget with thinking_budget. The gateway forwards both. It removes reasoning_effort and lists it in the Ngrok-AIG-Removed-Params response header. Qwen3.8 Max thinks by default. Some models, such as z-ai/glm-5.3 and qwen/qwen3.8-2.4t-a95b, always think, and QwenCloud rejects requests that set enable_thinking to false. The gateway also removes both fields for the Qwen3.5 Omni models, because QwenCloud refuses thinking on their audio requests.
  • Tool choice: QwenCloud doesn’t support tool_choice: "required". While thinking is on, tool_choice accepts only auto or none, so turn thinking off to force a specific tool. The gateway forwards tool_choice as sent, so QwenCloud returns the error.
In the OpenAI Python SDK, send these fields in extra_body:
See QwenCloud’s thinking and function calling guides for details.

Available models

See the model catalog. The Qwen3.5 Omni models can also return audio.

Next steps