EN ▾
Get API key

Gemini Alternative: Uncensored OpenAI-Compatible API

If Gemini keeps refusing your prompts or you want a plain pay-as-you-go endpoint, this page shows what the service offers, what it lacks, and how to move your code over in a few lines.

Updated

Two server blocks linked by a light bridge, illustrating a switch from one LLM API to another

Key points

  • One hosted open-weight model, model ID uncensored, behind an OpenAI-compatible chat completions endpoint.
  • Text only: no images, audio, video, embeddings or fine-tuning.
  • $0.15 per 1M input tokens and $0.50 per 1M output tokens from prepaid credit that never expires.
  • Moving from the Gemini SDK means changing the client and the message format, not your whole application.

What this Gemini alternative is

This is a Gemini alternative for one specific job: sending text prompts to a language model that does not refuse lawful adult requests. It is a hosted API run by an independent provider. It serves one open-weight model, tuned to answer without content refusals, and it speaks the OpenAI chat completions protocol. Any OpenAI SDK, or any tool that lets you set a custom base URL, can talk to it.

It is not Google's product and it is not a router that forwards your request to Gemini or any other vendor. You send a request to https://api.nsfwgemini.top/v1, the same open-weight model answers every time, and you pay per token from credit you topped up in advance. The model ID is uncensored, and that is the only one you will ever put in the model field.

The hard limit is simple. Content involving minors is not allowed and is never served. Everything else in this article assumes lawful adult use, such as fiction, roleplay, companion apps and writing tools for adults.

What you get and what you do not

Before you switch anything, read this table. Most disappointed users picked a service for a feature it never had, so it is better to look at the gaps first.

CapabilityHere
Chat completionsYes, POST /v1/chat/completions
Model listYes, GET /v1/models
Streaming (SSE)Yes, with usage reported at the end
Tool callingYes: tools, tool_choice, streamed tool_calls, results as role: "tool"
JSON modeYes, response_format with json_object
Context window100,000 tokens, prompt plus completion
Image, audio or video generationNo
EmbeddingsNo
Fine-tuningNo
Multiple model choicesNo, one model

The sampling controls you already know are passed through: temperature, top_p, stop, seed and the frequency and presence penalties. The request body can be up to 8 MB, which is plenty for long chat histories.

If your project needs vision input, image output or speech, this service will not cover it, and you should keep a separate provider for those parts. Many teams run two backends anyway: one for general work and one for the content their main provider declines.

Moving code from the Gemini SDK

The native Gemini SDK and the OpenAI SDK describe a conversation differently, so this is a small rewrite and not a one-line swap. The mapping below covers the fields most apps use. It is based on how the two request formats are publicly documented, so compare it with your own code before you trust it blindly.

Gemini styleOpenAI style used here
contents list with partsmessages list with content strings
Role modelRole assistant
System instruction fieldFirst message with role system
maxOutputTokensmax_tokens (optional here)
topPtop_p
stopSequencesstop
JSON response MIME typeresponse_format with {"type":"json_object"}

With that in mind, here is a minimal Python call using the official OpenAI package. Install it with pip install openai.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.nsfwgemini.top/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="uncensored",
    messages=[
        {"role": "system", "content": "You are a co-writer for adult fiction. Stay in character."},
        {"role": "user", "content": "Continue the scene where the two rivals finally meet."},
    ],
    temperature=0.9,
    top_p=0.95,
)

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

If you prefer curl for a quick test, the same call looks like this:

curl https://api.nsfwgemini.top/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Say hello in one sentence."}]
  }'

The response carries an X-Balance-USD header, so you can watch your remaining credit without a separate call. A request id arrives in X-Request-Id, which is worth logging for support.

Streaming and JSON mode

Chat apps almost always stream. Set stream to true and read the chunks as they arrive. Usage is reported at the end of the stream, so you can still record token counts.

import OpenAI from "openai";

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

const stream = await client.chat.completions.create({
  model: "uncensored",
  stream: true,
  messages: [{ role: "user", content: "Write a two-paragraph opening for a noir story." }],
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}

One detail matters for production: a streamed request holds its concurrency slot until the stream ends. A full key allows 8 requests at once, so a client that opens a stream and never reads it to the end will eat into that budget. Close or finish every stream.

For structured output, pass response_format with {"type": "json_object"} and say in the prompt that you want JSON. Validate what comes back in your own code anyway. No model follows a schema perfectly every time, and a parse failure is cheaper to handle than a corrupted record.

What it costs in practice

Billing is per token: $0.15 per 1M input tokens and $0.50 per 1M output tokens. There is no subscription, and failed or refused requests are not charged. Here is a worked example for a chat turn with 2,000 input tokens and 500 output tokens.

  • Input: 2,000 tokens × $0.15 / 1,000,000 = $0.0003
  • Output: 500 tokens × $0.50 / 1,000,000 = $0.00025
  • Total per turn: $0.00055

A thousand such turns cost $0.55. A heavier job, say 10M input tokens and 2M output tokens in a month, comes to $1.50 for input plus $1.00 for output, so $2.50 in total. Chat history grows each turn because you resend it, which means input tokens usually dominate. Trim old messages if cost matters to you.

Top-ups are any whole amount from $20 to $500, with a bonus of 5% from $50, 10% from $100 and 15% from $200. A $100 top-up therefore gives $110 of credit. Credit never expires, so there is no pressure to spend it by a deadline. You can read the full table on the pricing page.

When another option fits better

Be honest with yourself about the requirement. If you need image generation, image understanding, audio, or a very wide choice of models behind one key, a single text model will not do. Use the vendor that offers those features, and consider this service only for the text workload that gets refused elsewhere.

If your content is ordinary and never trips a refusal, a mainstream provider may be simpler, and you should check its current pricing and policies before deciding. The reason to pick this service is narrow: lawful adult content, a plain OpenAI-shaped API, and a bill that is easy to predict.

Also remember the limits. A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 concurrent requests and 60 per minute. Going over returns HTTP 429 with the code rate_limited or concurrency. Temporary overload also returns 429, with Retry-After: 5. Build a retry with backoff and you will rarely notice.

Prompting habits that carry over

Most of what you learned writing prompts for one chat model still applies. A few habits matter more with this one, because it is built to follow the scenario you set instead of stepping out of it.

Put the stable instructions in the system message and keep them short: who the assistant is, what tone to use, what format to answer in. Put the changing material in user messages. If you want a character to stay consistent over a long session, repeat the key facts in the system message rather than hoping the model remembers a detail from fifty turns ago. The window is 100,000 tokens, which is large, but every token you resend is billed as input on each request.

Use the seed parameter when you need repeatable output for testing. With the same prompt, seed and sampling settings, results should be much more stable, though you should not treat it as a hard guarantee. Lower temperature for structured tasks such as JSON extraction, and raise it for creative writing. The frequency and presence penalties help when a model starts looping on the same phrase, which is a common complaint in long roleplay sessions.

A short migration checklist

Before you cut over production traffic, walk through this list once.

  1. Replace the client library calls with the OpenAI SDK and point it at https://api.nsfwgemini.top/v1.
  2. Convert every system instruction into a first message with role system, and rename any model role to assistant.
  3. Remove any code that sends images or other non-text parts. The endpoint accepts text only.
  4. Add retry with backoff for HTTP 429, and read the error code to tell the three cases apart.
  5. Log the X-Request-Id header with every call.
  6. Test your five hardest prompts side by side with your current provider, and judge the answers yourself.

That last step matters most. No benchmark number replaces reading real outputs on your own workload, and the result will tell you quickly whether this model fits.

Getting started in four steps

  1. Sign up with Google, or with email and password.
  2. Open the API key page and claim the $0.50 trial credit with one click. It is valid for 7 days, one per person, and needs no payment details.
  3. Run the Python or curl example above with your key and the base URL.
  4. When the trial runs out, top up with USDT on TRC20 or USDC on Base. Payment is crypto only on this site.

The docs list every parameter, and the same endpoint also works from tools that accept an OpenAI-compatible URL. Prompts are not used for training.

Questions and answers

Is this the official Gemini API or a copy of it?

No. It is an independent service that runs one open-weight model and exposes the OpenAI chat completions format. It is not made by Google and does not forward requests to Gemini.

Can I generate images with it?

No. The service is text only. There is no image, audio or video generation, no embeddings and no fine-tuning.

Which model ID do I send?

Send uncensored in the model field. You can confirm it with a GET request to /v1/models.

How can I pay?

Top-ups are made in crypto: USDT on TRC20 or USDC on Base, any whole amount from $20 to $500. New users can first test with a $0.50 trial credit.

Is any content blocked?

Content involving minors is never allowed. The model is tuned to answer other lawful adult requests without content refusals.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key