EN ▾

Uncensored OpenAI-compatible API

Uncensored ia: Troubleshooting Common Mistakes

Troubleshooting your uncensored ia API integration often boils down to three simple configuration errors: the base URL, the model ID, and how you handle streaming data. This guide resolves the most frequent technical blockers so you can stop guessing and start generating text reliably.

Last updated

Key highlights

  1. Always set your base URL to HTTPS://api.dolphinia.cc/v1, not the default OpenAI endpoint.
  2. The model ID must be explicitly set to 'uncensored' in your client configuration.
  3. Streaming responses require parsing the final chunk to retrieve token usage data accurately.
  4. JSON mode errors usually stem from missing the 'json_object' response format specification.

Why your uncensored ia model isn't responding

The primary reason your client receives no response is a configuration mismatch between your SDK settings and the API requirements. Most developers copy-paste standard OpenAI examples without adjusting the endpoint or model identifier. This results in a 404 or 400 error because the default client points to the wrong infrastructure. Verify that your HTTP client is actually reaching the server and receiving a valid JSON payload.

Check your network logs for timeout errors. If the connection succeeds but returns an empty body, the model ID is likely incorrect. The uncensored ia model requires specific parameters like temperature and top_p to function correctly. Without these, some clients may send malformed requests that the server rejects silently. Ensure your code handles HTTP errors gracefully instead of assuming success.

The base_url mistake: Using OpenAI instead of Dolphin

Using the default OpenAI base URL is the most common error when switching to this uncensored AI service. Your code sends requests to HTTPS://api.openai.com/v1 by default, which does not host our model. This causes a 'model not found' error because OpenAI does not recognize our specific endpoint identifiers.

Update your client configuration to point to HTTPS://api.dolphinia.cc/v1. This change directs your traffic to our servers where the uncensored LLM resides. The rest of the request structure remains identical to standard OpenAI calls. You do not need to rewrite your entire application logic. Just update the base URL and ensure your API key is valid for this domain.

Model ID errors: Sending 'gpt-4' instead of 'uncensored'

Even with the correct base URL, sending 'gpt-4' or 'gpt-3.5-turbo' will fail. The server expects the exact string 'uncensored' in the model field. This string identifies the specific open-weight model running on our infrastructure. It is not a generic placeholder but a precise identifier for the uncensored AI model you are accessing.

Check your code for hardcoded model names. Many libraries default to 'gpt-4' if the field is empty or misconfigured. Explicitly set the model ID to 'uncensored' in your initialization parameters. This ensures the request reaches the correct neural network. Verify the response includes the correct model name to confirm the switch was successful.

Handling JSON mode errors in uncensored ia

JSON mode errors typically occur when the response format is not explicitly defined in the request. The uncensored ia model can output structured data, but it requires the response_format parameter to be set correctly. Without this instruction, the model may return plain text or malformed JSON, breaking your parser.

Set response_format to {"type": "json_object"} in your API call. This forces the model to adhere to strict JSON syntax. Ensure your prompt clearly defines the expected schema. The uncensored LLM will then structure its output to match your requirements. This approach reduces parsing errors and improves reliability in automated pipelines.

Streaming issues: Missing the last chunk with usage data

Streaming responses deliver data in chunks, but token usage statistics often appear only in the final chunk. If you stop listening to the stream early, you lose this crucial billing information. This can lead to inaccurate cost tracking and unexpected overages.

Ensure your code processes every chunk until the stream closes. The last chunk contains the finish_reason and usage statistics. Do not discard it. This data is essential for verifying that the request completed successfully. Streaming via SSE allows real-time updates, but you must handle the end-of-stream event to capture the full picture.

Token limits: Understanding the 16k output cap

The uncensored ia API has a hard limit of 16,000 tokens per request for output. If your prompt is long, the remaining space for completion shrinks accordingly. Exceeding this limit results in a truncation error or a 400 Bad Request response.

Monitor your input token count closely. The total context window is 100,000 tokens, but the output cap is stricter. If you need longer responses, consider breaking your request into smaller chunks. This ensures you stay within the 16,000 token boundary. Always check the token usage in the response to plan your next steps accurately.

Authentication failures: Check your API key format

Authentication failures usually stem from an invalid or expired API key. Ensure your key is copied correctly without extra spaces or newlines. The uncensored ia service requires a valid key for every request passed in the Authorization header.

Verify the key format matches the expected string. If you regenerated your key, update your client configuration immediately. Invalid keys result in a 401 Unauthorized error. Check your account dashboard to confirm the key status. A simple typo can disrupt your entire pipeline, so double-check the value before deploying.

Rate limits: What 300 requests per minute looks like

The uncensored ia API allows 300 requests per minute per key. This limit applies to all endpoints combined. If you exceed this threshold, you receive a 429 Too Many Requests error. This is common in high-throughput applications or batch processing scenarios.

Implement exponential backoff in your retry logic. This prevents flooding the server when limits are hit. Monitor your request rate to stay within the boundary. The 8 concurrent request limit per key also applies, so avoid sending too many parallel streams. Adjust your concurrency settings to maintain steady throughput without triggering rate limits.

Billing surprises: Why errors are free but output costs money

Billing surprises often occur when users expect to pay for every token generated, including errors. In our uncensored ia service, errors and refusals are free. You only pay for successful output tokens. This means a failed request does not incur a charge.

However, output tokens are billed at $0.50 per 1M tokens. Input tokens cost $0.15 per 1M tokens. Ensure your code tracks usage accurately to avoid unexpected costs. The prepaid credit model charges by real token usage. Errors do not consume credit, but valid output does. Monitor your balance regularly to stay within budget.

Common questions

What is the base URL for the uncensored ia API?

The base URL is HTTPS://api.dolphinia.cc/v1. You must update your client configuration to point to this endpoint instead of the default OpenAI URL. This ensures your requests reach the correct server hosting the uncensored model.

How do I fix JSON mode errors in uncensored ia?

Set the response_format parameter to {"type": "json_object"} in your API request. This instructs the model to output valid JSON. Without this setting, the model may return plain text, causing parsing errors in your application.

What happens if I exceed the 16k output token limit?

Exceeding the 16,000 token output limit results in a 400 Bad Request error. The server rejects the request because it cannot generate more tokens than allowed. Ensure your prompt leaves enough room for the required output length to avoid this error.

Are errors charged in the uncensored ia billing?

No, errors and refusals are free. You only pay for successful output tokens. Input tokens are billed at $0.15 per 1M, and output tokens at $0.50 per 1M. This ensures you only pay for useful results.

Get your API key instantly

Sign up, grab the key, update the base URL. Simple setup.

Try with trial creditView documentation