EN ▾
Create key

Integrating Ollama Uncensored: SDK Setup & Checklist

Developers often seek a reliable way to integrate uncensored text generation into their applications without the overhead of managing local models. This guide provides a tested integration checklist for our OpenAI-compatible service, focusing on text-in and text-out workflows.

Developer workspace with monitor showing AI chat interface and code

Understanding the API Scope

Our API is designed specifically for text generation using a single uncensored open-weight model. It serves as a hosted solution for developers who want to avoid the complexity of managing local infrastructure. The service supports standard chat-completions endpoints, making it easy to integrate with existing tools.

Unlike many platforms, we do not offer embeddings, image generation, audio processing, or video capabilities. The focus is purely on text input and text output. This specialization ensures consistent performance for conversational AI and content generation tasks.

The model ID you must send is simply 'uncensored'. This identifier tells the API which model to use for your requests. Since there is only one model, you do not need to worry about model routing or selection logic.

Our service is an independent platform and not an official product of any major tech company. We provide a straightforward interface for uncensored text generation, allowing developers to build applications that require fewer restrictions on content.

Base URL and Endpoints

To start integrating, you need to configure your client with the correct base URL. All requests should be sent to https://api.ollamauncensoredmodels.com/v1. This URL is the entry point for all your API interactions.

The primary endpoint for generating responses is POST /v1/chat/completions. This endpoint accepts standard chat completion requests and returns text responses. It supports both streaming and non-streaming modes.

You can also use POST /v1/responses for alternative response formats if needed. Additionally, GET /v1/models allows you to verify the available models, though the only option is 'uncensored'.

Keep in mind that we do not support embeddings or other advanced features. Your integration should focus on the chat completion endpoint for all text generation needs. This simplicity reduces the learning curve for new developers.

SDK Configuration and Parameters

When configuring your SDK, ensure you set the base URL to our service. Most OpenAI-compatible SDKs will work with minimal changes. You need to specify the model ID as 'uncensored' in your request parameters.

The API supports several parameters to control the output. You can adjust temperature for creativity, top_p for diversity, and stop sequences to halt generation. The seed parameter allows for reproducible results, which is useful for testing.

Function calling is supported, allowing you to define tools for your application. JSON mode is also available if you need structured output. These features are standard in modern LLM APIs and are fully functional with our service.

Streaming is supported over Server-Sent Events (SSE). This allows you to receive responses in real-time, which improves the user experience for chat applications. The usage information is included in the last chunk of the stream.

Pricing and Payment Methods

Our pricing is straightforward and based on token usage. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. There are no monthly fees or subscriptions, so you only pay for what you use.

Errors and refusals are free, which means you do not pay for requests that fail or are blocked by content filters. This can help reduce costs for applications with high failure rates.

Top-ups are accepted via cryptocurrency only. You can use USDT on TRC20 or USDC on Base. The minimum top-up amount is $20, and the maximum is $500. You can top up any whole amount within this range.

Bonus credit is available for top-ups of $50 or more. The bonus ranges from 5% to 15%, depending on the amount. This bonus is added to your account immediately after the payment is confirmed.

When Our API Is NOT the Right Choice

Our API is designed for text generation only. If your application requires image generation, audio processing, or video creation, our service is not the right choice. We do not support these modalities.

Similarly, if you need embeddings for semantic search or document indexing, our API does not provide this feature. You would need to use a different service that specializes in embeddings.

Fine-tuning is also not available. If you need to train a model on your specific dataset, you will need to look for a provider that offers fine-tuning capabilities. Our model is fixed and cannot be customized.

Finally, if you require on-premises deployment for data privacy or latency reasons, our hosted service may not meet your needs. We are a cloud-based solution, and all data is processed on our servers.

Addressing Common Developer Questions

Developers often ask how to handle uncensored content in their applications. Our API allows for unrestricted text generation, including adult and controversial topics, as long as they are lawful. This is useful for creative writing and roleplay applications.

Another common question is about the quality of the model. Since we use a single open-weight model, the quality is consistent across all requests. The model is designed to be uncensored, so it does not refuse requests based on content type.

Users also inquire about the context window. Our API supports a context window of 100,000 tokens, which is sufficient for most long-form content generation tasks. This allows you to maintain context over long conversations.

Finally, developers often ask about the ease of integration. Our API is OpenAI-compatible, so you can use existing SDKs and tools with minimal changes. This makes it easy to switch from other providers or add our service to your stack.

Integration Checklist and Best Practices

Before integrating, ensure you have a valid API key. You can generate a key during signup via Google or email. The key is shown immediately after creation, so save it securely.

Test your integration with a simple request to the chat completion endpoint. Verify that the model ID is set to 'uncensored' and that the base URL is correct. This helps identify any configuration issues early.

Implement error handling for common status codes. A 401 error indicates an invalid key, while a 402 error means you have no credit. A 429 error indicates that you have hit the rate limit of 300 requests per minute.

Monitor your token usage to manage costs. Since pricing is based on token count, keeping track of your usage helps you stay within budget. You can top up credit as needed to continue using the service.

Frequently asked questions

How do I top up my account?

You can top up your account using USDT on TRC20 or USDC on Base. The minimum amount is $20, and the maximum is $500. Bonus credit is available for top-ups of $50 or more.

Does the API support image generation?

No, our API is designed for text generation only. It does not support image, audio, or video generation. You can use it for text-in and text-out workflows.

What is the context window size?

The context window is 100,000 tokens, which includes both the prompt and the completion. This allows for long conversations and detailed content generation.

Can I use the API for function calling?

Yes, our API supports function calling. You can define tools and use them in your requests to enhance the functionality of your application.