EN ▾
Get your key
per 1M input tokens$0.15
Output tokens / 1M$0.50
token context100,000
trial credit$0.50
requests per minute300

https://api.isgrokunfiltered.com/v1uncensored

Grok API Integration Guide

You need a reliable, uncensored API for your LLM workflows without the corporate filtering or monthly subscription fatigue. This guide explains how to integrate an uncensored model using standard OpenAI-compatible protocols, ensuring you get raw text generation for adult or unrestricted use cases. We break down the technical steps to get your requests flowing correctly.

Last updated

Key takeaways

  1. Use standard POST /v1/chat/completions endpoints to send text and receive raw responses without hidden refusals.

  2. Configure streaming via Server-Sent Events to handle long outputs efficiently without blocking your application thread.

  3. Leverage function calling and JSON mode for structured data extraction while maintaining an uncensored model context.

  4. Monitor token usage closely since pricing is prepaid and based strictly on input and output token counts.

Why Use an Uncensored Grok API Alternative?

Direct API access often applies strict content filters that block lawful adult or controversial topics. Many providers hide these refusals deep in their response structures. An uncensored model serves raw inference data for any legal use case. You get the full output without the corporate safety layer intervening.

Corporate-grade APIs often change their filtering logic without notice. This breaks downstream applications that rely on specific content types. A dedicated uncensored service removes this uncertainty. Your prompts return exactly what the model generates.

Consider the difference between a chat interface and a raw API. The chat UI might hide nuanced outputs. The API exposes the full token stream. This transparency is critical for developers building specialized tools.

Our service operates independently. We do not serve Grok or any other vendor's model. We provide a distinct uncensored large language model. It runs on our own servers. The interface remains familiar to OpenAI users.

Key Benefits

  • No monthly subscription fees.
  • Transparent prepaid billing.
  • Raw output for lawful adult content.
  • No hidden refusals for controversial topics.

Understanding the API Endpoint Structure

Two endpoints handle all interactions: POST /v1/chat/completions and GET /v1/models. These follow the standard OpenAI API specification. You send a JSON payload with your system and user messages. The server returns a JSON response with the generated text.

The GET endpoint lists available models. It confirms your connection is valid. Use this to verify your API key works before sending heavy loads. It also shows the model ID you must include in your requests.

Our base URL is HTTPS://api.isgrokunfiltered.com/v1. This replaces the default OpenAI URL in your client configuration. The model ID to send is "uncensored". This ensures you hit the right server.

Authentication uses a Bearer token in the Authorization header. Include your API key directly. No complex OAuth flows are required. This simplicity reduces integration time significantly.

Endpoint Summary

MethodPathFunction
POST/v1/chat/completionsGenerates text responses
GET/v1/modelsLists available models

Configuring Your Client for Streaming

Enable streaming by setting the stream parameter to true in your request body. This returns Server-Sent Events (SSE) instead of a single JSON object. Each event contains a partial chunk of the response. You can display text to users in real-time.

Streaming reduces perceived latency for long responses. Users see output as it generates. This improves the experience for chat-like interfaces. It also allows you to cancel requests early if needed.

Each chunk includes token usage data in the final event. You can track input and output tokens accurately. This helps you monitor your prepaid credit balance. Errors during streaming still consume tokens for the processed data.

Handle the SSE format correctly. Parse each line starting with "data: ". Ignore the final "[DONE]" event. This ensures your application processes every token correctly.

from openai import OpenAI

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

Handling Function Calls in Uncensored Mode

Function calling allows your application to execute code based on model output. Send a list of tools in the request. The model returns a tool_calls array instead of plain text. Your code executes the function and sends the result back.

This works seamlessly with our uncensored model. The model does not refuse to call functions based on content type. It focuses on the logical structure of the request. This is ideal for complex data extraction tasks.

Use JSON mode to enforce strict output formats. Set response_format to json_object. The model returns only valid JSON. This reduces parsing errors in your backend. It ensures consistent data structures.

Combine function calling with streaming for dynamic interactions. You can start executing functions while the model is still generating. This creates a highly responsive application. The uncensored model handles diverse tool definitions without bias.

import OpenAI from "openai";

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

Optimizing Token Costs for Long Contexts

The context window supports up to 100,000 tokens. This includes both the prompt and the completion. Longer contexts consume more prepaid credit. Monitor your token usage to avoid unexpected charges.

Input tokens cost $0.15 per million. Output tokens cost $0.50 per million. Output tokens are significantly more expensive. Optimize your prompts to reduce input size. Use concise system instructions. Avoid sending unnecessary history.

Set a max_tokens parameter to control output length. The default is 2,048 tokens. You can increase this up to 16,000 tokens per request. This prevents runaway generation that burns credit quickly.

Errors and refusals are free. You only pay for successful token generation. This protects you from wasted spending on failed requests. Track your balance regularly to stay informed.

Pricing Breakdown

  • Input: $0.15 / 1M tokens
  • Output: $0.50 / 1M tokens
  • Max Output: 16,000 tokens
  • Context Window: 100,000 tokens

Rate Limits and Concurrency Settings

Each API key allows 300 requests per minute. This limit applies globally to your key. High-frequency applications need to manage their request rate carefully. Exceeding the limit returns a 429 Too Many Requests error.

You can have up to 8 concurrent requests per key. This allows parallel processing of independent tasks. Manage concurrency to avoid hitting the rate limit. Distribute requests across time intervals.

The maximum request body size is 8 MB. Large payloads with extensive history may exceed this. Compress your input or truncate old messages. This ensures your requests are processed successfully.

You can only have one active key per account. If you lose your key, generate a new one. The old key becomes invalid immediately. This simplifies security management. Rotate keys periodically for added safety.

curl https://api.isgrokunfiltered.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Generate a list of five unique Python script ideas."}]
  }'

Migrating Your Existing Grok API Keys

Migrating to our API requires changing the base URL and model ID. Your existing client code structure remains largely the same. Update the base URL to HTTPS://api.isgrokunfiltered.com/v1. Change the model ID to "uncensored".

Troubleshooting Common Integration Errors

401 Unauthorized errors indicate an invalid or expired API key. Verify your key in the dashboard. Ensure you are sending it in the Authorization header. Check for leading spaces or typos.

429 Too Many Requests means you hit the rate limit. Reduce your request frequency or increase the interval between calls. Use exponential backoff for retries. This prevents overwhelming the server.

400 Bad Request often stems from invalid JSON. Ensure your payload matches the expected schema. Check for missing required fields like messages or model. Use the GET endpoint to verify model availability.

500 Internal Server Errors are rare but possible. Retry the request after a short delay. If the issue persists, contact support. Our logs can help identify the root cause quickly.

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)

Next Steps: Testing Your Uncensored Model

Start with a simple text generation request. Send a short prompt and verify the response format. Check that streaming works correctly. Ensure function calling integrates smoothly with your code.

Monitor your token usage closely. The prepaid model charges only for actual tokens. Errors are free. This allows safe experimentation. Top up your credit using crypto when needed.

Test edge cases like long contexts and complex tool definitions. Verify that the uncensored model handles diverse topics. Ensure your application handles partial responses correctly. This prepares you for production use.

Sign up with Google or email. Get your API key instantly. No phone number required. Start testing immediately with $0.50 of trial credit. This gives you a risk-free way to evaluate the service.

Frequently asked questions

Is this the official Grok API?

No, this is an independent service. We do not serve Grok or any other vendor's model. We provide a distinct uncensored large language model that is compatible with the OpenAI API specification. You can use your existing OpenAI-compatible clients to connect to our service.

How do I pay for the API?

We use a prepaid credit system topped up with crypto only. You can pay with USDT on the TRC20 network or USDC on the Base network. Minimum top-ups start at $20. Your credit never expires, and you only pay for the tokens you actually use.

What is the context window size?

Our model supports a context window of 100,000 tokens. This includes both the input prompt and the generated completion. You can set the maximum output tokens per request to up to 16,000 tokens. The default max tokens is 2,048.

Does the model refuse content?

The model is uncensored for lawful adult use. It does not refuse controversial, fictional, or security-research topics. The only hard limit is that sexual content involving minors is always refused. You get raw output without hidden corporate filters.

Get your API key now

Register, copy your key, update your base URL. That is all the configuration required.

Get your key