Gemini Alternative Tools That Work With Our API
Any tool that lets you set an OpenAI-compatible base URL and API key can use this endpoint. Below are the common ones, with the exact values to enter and the mistakes to avoid.

Key points
- Three values are all a client needs: base URL, API key and the model ID uncensored.
- Chat front ends, agent frameworks and coding assistants usually have a custom OpenAI endpoint setting.
- Tool calling and JSON mode work, but only if the client sends them in OpenAI format.
- Most failures come from a wrong URL suffix, a missing model name or hitting the concurrency limit.
The three values every tool needs
People who search for gemini alternative tools usually want a list of software that will talk to a different backend without a rewrite. The good news is that the list is long, because the OpenAI chat completions format has become the common denominator. If a tool offers a custom OpenAI endpoint, it can use this service.
You need three values, and they are the same in every tool:
- Base URL:
https://api.nsfwgemini.top/v1. Include the/v1and leave off/chat/completions, because the client adds that part itself. - API key: sent as
Authorization: Bearer YOUR_KEY. Get one on the API key page. - Model:
uncensored. There is only one model, so the name never changes.
The service exposes POST /v1/chat/completions and GET /v1/models. Some clients call the models endpoint to fill a dropdown, and some let you type the name by hand. Either way the value you want is uncensored.
This is a text-only service from an independent provider. It is not Google's API, so tools that depend on Gemini-only features such as image input or native Google tool integrations will not get them here.
Chat front ends and roleplay clients
SillyTavern
SillyTavern lets you add an OpenAI-compatible endpoint. In the API connection panel, choose the chat completion source that allows a custom endpoint, paste the base URL and key, and set the model name to uncensored. Then press the connect button and check that it reports a valid connection. Roleplay users should also set a sensible context size: the window here is 100,000 tokens, but a large setting means each turn resends more history and costs more input tokens.
Open WebUI
Open WebUI supports OpenAI-compatible connections in its admin settings. Add a connection with the base URL and key, and the model list should populate from GET /v1/models. If the list stays empty, type the model ID manually.
These front ends mostly stream. Streaming works over SSE with stream: true, and a streamed request keeps its concurrency slot until the stream ends. If you open many chat tabs against one key, remember that a full key allows 8 concurrent requests.
Frameworks and libraries
Frameworks give you the most control, and each of them wraps the OpenAI client under the hood. The patterns below are minimal, and every one carries the same three values.
Python with the OpenAI SDK
from openai import OpenAI
client = OpenAI(base_url="https://api.nsfwgemini.top/v1", api_key="YOUR_API_KEY")
reply = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Give me three names for a tavern keeper."}],
)
print(reply.choices[0].message.content)
LangChain
The OpenAI chat class in LangChain accepts a base URL, so you point it at the service and keep the rest of your chain unchanged.
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model="uncensored",
base_url="https://api.nsfwgemini.top/v1",
api_key="YOUR_API_KEY",
temperature=0.8,
)
print(llm.invoke("Write a one-line toast for a fictional guild.").content)
Node with the Vercel AI SDK or the OpenAI package
The OpenAI package takes a baseURL option. The Vercel AI SDK has an OpenAI provider that can be created with a custom baseURL as well. Check each project's current docs for the exact function names, since those change between versions.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.nsfwgemini.top/v1",
apiKey: process.env.API_KEY,
});
const out = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Describe a market square in two sentences." }],
});
console.log(out.choices[0].message.content);
LiteLLM and similar gateways
If you already run a gateway such as LiteLLM, you can register this service as an OpenAI-compatible provider with a custom API base. That gives your apps one internal URL while you switch backends behind it. Use the model name uncensored in the gateway's upstream configuration.
Coding assistants: Continue and Cursor
Editors with AI features often allow an OpenAI-compatible override. Continue is configured through a model entry with a provider, a model name, an API base and a key. Cursor has an option to override the OpenAI base URL in its model settings. Menus move between versions, so look for a field named something like "Override OpenAI Base URL" and follow the current docs of the editor.
Be realistic about what to expect. This is a general-purpose text model tuned to avoid content refusals, and it is not specialised for code. Many people use it for creative and conversational work and keep a different model for programming. Some editor features also assume a specific vendor's model names or response extras, so a custom endpoint may only support part of the feature set. Test with a small file before you rely on it.
Tool calling and JSON mode in your client
The service supports tool calling in the OpenAI format: you send tools and optionally tool_choice, the model replies with tool_calls, and you return results as messages with role: "tool". Tool calls also stream. Agent frameworks that use this format should work without changes.
from openai import OpenAI
client = OpenAI(base_url="https://api.nsfwgemini.top/v1", api_key="YOUR_API_KEY")
tools = [{
"type": "function",
"function": {
"name": "roll_dice",
"description": "Roll a die with the given number of sides",
"parameters": {
"type": "object",
"properties": {"sides": {"type": "integer"}},
"required": ["sides"],
},
},
}]
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Roll a twenty-sided die for the player."}],
tools=tools,
tool_choice="auto",
)
print(resp.choices[0].message.tool_calls)
JSON mode is available through response_format with {"type": "json_object"}. Tools that rely on strict schema enforcement from another vendor's features may not map exactly, so validate outputs in your own code.
Settings that matter for roleplay and chat clients
Front ends expose many sliders, and the defaults are often tuned for another vendor's model. For this endpoint, start with a temperature around 0.8 to 1.0 for fiction and lower it if the story drifts. Keep top_p near 0.9 to 0.95. If you see the same phrase repeated, add a small frequency or presence penalty. All of these are passed through to the model, so they have an effect.
The context size slider deserves more thought than the others. A bigger context means your client resends more history with every message. At $0.15 per 1M input tokens the cost is small per turn, but it adds up over thousands of turns, and long histories also slow the reply. Many users cap the history at a few thousand tokens and use a short summary for older events.
Set a maximum response length in the client. The API treats max_tokens as optional, so without a cap the model may write until it runs out of things to say. A limit of a few hundred tokens suits chat. Remember that you are billed for the output tokens you receive, at $0.50 per 1M.
Checking the connection from a terminal
When a graphical tool fails with a vague message, test the endpoint directly. This removes the tool from the equation and shows whether the problem is your key, your URL or the client.
curl https://api.nsfwgemini.top/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"
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": "ping"}]}'
If both commands work and the tool still fails, the cause is a setting in the tool. If the first works and the second returns an error, read the error code in the response body. If neither works, check the key and the URL. Another useful trick is to open the tool's own request log, if it has one, and compare the URL it called with the one above. A typo or an extra path segment shows up immediately.
Fixing the usual problems
- 404 or "not found" from the client. You probably added
/chat/completionsto the base URL, or left off/v1. Use exactlyhttps://api.nsfwgemini.top/v1. - Unknown model. Some tools default to another vendor's model name. Set it to
uncensored. - 401 errors. The key goes in the key field and is sent as a Bearer token. Check for a stray space when pasting.
- 429 with
concurrency. Too many requests at once. A full key allows 8, and a trial key allows 2. Lower the parallelism in your tool. - 429 with
rate_limited. More than 300 requests per minute on a full key, or 60 on a trial key. Slow down. - 429 with
Retry-After: 5. Temporary overload. Wait five seconds and try again.
When you write to support, include the value of the X-Request-Id response header. The docs page has the full parameter list, and the pricing page explains billing: $0.15 per 1M input tokens and $0.50 per 1M output tokens, from prepaid crypto credit with USDT on TRC20 or USDC on Base. A $0.50 trial is available for new accounts.
More guides
Questions and answers
Which tools work with this API?
Any client, framework or editor that lets you set a custom OpenAI-compatible base URL and key. Examples include SillyTavern, Open WebUI, LangChain, LiteLLM, Continue and Cursor, subject to each tool's current settings.
What base URL do I enter?
Use https://api.nsfwgemini.top/v1 with no trailing path. The client adds /chat/completions on its own.
What goes in the model field?
Use uncensored. The service runs a single model.
Does tool calling work?
Yes. The tools and tool_choice parameters are supported, tool calls can stream, and results go back as messages with role tool.
Why do I get HTTP 429?
You exceeded the requests per minute, the number of concurrent requests, or the service was briefly overloaded. Reduce parallelism or retry after a short wait.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.