EN ▾
Start now
  1. Qwenapidocumentation
  2. Qwen API Documentation: A Quick Map and Alternatives

Qwen API Documentation: A Quick Map and Alternatives

Qwen API documentation is spread across a vendor console, model pages and open-weight repositories, so the first job is knowing which part answers your question. This map lists what to read, the usual traps, and a drop-in OpenAI-style option if you would rather not learn a new SDK.

Last updated

A folded map with glowing signposts at each branch, representing a navigation map of API documentation

Which documentation do you actually need?

People who land on this topic are usually after one of three things, and each lives in a different place.

  • The hosted vendor API. The cloud platform that sells access to the models publishes API docs, a console for keys and usage, and a model catalog. This is where you find official endpoints, regions and billing.
  • The open weights. The models are also published as downloadable weights with model cards that describe how to prompt them, chat templates and recommended sampling settings. This is the source for running them yourself.
  • A third-party host. Independent services run open-weight models behind an OpenAI-style endpoint. Their docs are short, because the protocol is borrowed from OpenAI.

Decide which of the three you are in before you read anything. Mixing them is the main reason people end up with a key that does not work against an endpoint it was not issued for.

The six sections to read, in order

1. Authentication and keys

Find out how a key is created, whether keys are tied to a region or project, and how the key is sent. Most APIs of this type use Authorization: Bearer KEY. Check where to rotate or revoke a key too, because you will need that page on the day a key leaks.

2. Endpoints and compatibility mode

Look for a section that says the API is compatible with the OpenAI format. If it exists, you can use the standard OpenAI SDK with a changed base URL. If the vendor has its own native format, expect different request fields and a different SDK.

3. Model list

Note the exact model strings. They are case-sensitive and often versioned. A typo returns a "model not found" error that looks like an auth problem at first glance.

4. Limits

Requests per minute, tokens per minute, concurrency, maximum context and maximum output are separate numbers. Write all of them down. See our guide to endpoint limits and headers for how we report ours.

5. Pricing

Look for input and output rates per million tokens, any cached-input rate, and what happens to free credit. We do not quote other vendors' prices here because they change; check their current pricing page.

6. Errors

Skim the status codes before you need them. 401 is auth, 404 is path or model, 429 is a limit, 5xx is the server. Knowing which one you are seeing saves an hour of guessing.

Gotchas that cost people time

  • Regional endpoints with separate keys. A key from one region often fails on another region's URL. Match the key to the endpoint.
  • Model-specific parameters. Some models have a thinking or reasoning mode that you switch on or off with a parameter or a prompt flag. If output looks padded with internal reasoning, read the model card for the switch.
  • Output limits lower than context. A model may accept a very long prompt yet cap the reply at a small number of tokens. Read both numbers.
  • Chat template mismatch. If you run open weights yourself, the wrong chat template quietly degrades answers. Hosted endpoints handle this for you.
  • Content policy. Vendor-hosted models usually refuse some lawful requests, such as dark fiction or blunt medical questions. That is a product decision of the vendor, and it is documented in their usage policy, not in the API reference.

An OpenAI-style alternative that needs no new SDK

If your code already uses the OpenAI Python or Node SDK, or a tool that accepts a custom base URL, you do not need a vendor SDK to try another model. This site is a hosted, OpenAI-compatible text API. It runs one open-weight model, tuned to answer without content refusals for lawful adult use. It is run by an independent provider and is not the official Qwen API, and it is not a router across vendors.

Switching means three changes: the base URL, the key and the model ID.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.qwenapidocumentation.com/v1",
    api_key="YOUR_KEY",
)

reply = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Explain rate limits in two sentences."}],
)
print(reply.choices[0].message.content)

The same thing in curl:

curl https://api.qwenapidocumentation.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"uncensored","messages":[{"role":"user","content":"Hello"}]}'

Supported: streaming over SSE, tool calling, JSON mode, and the usual sampling parameters (temperature, top_p, stop, seed and the penalties). Also available are POST /v1/responses and GET /v1/models. Not available: image, audio and video generation, embeddings and fine-tuning.

Limits, price and sign-up on this service

ItemValue
Context window100,000 tokens, prompt plus completion
Full key limits8 concurrent requests, 300 requests per minute
Trial key limits2 concurrent requests, 60 requests per minute
Price$0.15 per 1M input tokens, $0.50 per 1M output tokens
Top-upsAny whole amount from $20 to $500, crypto only (USDT on TRC20, USDC on Base)
Bonus+5% from $50, +10% from $100, +15% from $200
Credit expiryNone

Failed or refused requests are not charged, and prompts are not used for training. To try it, sign up with Google or with email and password, then claim the $0.50 trial credit with one click on the API key page. It is valid for 7 days and needs no card. Full details are on the pricing page.

A fifteen-minute reading checklist

Docs are long and time is short. Work through this list with the pages open and you will have what you need to write the first call.

  1. Minutes 1 to 3. Find the quick-start page. Copy its example request exactly and note which URL it uses.
  2. Minutes 4 to 6. Open the model list. Write down the model string, its context window and its maximum output.
  3. Minutes 7 to 9. Open the limits page. Record requests per minute, concurrency and any daily cap.
  4. Minutes 10 to 12. Open pricing. Record input and output rates, and note the date you read it, since the figures change.
  5. Minutes 13 to 15. Open the error reference and make a one-line note for 401, 404, 429 and 5xx.

Then run the quick-start call with a tiny prompt. If it returns text, you have a working baseline to build on. If it fails, you have already collected the facts you need to debug it: URL, key region and model string.

A habit that pays off later is a short file in your repository, say PROVIDER_NOTES.md, with those facts and the date. When a bill or a limit changes six months from now, you will know what you assumed.

When the official docs are the better choice

Be honest about fit. If you need the vendor's newest models, multimodal input, embeddings, fine-tuning, an enterprise contract or a specific data-residency promise, the vendor's own platform is the right place, and its documentation is the one to follow. A third-party host is a good fit when you want a plain text endpoint, a refusal-free model for lawful adult use, predictable pay-as-you-go pricing and the smallest possible code change.

Our Qwen API documentation article is the companion to this page.

FAQ

Where are the official docs for Qwen models?

On the vendor's cloud platform and model pages. Search for the platform's model catalog and API reference, and confirm you are reading the region that matches your account.

Can I use the OpenAI SDK with Qwen models?

Many hosts, including the vendor's compatibility mode and independent services, accept OpenAI-style requests. You change the base URL, key and model name. Check the specific provider's docs for supported fields.

Is this site the official Qwen API?

No. It is an independent hosted API running one open-weight model under the ID uncensored, with an OpenAI-compatible interface.

Does it support streaming and tool calling?

Yes. Streaming works over SSE with stream set to true, and tool calling follows the OpenAI format with tools, tool_choice and tool results as role tool.

Get your API key

Register, retrieve the key, update your base URL. Done.

Start with free credit

Sign up with email, get key instantly.

Key points

  • Read six areas in order: auth, endpoints, model list, limits, pricing, errors.
  • Regional endpoints, model names and separate keys are the usual first-day traps.
  • An OpenAI-compatible host needs only a new base URL and key, not a new SDK.
  • Vendor prices change, so always confirm on the vendor's own pricing page.
Start now