EN ▾
Get your key

Integrating Our Text API: A Developer Checklist

Connecting to our uncensored text API is straightforward for any developer familiar with standard chat interfaces. This guide walks you through the essential steps, from authentication to handling responses, ensuring you can start sending and receiving text data without unnecessary complexity. We focus on the specific mechanics of our service, helping you avoid common integration errors.

Developer workspace with laptop showing API code and digital tokens representing uncensored text generation

Understanding the API Structure

Our API is designed to be compatible with the standard OpenAI chat completions interface. This means you can use existing SDKs and libraries with minimal adjustments. The base URL for all requests is https://api.apiclaudecheap.com/v1. You will interact with three main endpoints: POST /v1/chat/completions for generating text, POST /v1/responses for newer response formats, and GET /v1/models to verify available models.

The core model ID you must send in your requests is "uncensored". This model does not refuse lawful adult, fictional, security-research, or controversial topics. It provides text in and text out, making it ideal for applications where standard content filters might interfere with your workflow. Keep in mind that this is a text-only service; there are no embeddings, image generation, audio processing, or video capabilities.

When integrating, ensure your client library is configured to handle the specific endpoint structure. The API supports streaming over Server-Sent Events (SSE), which allows you to receive tokens as they are generated. This is useful for real-time applications where latency matters. The usage information is included in the last chunk of the stream, so you need to handle the final event to get the token count for billing purposes.

It is important to note that our service is independent. We do not claim to be an official partner of any major vendor. When discussing compatibility, we refer to the interface standard. For details on specific vendor features or pricing changes, you should check that vendor's own documentation. Our focus is on providing a reliable, uncensored text endpoint with transparent pricing.

Authentication and Access Keys

Access to our API is controlled via API keys. You can sign up using Google or by creating an account with an email and password. Upon signup, your API key is shown immediately, allowing you to start testing right away. This key is unique to your account and should be kept secure. If you lose access to your account, you may need to retrieve the key from your dashboard.

When making requests, include your API key in the Authorization header. The standard format is Bearer followed by your key. If the key is invalid, you will receive a 401 error. This indicates that the key is either incorrect or has been revoked. Make sure to check your account for the correct key if you encounter this error.

Our API does not require a credit card or PayPal account for access. You can start with a trial credit of $0.50, which requires no payment method. This allows you to test the API thoroughly before committing to a purchase. The trial credit is sufficient for most basic integration tests and small-scale experiments.

Remember that our API is distinct from other services. While you might be familiar with keys from other providers, our system is independent. We do not share keys or accounts with other companies. Always use the key provided by our service for requests to our endpoints. Confusing keys from different providers is a common mistake that leads to authentication errors.

Pricing and Payment Methods

Our pricing model is simple and transparent. You pay $0.15 per 1 million input tokens and $0.50 per 1 million output tokens. Credit is charged based on real token usage, meaning you only pay for what you use. Errors and refusals are free, so you do not pay for failed requests or content that is filtered out. There are no monthly fees or subscriptions, giving you flexibility in how you budget for your projects.

Payments are accepted only in cryptocurrency. You can top up your account with USDT on the TRC20 network or USDC on the Base network. The minimum top-up amount is $20, and the maximum is $500. If you top up from $50 or more, you receive bonus credit ranging from 5% to 15%. This bonus credit adds value to your account and reduces the effective cost per token.

Credit never expires, so you can top up when prices are favorable or when you anticipate heavy usage. There is no need to worry about losing your funds if you pause development. The prepaid credit sits in your account until you are ready to use it. This is particularly useful for indie developers who may have irregular usage patterns.

Since we do not accept cards or bank transfers, ensure your wallet is set up correctly before attempting a top-up. The process is straightforward, but you must use the correct network for your chosen currency. For example, sending USDT on the Ethereum network to a TRC20 address can result in lost funds. Always double-check the network before sending.

Request Parameters and Configuration

Our API supports a range of parameters to customize your text generation. You can set the temperature to control randomness, with higher values producing more creative outputs. The top_p parameter allows you to control the nucleus sampling, which is useful for balancing coherence and diversity. You can also specify stop sequences to halt generation at specific points, which is helpful for structured outputs.

For more precise control, you can use the seed parameter to ensure reproducible results. This is useful for debugging and testing, as it allows you to get the same output for the same input. The penalties parameter lets you adjust the frequency and presence penalties, which can help reduce repetition and encourage diverse vocabulary. These parameters are standard in the OpenAI-compatible interface, so you can use familiar tools to configure them.

JSON mode is available if you need structured output. This ensures that the model returns valid JSON, which is essential for applications that parse the response programmatically. You can enable this mode by setting the appropriate parameter in your request. The API will then format the output to match the expected JSON schema.

When configuring your requests, keep the context window limit in mind. The model supports a context window of 100,000 tokens, which includes both the prompt and the completion. This is a large window, allowing for complex prompts and long conversations. However, be mindful of the token count to avoid exceeding the limit, which can result in errors or truncated responses.

Handling Responses and Errors

When you send a request, the API returns a response containing the generated text. If you are using streaming, you will receive multiple chunks of text as they are generated. The final chunk includes the usage information, which tells you how many tokens were consumed. This is important for tracking your credit balance and understanding your costs.

Errors are handled with standard HTTP status codes. A 401 error indicates an invalid key, which you should check in your account. A 402 error means you have no credit left, and you will need to top up your account to continue. A 429 error indicates that you have exceeded the rate limit of 300 requests per minute per key. If you encounter this, you should slow down your requests or implement exponential backoff in your code.

It is important to handle errors gracefully in your application. If a request fails, do not assume the text was generated correctly. Check the status code and the error message to determine the cause. For example, a 429 error might indicate that you need to implement a retry mechanism with delays. This ensures that your application remains responsive even under high load.

Our API does not guarantee uptime or speed, so it is good practice to implement fallback mechanisms. If your primary API key fails, you might want to have a secondary key ready. However, remember that our service is independent, and we do not share keys with other providers. Always use the keys provided by our service for requests to our endpoints.

When Our API Is Not the Right Choice

While our API is powerful for text generation, it is not suitable for every use case. If you need image generation, audio processing, or video creation, our API will not meet your needs. We focus solely on text, so applications requiring multimedia output should look elsewhere. Similarly, if you need embeddings for semantic search, our API does not provide this feature.

Our API is also not ideal for fine-tuning models. If you need to train a model on your specific dataset, you will need a different service. We provide a pre-trained model that does not support fine-tuning. This is a trade-off for the uncensored nature of the model and the simplicity of the interface.

Additionally, if you require high availability with guaranteed SLAs, our service may not be the best fit. We do not claim specific SLA percentages or certifications like SOC2 or HIPAA. For enterprise applications with strict compliance requirements, you might need a more reliable solution. Our API is designed for developers and indie builders who prioritize flexibility and cost over enterprise-grade guarantees.

Finally, if you need model routing to switch between different models dynamically, our API does not support this. We offer a single uncensored model. If you need to experiment with multiple models, you will need to manage the routing yourself or use a different service. Our API is best suited for applications that require a consistent, uncensored text output without the complexity of model management.

Addressing Common Developer Questions

Developers often ask about the legitimacy of cheap API keys and how to obtain them. Many users are looking for affordable access to powerful models without the high costs associated with major providers. Our service addresses this by offering prepaid credit with no monthly fees, allowing you to pay only for what you use. This model is popular among developers who want to experiment without long-term commitments.

Another common question is whether the keys are stolen or legitimate. Our keys are generated for each account and are tied to your specific usage. Unlike some marketplaces where keys might be shared or resold, our keys are unique to your account. This ensures that you have exclusive access to your credit and usage history. You can sign up with Google or email to get a key immediately.

Users also inquire about the stability of the service and the quality of the model. The uncensored model is designed to handle a wide range of topics without unnecessary refusals. This makes it suitable for creative writing, security research, and other applications where standard filters might interfere. The model is hosted and maintained by our team, ensuring consistent performance.

Finally, developers often ask about the integration process. Our API is compatible with standard tools, making it easy to integrate into existing projects. You can use the same SDKs and libraries you are already familiar with. The key is to use the correct endpoint and parameters. By following our checklist, you can ensure a smooth integration and start generating text quickly.

Frequently asked questions

How do I get an API key?

You can sign up with Google or an email and password. Your API key is shown immediately after signup, allowing you to start testing right away.

What payment methods are accepted?

We accept only crypto: USDT on TRC20 or USDC on Base. The minimum top-up is $20, and the maximum is $500.

Does the API support image generation?

No, our API is text-only. It does not support embeddings, images, audio, video, or OCR. You can only send and receive text.

What happens if I run out of credit?

You will receive a 402 error. You can top up your account with crypto to continue using the API. Errors and refusals are free.