Qwen integration

Qwen API without a provider-specific client rewrite

Use the public model name shown in the live catalog. Streaming, tools, vision and thinking support are model-specific and must be checked before use.

Planned recharge methods: Alipay and USDT. Collection is not enabled yet.

Integration steps

  • Create a restricted server-side key.
  • Set the compatible base URL.
  • Select a Qwen model from the live catalog.
  • Run a basic request and verify usage.
  • Test tools or streaming only when the model advertises support.

What this page does not assume

It does not assume every Qwen release is enabled, or that every model supports the same feature set. The catalog below is filtered from the active public list.

qwen.pypython
from openai import OpenAI

client = OpenAI(
    api_key="qh_live_...",
    base_url="http://localhost:4000/v1",
)

response = client.chat.completions.create(
    model="qwen3.7-plus",
    messages=[{"role": "user", "content": "Explain this error log."}],
)

print(response.choices[0].message.content)

Live model catalog

ModelInput / 1M tokensOutput / 1M tokensContextStatus
qwen-vl-plusCNY 1CNY 2.5131KAvailable
qwen3.5-flashCNY 0.25CNY 2.41MAvailable
qwen3.6-flashCNY 1.45CNY 8.651MAvailable
qwen3.7-plusCNY 2.4CNY 9.61MAvailable
qwen3.7-maxCNY 14.4CNY 43.21MAvailable

Common questions

Can I use the OpenAI Python client with Qwen?

Yes, for the OpenAI-compatible chat completions path. Set the gateway base URL, your Qingheng API key and a public Qwen model name from the catalog.

Does every Qwen model support function calling?

No assumption is made. Check the tools capability in the live catalog and run a schema-validation test before production use.

How do I see current Qwen prices?

Use the Qwen pricing page or the model table below. Both read the current public catalog.

Related resources