EN ▾

Uncensored text API for AI image pipelines

Get API key

Integrating Uncensored AI Image Description API

Developers often struggle to find reliable APIs for generating text descriptions from images. This guide outlines the integration steps for an uncensored text-based solution that handles complex visual inputs.

Developer workspace with monitor showing code and abstract image analysis

Understanding the API Architecture

The foundation of this integration relies on a hosted service that mimics the structure of major industry standards. By using an OpenAI-compatible interface, developers can use existing client libraries and familiar request patterns. This approach reduces the learning curve significantly, allowing teams to focus on logic rather than protocol translation. The base URL for all requests is https://api.uncensoredaiimage.cc/v1. This single endpoint handles all interactions, from model listing to chat completions.

It is important to note that this service is text-in, text-out. The API does not process image files directly in the request body. Instead, it expects a text representation of the image, such as a detailed prompt or a base64-encoded string, depending on the client implementation. The model identifier to be used in all requests is simply "uncensored". This identifier ensures that the correct underlying model is invoked for processing the textual input derived from visual data.

The architecture supports multiple response formats, including streaming over Server-Sent Events (SSE). This feature is particularly useful for applications that require real-time feedback or progressive loading of text. Developers can also utilize JSON mode to ensure that the output is structured and easily parsable by downstream systems. This flexibility makes the API suitable for a wide range of use cases, from automated tagging systems to creative writing assistants.

Unlike many competitors, this service does not offer embeddings, image generation, audio processing, or OCR. It is strictly a text generation tool. Therefore, integration efforts should focus on how to best format the input text to represent the image accurately. The absence of other modalities means that the API is lightweight and focused on delivering high-quality text responses without the overhead of handling multimedia data streams.

Authentication and Key Management

Access to the API is secured through an API key that is generated upon account creation. The signup process is straightforward, allowing users to continue with Google or create an account with an email and password. Once the account is created, the API key is displayed immediately, enabling developers to begin integration without delay. This key must be included in the Authorization header of every request to authenticate the user.

The service supports three primary error codes that developers should handle gracefully. A 401 status code indicates an invalid or missing key, while a 402 status code signals that the account has no remaining credit. A 429 status code denotes that the rate limit has been exceeded. Handling these errors correctly ensures a smooth user experience and prevents unexpected interruptions in the application flow.

New accounts receive $0.50 of trial credit, which allows developers to test the integration without immediate financial commitment. This trial credit is available without the need for a credit card, making it easy to experiment with the API. The key is shown immediately after signup, so there is no need to wait for email verification or manual approval. This immediate access accelerates the development cycle and reduces time-to-market for new features.

The API key is tied to a specific account and can be used across multiple projects. However, it is important to keep the key secure and avoid exposing it in client-side code. The service does not offer key rotation or advanced management features, so developers should implement their own security measures if necessary. The key remains valid until the account is deleted or the key is revoked by the user.

Request Configuration and Parameters

When sending requests to the API, developers can configure several parameters to fine-tune the output. The most common parameters include temperature, top_p, stop sequences, and seed. The temperature parameter controls the randomness of the output, with higher values producing more creative and varied responses. The top_p parameter limits the vocabulary considered by the model, ensuring that the output remains coherent and relevant.

The stop parameter allows developers to specify a sequence of characters that will terminate the response. This is useful for controlling the length of the output or for stopping the response at a specific point. The seed parameter enables deterministic outputs, which is helpful for testing and debugging. By setting a specific seed, developers can reproduce the same output multiple times, ensuring consistency in their tests.

Function calling is also supported, allowing the API to return structured data in the form of function calls. This feature is particularly useful for applications that need to interact with other systems or databases. The API can return a list of functions to be called, along with the arguments required for each function. This enables developers to build complex workflows that integrate smoothly with other tools.

The context window for the API is 100,000 tokens, which includes both the input prompt and the output completion. This large context window allows for the processing of long documents or detailed image descriptions. Developers should be mindful of the token usage, as it directly impacts the cost of the API. The API charges based on the number of tokens used, so optimizing the input and output can help reduce costs.

Pricing and Credit Management

The pricing model for this API is based on token usage, with a clear and transparent structure. The cost is $0.15 per one million input tokens and $0.50 per one million output tokens. This pricing model ensures that developers only pay for the resources they actually use, without any hidden fees or subscription charges. The prepaid credit is charged based on real token usage, and errors or refusals are free, meaning that developers do not pay for failed requests.

Top-ups can be made using cryptocurrency, specifically USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. For top-ups of $50 or more, users receive a bonus credit ranging from 5% to 15%. This bonus credit provides additional value for larger purchases and encourages developers to invest more in the service. The credit never expires, so developers can use it at their own pace.

It is important to note that the service does not accept credit cards, PayPal, or bank transfers. All payments must be made using the specified cryptocurrency options. This restriction may be a consideration for some developers who prefer traditional payment methods. However, the use of cryptocurrency allows for faster and more secure transactions, especially for international users.

The API does not offer a free unlimited tier, so developers should monitor their usage to avoid unexpected charges. The trial credit of $0.50 is a good starting point for testing, but developers should plan their budget carefully for production use. The absence of a monthly fee means that there is no recurring cost if the API is not used, which can be beneficial for projects with variable usage patterns.

Rate Limits and Performance

The API enforces a rate limit of 300 requests per minute per key. This limit is designed to prevent abuse and ensure fair usage among all users. Developers should implement retry logic with exponential backoff to handle rate limit errors gracefully. When a 429 status code is received, the application should wait for a short period before retrying the request. This approach helps to avoid overwhelming the server and ensures that the application remains responsive.

The performance of the API is generally consistent, with responses being returned within a reasonable timeframe. However, the actual response time can vary depending on the complexity of the input and the load on the server. Developers should monitor the response times and adjust their expectations accordingly. The API does not guarantee a specific response time, so it is important to design the application to handle variability.

Streaming responses can be used to improve the perceived performance of the application. By receiving the output in chunks, users can see the response being generated in real-time, which can enhance the user experience. This is particularly useful for long outputs or for applications that require immediate feedback. The streaming feature is supported over Server-Sent Events (SSE), which is a standard protocol for server-push updates.

Developers should also consider the impact of the rate limit on their application architecture. If the application requires a high volume of requests, it may be necessary to distribute the load across multiple API keys or to implement a queueing system. The rate limit is per key, so using multiple keys can effectively increase the total throughput. However, developers should be mindful of the cost implications of using multiple keys.

When This API Is Not the Right Choice

While this API is powerful for text generation, it is not suitable for all use cases. If your application requires direct image processing, such as object detection or image classification, this API may not be the best fit. The API expects text input, so you will need to convert your images to text before sending them to the API. This additional step may add complexity to your workflow and could impact performance.

Similarly, if you need to generate images from text, this API will not provide that functionality. The service is strictly text-in, text-out, so it cannot create new images. For applications that require both text and image generation, you may need to combine this API with an image generation service. This approach allows you to use the strengths of both services.

Another limitation is the lack of support for embeddings. If your application relies on semantic search or vector similarity, this API will not provide the embeddings needed for those tasks. You would need to use a separate embedding service to generate embeddings from the text output of this API. This additional step may increase the complexity of your integration.

Finally, if you require a service with a guaranteed uptime or specific certifications like SOC2 or HIPAA, this API may not meet your needs. The service does not claim any SLA percentages or certifications, so it may not be suitable for enterprise applications with strict compliance requirements. Developers should evaluate their specific needs and compare them against the capabilities of this API before deciding to integrate it.

Addressing Community Questions

Developers in online communities often ask about the availability of free or accurate image description tools. Many users have expressed frustration with the disappearance of reliable free generators, such as the one previously available on Perchance. They are looking for alternatives that can provide high-quality descriptions without the need for complex setups or paid subscriptions. This API offers a reliable solution for those seeking a reliable text-based description service.

Another common question relates to the accuracy of image descriptions. Users want to know if the API can handle complex images and provide detailed, accurate descriptions. The API uses an uncensored model that can handle a wide range of topics, including adult and controversial content. This makes it suitable for applications that require unfiltered descriptions, such as content moderation or creative writing.

Users also inquire about the ease of integration. Many developers are looking for APIs that are easy to use and integrate into existing workflows. The OpenAI-compatible interface of this API makes it easy to integrate with existing client libraries and tools. Developers can use familiar methods and parameters, reducing the learning curve and accelerating the integration process.

Finally, users often ask about the cost-effectiveness of the API. The token-based pricing model is transparent and predictable, allowing developers to estimate costs accurately. The absence of subscription fees and the availability of trial credit make it an attractive option for developers who want to test the API before committing to a paid plan. The bonus credit for larger top-ups also provides additional value for developers who plan to use the API extensively.

Frequently asked questions

How do I get started with the API?

Sign up for an account using Google or email. Your API key will be displayed immediately, and you will receive $0.50 in trial credit to test the service.

What is the context window size?

The context window is 100,000 tokens, which includes both the input prompt and the output completion. This allows for processing of long documents or detailed descriptions.

Can I use the API for image generation?

No, the API is text-in, text-out. It generates text descriptions from text input, but it does not generate images. You would need a separate image generation service for that.

What payment methods are accepted?

The API accepts only cryptocurrency: USDT on the TRC20 network or USDC on the Base network. Credit cards, PayPal, and bank transfers are not supported.