Integrating Uncensored AI Text API
Developers often seek a reliable, uncensored text API to bypass standard filters. This guide details the integration steps for our hosted service, covering authentication, streaming, and error handling.

Authentication and Base URL
Start by registering an account via Google or email. You receive an API key immediately upon signup. This key authenticates all requests to our service. Store it securely in your environment variables. Never expose the key in client-side code or public repositories.
The base URL for our API is https://api.uncensoredaiopen.com/v1. All endpoints are relative to this root. You must include the key in the Authorization header. Use the format Bearer . This ensures your requests are identified correctly.
Our API supports the standard chat-completions endpoint. Send POST requests to /v1/chat/completions. You can also use /v1/responses for alternative response formats. Check available models via GET /v1/models. The model ID to send is always uncensored.
Errors return specific HTTP codes. A 401 means your key is invalid. A 402 indicates no prepaid credit remains. A 429 signals you hit the rate limit. Handle these codes gracefully in your application logic. This prevents unnecessary retries and saves credits.
Request Structure and Parameters
Our API accepts standard OpenAI-compatible JSON bodies. Include the model field set to uncensored. Add your messages array with role and content fields. The system supports multiple turns in a single request. This allows for complex conversational flows.
Control generation with parameters like temperature and top_p. Set stop sequences to halt output at specific strings. Use the seed parameter for reproducible results. These options give you fine-grained control over the output quality. Adjust them based on your use case.
Function calling is supported for tool integration. Define tools in your request body. The model returns function calls which you can execute. This enables dynamic behavior in your applications. JSON mode forces the output into valid JSON. This is useful for data extraction tasks.
Context window size is 100,000 tokens. This includes both input and output tokens. Manage your prompt length to stay within limits. Long contexts may consume more credits. Plan your token usage carefully. Our API handles long conversations efficiently.
Streaming and Real-Time Output
Streaming is available over Server-Sent Events (SSE). Enable streaming by setting the stream parameter to true. The API sends partial responses as they are generated. This reduces perceived latency for users. Display tokens as they arrive for a smooth experience.
Usage information is included in the final chunk. This allows you to track token consumption in real time. Parse the last event to get the total count. This helps in monitoring your credit usage. It also aids in debugging generation issues.
Handle connection drops gracefully. If the stream breaks, you may miss the final chunk. Implement retry logic or fallback mechanisms. Consider caching partial responses if needed. This ensures a reliable user experience. Streaming is ideal for chat interfaces and live agents.
Non-streaming responses are also supported. They return the full response in one go. Use this for simpler tasks where latency is less critical. Both modes use the same endpoints. Choose based on your application needs. Streaming provides better interactivity.
Pricing and Payment Methods
Pricing is based on token usage. Input tokens cost $0.15 per million. Output tokens cost $0.50 per million. Errors and refusals are free. This means you do not pay for failed requests. This model is cost-effective for testing.
Payments are crypto-only. Accept USDT on TRC20 or USDC on Base. Top-up amounts range from $20 to $500. You can add any whole amount in this range. Credits are prepaid and never expire. This provides flexibility for long-term projects.
Bonus credit is available for larger top-ups. Adding $50 or more grants a bonus. The bonus ranges from +5% to +15%. This increases your effective credit balance. Check the dashboard for current bonus rates. It is a good way to save on costs.
No cards, PayPal, or bank transfers are accepted. Ensure your wallet supports the required networks. Transfers are processed instantly. Credits appear in your account immediately. This simplified process reduces friction for developers. Keep your balance updated to avoid service interruptions.
When Our API Is Not the Right Choice
Our API specializes in text generation. It does not support image, audio, or video generation. If you need multimodal capabilities, consider other providers. We do not offer embeddings or vector search. Use a dedicated embedding service for semantic search.
We do not provide fine-tuning services. If you need to train a custom model, look elsewhere. Our service is for inference only. We also lack OCR and document parsing features. Handle these tasks in your own pipeline.
Rate limits are set at 300 requests per minute. High-throughput applications may need to implement backoff strategies. If you require higher limits, contact support. Our model is uncensored but has a hard limit on minor sexual content. Ensure your use case fits these constraints.
We do not offer SLA guarantees or certifications like SOC2. If strict compliance is required, evaluate other options. Our service is best for developers who value flexibility and cost. It is ideal for chatbots, agents, and content generation. Check the vendor documentation for detailed feature lists.
Addressing Common Developer Questions
Developers often ask about the value of pay-per-token APIs versus monthly subscriptions. Our API offers prepaid credits with no monthly fee. This is ideal for variable usage. You pay only for what you use. This contrasts with subscriptions that charge regardless of usage.
Another common question is about uncensored models. Users want to avoid filters for creative or research purposes. Our model does not refuse lawful adult or controversial topics. This makes it suitable for diverse use cases. However, we refuse requests involving minors.
Some developers ask about integrating with existing frameworks. Our API is OpenAI-compatible. You can use standard SDKs with minimal changes. Just update the base URL and key. This makes migration easy. Many tools already support OpenAI-style APIs.
Users also inquire about trial credits. New accounts receive $0.50 in trial credit. No card is needed to start. This allows you to test the API risk-free. It is a good way to evaluate the service before committing. Use this trial to check latency and quality.
Testing and Troubleshooting
Start by sending a simple request with a short prompt. Verify that you receive a valid response. Check the status code and response body. Ensure the model field is set correctly. This confirms your authentication is working.
Test streaming by enabling the stream parameter. Observe the partial responses. Ensure they are parsed correctly in your code. Handle the final chunk to get usage data. This validates the streaming setup. It also helps in monitoring token counts.
Check rate limits by sending rapid requests. If you hit the limit, you will get a 429 error. Implement exponential backoff in your code. This prevents overwhelming the API. It also ensures fair usage. Monitor your credit balance regularly.
If you encounter errors, check the HTTP status codes. A 401 means check your key. A 402 means add credits. A 429 means wait and retry. These codes are standard and easy to handle. Use them to build reliable error handling. This ensures a smooth user experience.
Frequently asked questions
How do I get an API key?
Sign up via Google or email on our site. Your key is shown immediately after registration. Use it in the Authorization header for all requests.
What payment methods are accepted?
We accept USDT on TRC20 and USDC on Base. Top-ups range from $20 to $500. Cards and PayPal are not supported.
Is there a free trial?
Yes, new accounts receive $0.50 in trial credit. No card is required. This allows you to test the API without spending money.
Can I use this API for image generation?
No, our API is text-only. It does not support images, audio, or video. Use a dedicated service for multimodal tasks.