GeminiaΟδηγός Γρήγορης Εκκίνησης API
Οδηγός Γρήγορης Εκκίνησης API
Συνδέστε τον πελάτη σας στο uncensored LLM API μας χρησιμοποιώντας τυπικά OpenAI-compatible endpoints και αυθεντικοποιηθείτε με ένα generated API key.
Βασικό URL και Αυθεντικοποίηση
Η base URL για όλες τις αιτήσεις είναι https://api.geminiaiuncensored.com/v1. Δώστε το κλειδί σας στο Authorization header ως bearer token. Λειτουργεί με οποιοδήποτε SDK που δέχεται μια προσαρμοσμένη βασική διεύθυνση URL.
Αποστολή της πρώτης σας αίτησης
Στείλτε ένα POST request στο /v1/chat/completions με το μοναδικό αναγνωριστικό μοντέλου uncensored. Η API επιστρέφει ωμό κείμενο χωρίς φίλτρα περιεχομένου για νόμιμα θέματα ενηλίκων.
- Ορίστε
modelγιαuncensored. - Συμπεριλάβετε το
messages - Use standard parameters like
temperature.
This confirms your key works and returns immediate text output.
Python SDK Integration
Initialize the client with your base URL and key. Send a simple prompt to test the connection. The response object contains the generated text in choices[0].message.content.
Node SDK Integration
Configure the client with the same base URL. Use the chat.completions.create method. The response structure mirrors the standard OpenAI format.
Streaming Responses with SSE
Enable streaming by setting stream: true. The API sends Server-Sent Events for each token. Handle the content field in each chunk to build the final response incrementally.
Limits and Errors
Expect a 401 if the key is invalid. A 402 means you need to top up with crypto. Rate limits are 300 requests per minute. The context window is 100,000 tokens. Handle refusals for minor sexual content.
cURL
curl https://api.geminiaiuncensored.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Generate a Python function to calculate factorial recursively"}]
}'Python
from openai import OpenAI
client = OpenAI(base_url="https://api.geminiaiuncensored.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)Node.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.geminiaiuncensored.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);Streaming
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)Frequently asked questions
Is this the official Gemini API?
No, we run our own uncensored model. It is compatible but not affiliated with Google.
How do I pay?
We accept USDT on TRC20 or USDC on Base. Credits never expire.
What is the context window?
The model supports 100,000 tokens for input and output combined.
Obtain your API key
Register, retrieve your key, update your base URL. That covers the entire setup.