EN ▾
Get API key
gemmaapi.cc gemmaapi.cc gemmaapi.cc gemmaapi.cc gemmaapi.cc gemmaapi.cc gemmaapi.cc gemmaapi.cc gemmaapi.cc gemmaapi.cc gemmaapi.cc gemmaapi.cc gemmaapi.cc gemmaapi.cc gemmaapi.cc gemmaapi.cc

Quickstart for Gemma users

Get your uncensored API key and switch your client in three lines to start generating text with our OpenAI-compatible endpoint.

Base URL and Authentication

Our API follows the standard OpenAI chat-completions interface. You only need to update your client's base URL to https://api.gemmaapi.cc/v1 and provide your API key in the Authorization header. This approach ensures compatibility with existing SDKs without requiring code rewrites.

Authentication is strictly token-based. Generate your key on the Get API key page using your Google account or email. The key is displayed immediately and should be kept secure. We do not require a phone number or credit card for basic access, and trial credits are available for new accounts.

First Request

Send a standard chat completion request to test connectivity. The model ID is uncensored. This model is open-weight and tuned for unrestricted responses to lawful adult content, making it ideal for creative writing and code generation.

The request structure matches the standard OpenAI format. Ensure you include the model field set to uncensored in your payload.

  • Method: POST
  • Endpoint: /v1/chat/completions
  • Content-Type: application/json

Below is a basic curl example to verify your setup:

curl https://api.gemmaapi.cc/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."}]
  }'

Python SDK

Use the official OpenAI Python library to interact with our endpoint. Configure the client with your base URL and API key. This allows you to leverage familiar Python patterns for text generation.

The SDK handles serialization and streaming automatically. Set the model to uncensored to ensure you are using our specific uncensored model, not the default GPT models.

from openai import OpenAI

client = OpenAI(base_url="https://api.gemmaapi.cc/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)

Node SDK

For JavaScript and TypeScript developers, the OpenAI Node SDK works seamlessly. Initialize the client with your custom base URL and API key.

This setup allows you to integrate uncensored LLM capabilities directly into your Node.js applications. The code structure mirrors standard OpenAI usage, reducing the learning curve for existing developers.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.gemmaapi.cc/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);

Streaming Responses

We support Server-Sent Events (SSE) for streaming. This is useful for real-time text generation in UIs. The final chunk of the stream contains the token usage statistics, allowing you to track billing accurately.

Streaming reduces perceived latency by delivering tokens as they are generated. Ensure your client handles partial responses correctly.

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)

Limits, Errors, and Context

Our API has specific constraints to ensure fair usage. The context window is 100,000 tokens total, with no separate output cap. Rate limits are set to 300 requests per minute and 8 concurrent requests per key.

Common errors include 401 for invalid keys, 402 when credit is insufficient, and 429 for rate limiting. Errors and refusals do not consume credit. Prepaid credit never expires, and you can top up by crypto (USDT on TRC20, USDC on Base) at any time.

Specs at a glance

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

SpecValue
API formatOpenAI Chat Completions schema; official openai SDKs work unchanged
Base URLhttps://api.gemmaapi.cc/v1
EndpointsPOST /v1/chat/completions · GET /v1/models
API keyBearer token in the Authorization header
Model IDuncensored
Max context100,000 tokens, input and output combined
Tools / tool callsSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
Sampling parameterstemperature, top_p, stop, seed, presence_penalty, frequency_penalty
SSE streamingSupported (stream: true), usage included at the end
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Structured outputJSON object mode via response_format json_object
Request size8 MB request body
Rate limit300/min per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Concurrencyup to 8 in parallel per key
Free trial$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
Priceinput $0.15 / 1M tokens, output $0.50 / 1M tokens
Volume bonus+5% from $50, +10% from $100, +15% from $200
How you paypay as you go from prepaid credit; nothing is charged for failed or refused requests
Credit expirypaid credit never expires, no subscription
Paymentcrypto: USDT on TRON or USDC on Base, $20–$500, any whole sum
Sign-inGoogle or e-mail and password
Contentadult content allowed; sexual content involving minors is refused
Keysone key per account, regenerate any time (the old one stops working)

Error codes

Errors come back as JSON with a stable type; failed and refused requests are not billed.

CodeTypeMeaning
400bad_requestinvalid JSON, empty messages, bad parameter, or a prompt longer than the window — fix and resend
401missing_key · invalid_key · key_revokedno key, wrong key, or a key replaced by a newer one
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 · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly

Questions and answers

Does the uncensored model refuse content?

The model is tuned to answer without content refusals for lawful adult use. It will block sexual content involving minors, which is a hard limit applied to all requests.

How do I top up my credit?

You can top up by crypto (USDT on TRC20, USDC on Base). Minimum top-ups start at $20, and larger amounts earn bonus credit.

Is my data used for training?

No, your prompts are not used for training. We only require an email to create your account, ensuring privacy while maintaining service functionality.

Your key is one form away

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