EN ▾
Get API key

Quickstart for NSFW Gemini users

Get an uncensored LLM API call working in under five minutes using our OpenAI-compatible endpoint. Drop your key into any standard SDK and start generating text without content filters.

Installation

Start by obtaining your API key. Visit the Get API key page and sign in with Google or your email and password. The key appears immediately on screen. No phone number is required, and you can generate a new key at any time, which replaces the previous one.

Ensure your development environment has the appropriate SDK installed for your language. Our API follows the OpenAI chat-completions protocol, so standard libraries work without modification. Install the latest version of your chosen client library to ensure compatibility with streaming and JSON mode features.

curl https://api.nsfwgemini.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
  }'

Store your key securely. It grants full access to your prepaid credit until revoked. Avoid hardcoding it in public repositories.

Configuration

Point your client to our base URL: https://api.nsfwgemini.com/v1. Pass your API key in the Authorization header as a Bearer token. The model ID to request is always uncensored. This is an open-weight model running on our infrastructure, not a replica of GPT, Claude, or Gemini.

The context window supports up to 100,000 tokens total, including both the prompt and the completion. If you do not specify max_tokens, the response can run to the end of the window. You can adjust this up to the remaining context capacity. Ensure your requests stay within the 8 MB body limit.

Authentication is straightforward. Any request missing a valid key returns a 401 error. Requests with insufficient credit return 402. We do not offer free tiers, but new accounts receive $0.50 in trial credit valid for 7 days. Claim this credit with one click on your API key page.

Basic Completion

Send a standard chat/completions request. The API accepts text input and returns text output. It does not support embeddings, image generation, audio, or video. Function calling, JSON mode, and streaming are available if needed.

from openai import OpenAI

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

resp = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)

Parameters like temperature, top_p, stop, and seed work as expected. The uncensored model responds to adult, fictional, and controversial topics without refusal for lawful use. It blocks only sexual content involving minors. Errors and refusals do not consume credit.

Keep your prompts concise to maximize output length within the 100k token window. The model is tuned for direct, unfiltered responses.

Streaming Responses

Use Server-Sent Events (SSE) for real-time token generation. The API streams chunks as they are produced. Token usage statistics are included in the final chunk of the stream.

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Tell the story in second person."}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

Streaming is ideal for applications requiring immediate feedback. It reduces perceived latency for long outputs. Each chunk is a partial JSON object. You must buffer and concatenate these chunks to reconstruct the full response if needed.

Ensure your client handles stream interruptions gracefully. The uncensored API supports streaming for all standard completion requests. Function calling and JSON mode also work with streaming enabled.

JSON Mode

Force structured output by setting response_format to {"type": "json_object"}. The model will attempt to return valid JSON. This is useful for parsing data into your application's backend.

While JSON mode improves structure, it does not guarantee 100% validity for complex schemas. Always validate the output in your code. If parsing fails, retry with a higher temperature or simplified instructions.

JSON mode works alongside streaming and function calling. Use it when your downstream systems require strict data types. The uncensored model maintains its lack of content filters even in structured mode.

Function Calling

Define tools in your request to let the model call functions. Pass a list of tool definitions and specify tool_choice. The model returns tool calls in its response, which you execute and feed back into the conversation.

This feature integrates with the standard OpenAI-compatible protocol. It works with the uncensored model just as it would with other LLMs. Use it for agent workflows or dynamic data retrieval.

import OpenAI from "openai";

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

const resp = await client.chat.completions.create({
  model: "uncensored",
  messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);

Monitor token usage closely when using function calling, as tool definitions and responses consume context. The 100k limit applies to the entire conversation history. Refine your tool schemas to minimize overhead.

Capabilities and limits

One table with every limit, feature and price that applies to your key.

ItemValue
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
AuthenticationBearer token in the Authorization header
Modeluncensored
MethodsPOST /v1/chat/completions · GET /v1/models
Base URLhttps://api.nsfwgemini.com/v1
Context window100,000 tokens (prompt + completion together)
Sampling parameterstemperature, top_p, stop, seed and the two penalties are passed through
Max outputup to the rest of the 100,000-token window; max_tokens optional (no separate cap)
Function callingYes — tools, tool_choice; replies carry tool_calls, also when streaming; send results back as role: tool
Structured outputJSON object mode via response_format json_object
StreamingSupported (stream: true), usage included at the end
Request sizeup to 8 MB per request
Rate limit300/min per key
Response headersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Parallel requests8 requests at the same time per key
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Bonus credit+5% from $50, +10% from $100, +15% from $200
Credit expirypaid credit never expires, no subscription
Price$0.15 per 1M input tokens · $0.50 per 1M output tokens
Billingprepaid credit, charged by real token usage; errors and refusals are free
Trial credit$0.50 of credit valid 7 days, no card needed · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Contentadult content allowed; sexual content involving minors is refused
Key managementone active key per account; a new key replaces the old one
Sign-inGoogle or e-mail and password

HTTP errors

The type field is stable, the message is for humans. Errors cost nothing.

CodeTypeMeaning
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditbalance is empty — top up, requests resume at once
403content_blockedrefused by the content policy
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyover 300/min or 8 parallel — back off and retry
503upstream_busytemporary overload, retry shortly

Questions and answers

How many requests can I make per minute?

You are limited to 300 requests per minute per API key. You can have 8 concurrent requests active at the same time per key. If you exceed these limits, the API returns a 429 rate limit error.

What happens if I run out of credit?

Requests will return a 402 error. You can top up your credit using USDT (TRC20) or USDC (Base) via crypto. Credit never expires, so you can add funds whenever needed.

Is the model the same as Gemini or GPT?

No. This is an independent open-weight model tuned for uncensored responses. It is not GPT, Claude, Gemini, Grok, or any other vendor's model. It runs on our servers and uses the same API format for easy swapping.

Your key is one form away

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

Get API key