Get an API Key for an OpenAI-Compatible Qwen Alternative
If you searched for a qwen coder api key, here is the short route: sign up, claim the trial credit, copy the key and point any OpenAI client at our base URL. It takes a few minutes and the trial needs no card.

Key points
- Sign-up works with Google or with email and password.
- One click on the API key page gives $0.50 of trial credit, valid for 7 days, one per person.
- The key goes in an Authorization: Bearer header, and the model ID is uncensored.
- This is an independent hosted API, so a key from another vendor will not work here and ours will not work there.
The short version: three steps to a working key
A qwen coder api key normally comes from the vendor that publishes the model. This site is different. It is an independent, hosted, OpenAI-compatible API that serves one open-weight model, tuned to answer without content refusals for lawful adult use. The key you create here works on this API only, and the steps are the same whether you write code in Python, Node or a plain shell script.
- Create an account with Google, or with an email address and a password.
- Open the API key page, claim the $0.50 trial credit with one click, and copy the key.
- Set the base URL to
https://api.qwencoder.cc/v1, send the key as a Bearer token, and use the model IDuncensored.
That is the whole setup. The rest of this page walks through each step, shows copy-paste code, and covers the things people trip over: where to store the key, what the trial limits are, and what changes when you switch from another provider.
Sign up and claim the trial credit
Registration offers two routes. Google sign-in is the quicker one, since there is no password to invent. If you prefer to keep things separate from your Google account, use an email address and a password instead. Both routes lead to the same dashboard.
After sign-up, go to the API key page. You will see a button for the trial credit. Press it once and $0.50 lands on your balance. A few rules apply: the credit is one per person, it is valid for 7 days from the moment you claim it, and it does not ask for a card. Claim it when you are ready to test, not the minute you sign up, because the 7-day clock starts at the claim.
How far does $0.50 go? Output tokens cost $0.50 per 1M and input tokens cost $0.15 per 1M. A request with 1,000 input tokens and 500 output tokens costs $0.00015 plus $0.00025, which is $0.0004. Dividing $0.50 by $0.0004 gives 1,250 such requests. That is plenty to wire up a client, run a test suite against the endpoint and judge the answers for your own use case.
What a trial key can and cannot do
A trial key accepts 2 concurrent requests and 60 requests per minute. A full key, which you get once you have topped up, accepts 8 concurrent requests and 300 requests per minute. The feature set is identical: streaming, tool calling and JSON mode all work on both. If you test with a script that fires requests in parallel, keep the pool at two workers or you will see HTTP 429 responses.
Check the key with curl
Before you touch any SDK, make one call from a terminal. It separates key problems from code problems. Put the key in an environment variable first so it never lands in your shell history as a literal.
export API_KEY="paste-your-key-here"
# list the models this key can see (use the model ID uncensored in chat calls)
curl https://api.qwencoder.cc/v1/models \
-H "Authorization: Bearer $API_KEY"
A JSON list that includes uncensored means the key is valid. Now send a chat request against the same base URL:
curl https://api.qwencoder.cc/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [
{"role": "user", "content": "Write a Python function that reverses a string."}
]
}'
The response follows the familiar chat completion shape, and the response headers carry X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency. Log the request ID if you ever need to ask support about a specific call, and read the balance header if you want a cheap way to watch your credit without opening the dashboard.
Use the key from Python and Node
Because the API speaks the OpenAI protocol, you do not install anything special. Use the official OpenAI SDK, change two arguments, and keep the rest of your code.
Python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.qwencoder.cc/v1",
api_key=os.environ["API_KEY"],
)
resp = client.chat.completions.create(
model="uncensored",
messages=[
{"role": "system", "content": "You are a concise coding assistant."},
{"role": "user", "content": "Explain what a Python generator is in three sentences."},
],
temperature=0.3,
)
print(resp.choices[0].message.content)
print(resp.usage)
Node
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.qwencoder.cc/v1",
apiKey: process.env.API_KEY,
});
const stream = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Give me a regex that matches ISO dates." }],
stream: true,
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}
The Node example streams. Server-sent events arrive as the model writes, and usage is reported at the end of the stream. Remember that a streamed request holds one of your concurrency slots until the stream closes, which matters on a trial key with only two slots.
Plugging the key into editors and chat clients
Many tools accept a custom OpenAI-compatible endpoint. The pattern is always the same three fields: a base URL, a key and a model name. Enter https://api.qwencoder.cc/v1 as the base URL, paste your key, and type uncensored as the model name. Some clients append /chat/completions on their own, so give them the base URL ending in /v1 and nothing more. If a client asks for the full chat path instead, add /chat/completions yourself.
If the tool validates the model name against a dropdown, it may call GET /v1/models to fill it. That endpoint is supported, so the list should populate. If the tool insists on a vendor model name from its own hard-coded list, look for a "custom model" or "other" option.
The quickstart in the docs covers the same fields in a compact form and is worth keeping open in a tab while you configure a new client.
Keep the key safe
An API key is a spending credential. Anyone holding it can use your balance. Four habits cover most of the risk:
- Keep it in an environment variable or a secrets manager, never in source code that gets committed.
- Do not paste it into a browser-side script. Call the API from your server, then send your own users the result.
- Use a separate key for each project if you can, so one leak does not touch everything.
- Top up with an amount you are comfortable losing, and watch the
X-Balance-USDheader for surprises.
If you think a key has leaked, stop using it and reach out through the support page straight away.
After the trial: adding credit
When the trial runs out you pay as you go from prepaid credit. There is no subscription. Input tokens cost $0.15 per 1M and output tokens cost $0.50 per 1M, failed or refused requests are not charged, and the credit never expires, so a top-up does not vanish at the end of the month.
Top-ups are any whole amount from $20 to $500. Larger amounts earn a bonus: +5% from $50, +10% from $100 and +15% from $200. So a $100 top-up gives $110 of credit. You can pay with crypto (USDT on TRC20, USDC on Base). The pricing page has the current list.
What this key is not
Honesty matters here, because the search term suggests a specific vendor. This service is not the official API of Alibaba, Qwen or any other model maker, and it is not a router that forwards your request to several vendors. It serves one open-weight model, run by an independent provider. A key from the vendor's own platform will not authenticate here, and a key from here will not work there.
The service handles text only. There is no image, audio or video generation, no embeddings and no fine-tuning. The context window is 100,000 tokens, prompt and completion together. Prompts are not used for training. One hard rule applies to every account: no sexual content involving minors.
The model is general-purpose, so judge it on your own code tasks during the trial before you commit a project to it. Switching later is easy anyway, since the only things tied to this provider are a URL and a key.
More guides
Questions and answers
Do I need a card to get an API key?
No. Sign-up is with Google or with email and password, and the $0.50 trial credit is claimed with one click and needs no card.
How long does the trial credit last?
It is valid for 7 days from the moment you claim it, and each person can claim it once.
What model name should I send?
Use uncensored in the model field. A GET request to /v1/models will list it for your key.
Can I use this key with the Qwen vendor's own API?
No. This is an independent service with its own keys. Change the base URL and key in your client when you move between providers.
What happens if I hit a rate limit?
The API returns HTTP 429. The error code is rate_limited for too many requests per minute and concurrency for too many at once, so back off and retry.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.