EN ▾

OpenAI API for LLM models with no vendor lock-in

Get API key
Base URL
https://api.apiiasemcensura.com/v1
Model
uncensored

Free AI API key: how to get the trial credit

Those looking for a free AI API key usually want to test before paying. Here you see what to realistically expect from a free key and how to make your first call in minutes.

Complete Guide: Unrestricted AI Integration in Your Application

Updated

Golden key on coins in front of a terminal, representing the trial credit of an AI API

Key points

  1. The trial credit is $0.50, valid for 7 days, one per person
  2. Sign up with Google or email and password, no payment required
  3. $0.50 yields 900 to 1,850 messages, depending on size
  4. After testing, the minimum top-up is $20 in USDT or USDC

What a free key is, in practice

A free API key almost never means unlimited and cost-free usage. In most services, "free" means a small initial credit, a daily limit, or a low request rate. The goal is to let you test the integration, not to run a product.

Here it works like this: after signing in, the API key page shows a button to redeem $0.50 in trial credit. It is one click, no payment, and valid once per person. The credit lasts 7 days. After that period, it expires, so it is best to use it immediately to validate your idea.

Before accepting any free offer, it is worth asking four things: how much credit or quota actually exists, how long it is valid, what speed limits apply, and what happens to your prompts. With this service, the answers are $0.50, 7 days, 2 simultaneous requests and 60 per minute, and prompts are not used for training. Having these numbers on hand avoids surprises when your prototype grows.

Step-by-step to redeem

  1. Open the get API key page and create your account. Registration accepts Google or email and password.
  2. Go to the key page and click the trial credit button. The balance appears next.
  3. Copy the key and store it in an environment variable, never in the source code.
  4. Use the base URL https://api.apiiasemcensura.com/v1 and the model uncensored in any OpenAI-compatible client.

The test key has lower limits than the full key: 2 parallel requests and 60 per minute. This is enough to validate a prototype. To go to production, you will want the full key, which allows 8 parallel requests and 300 per minute.

First call with curl

The fastest test does not need an SDK. Export the key and send a short question:

export API_KEY="SUA_CHAVE"

curl https://api.apiiasemcensura.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Explique em duas frases o que é um token."}],
    "max_tokens": 120
  }'

If everything is correct, you receive a JSON in the OpenAI format, with the text in choices[0].message.content and the usage in usage. The response also includes the X-Balance-USD header with the remaining balance.

First call in Python and Node

With the official OpenAI SDK, only two lines change compared to any tutorial: the base URL and the key.

Python

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.apiiasemcensura.com/v1",
    api_key=os.environ["API_KEY"],
)

r = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Escreva um haiku sobre café."}],
)
print(r.choices[0].message.content)
print(r.usage)

Node.js

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.apiiasemcensura.com/v1",
  apiKey: process.env.API_KEY,
});

const r = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Escreva um haiku sobre café." }],
});
console.log(r.choices[0].message.content);

The /v1/responses and /v1/models endpoints also work. Details are in the API documentation.

What $0.50 yields

The price is $0.15 per 1M input tokens and $0.50 per 1M output tokens. This allows you to estimate the reach of the trial credit.

Call profileInput / outputCost per callCalls using $0.50
Short question300 / 100$0.000095about 5,260
Average chat800 / 300$0.00027about 1,850
Long response2.000 / 500$0.00055about 909

As an example from the first line: 300 x 0.15 / 1,000,000 = US$ 0.000045, and 100 x 0.50 / 1,000,000 = US$ 0.00005, totaling US$ 0.000095. In other words, the free trial credit gives you plenty of room to test prompts, streaming, function calling, and JSON mode before deciding if it's worth paying. Failed or rejected calls are not charged.

A test plan for the credit

  1. A simple call to confirm the API key, Base URL, and model.
  2. The same call with stream: true to see chunks arriving and usage at the end.
  3. A call with response_format set to json_object if your app requires structured output.
  4. A call with tools if you plan to use function calling.
  5. A long prompt of a few thousand tokens to see the actual cost in usage and the balance.

Common errors on the first attempt

  • Base URL without /v1 at the end. Use exactly the URL from the example, including /v1.
  • Wrong model name. The only ID is uncensored. Other model names do not exist here.
  • Key with a space or line break. When copying, check the beginning and end. The header must be Authorization: Bearer SUA_CHAVE.
  • HTTP 429. The code rate_limited indicates too many requests per minute; concurrency, too many at once. The test key has a low limit, so wait and try again. If you get Retry-After: 5, wait 5 seconds.
  • Response cut off in the middle. If you set max_tokens too low, the text ends there. Increase the value or remove the parameter, as it is optional and the response can use the rest of the 100,000-token window.
  • Streaming that seems to block the queue. A streaming response holds the concurrency slot until the stream ends.

Precautions for any key, free or paid

"Free" keys shared in forums and repositories are often revoked or exhausted by those who arrived first, and using someone else's key is not a good idea. Yours is personal and free to test, so treat it like a password:

  • do not publish the key in front-end code, public repositories, or screenshots;
  • use environment variables and, in production, your own server as an intermediary;
  • check the balance via the X-Balance-USD header or the GET /v1/balance endpoint;
  • if you suspect the key has leaked, treat it as compromised and contact Support to find out how to proceed.

Also remember that the API generates text only. It does not produce images, audio, or embeddings. It is an open model, hosted by an independent provider, that responds without content refusals for legal adult use; sexual content involving minors is prohibited. To learn more about this type of model, see the uncensored AI page.

After the test: when it makes sense to top up

If the prototype worked, the next step is to top up. There is no subscription: you enter a whole amount from $20 to $500 and spend it gradually. Payment is in crypto, with USDT on the TRC20 network or USDC on the Base network. There is a 5% bonus from $50, 10% from $100, and 15% from $200. The credit never expires.

A $20 top-up, at the average chat profile in the table, covers about 74,000 messages ($20 divided by 0.00027). See the full ranges on the pricing page.

Before topping up, answer three questions. Did the model solve your task in the tests with the quality you need? Does the cost per request you measured fit your monthly budget? Do the limits of the full key, 8 concurrent and 300 per minute, meet your peak usage? If any answer is no, the free trial credit has served its purpose: you found this out by spending pennies.

More guides

Frequently asked questions

Does the free key have an expiry?

The US$ 0.50 free trial credit is valid for 7 days from redemption. After that, you must top up to continue using.

Do I need to provide a payment method to test?

No. Redemption is a click on the key page, after signing in with Google or with email and password.

Can I redeem the free trial credit more than once?

No. The free trial credit is one per person.

Is the test key suitable for production?

It is for validation. It allows 2 simultaneous requests and 60 per minute. The full key allows 8 simultaneous and 300 per minute.

How do I see how much balance is left?

Read the X-Balance-USD header in any response or query GET /v1/balance.

Your key is one form away

Create an account, copy the key, and change the Base URL. That is all the configuration.

Get API key