EN ▾
Get API key

Uncensored AIHow to Use an AI Image API

OpenAI Chat Completions API Reference: What We Support

If you know the openai chat completions api reference, you already know most of this API. This page maps each familiar parameter to what the endpoint supports, and flags what to test or avoid.

Updated

Glass binder panels linked by cables to a glowing core, a map of supported API parameters

01Uncensored AI

Key points

  1. Text APIs handle prompt construction, script writing, and metadata extraction independently of image generation models.

  2. OpenAI-compatible endpoints allow direct integration using standard SDKs without custom protocol development.

  3. Streaming support enables real-time token delivery, essential for interactive prompt refinement workflows.

  4. Token pricing is usage-based, with specific limits on context windows and request rates.

Compatibility at a glance

AreaStatus
Base URLhttps://api.uncensoredaiimage.com/v1
AuthAuthorization: Bearer <key>
Model IDuncensored
Chat completionsSupported, POST /v1/chat/completions
ResponsesSupported, POST /v1/responses
Models listSupported, GET /v1/models
Embeddings, images, audio, fine-tuningNot available

The service is independent. It is not run by OpenAI or any other vendor, and it serves one open-weight model rather than routing across providers. Any official OpenAI SDK works once you change the base URL and key. The docs hold the canonical endpoint list.

Request parameters, one by one

These are the fields you will use most, compared with the reference you know.

ParameterNotes here
modelSend uncensored.
messagesRoles system, user, assistant and tool. Whole history is resent each call.
streamSSE streaming; usage is delivered at the end.
max_tokensOptional. A completion may use whatever is left of the 100,000-token window.
temperature, top_pPassed through.
stop, seedPassed through. Treat seed as best-effort repeatability.
frequency_penalty, presence_penaltyPassed through.
tools, tool_choiceSupported, including streamed tool_calls.
response_format{"type":"json_object"} for JSON mode.

Fields not listed above are not documented as supported. If your code uses one of them, such as multiple choices per request or log probabilities, test it on the trial before relying on it, and expect that it may be ignored or rejected.

A request that uses most of the surface

curl https://api.uncensoredaiimage.com/v1/chat/completions \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [
      {"role": "system", "content": "Reply in JSON only."},
      {"role": "user", "content": "Give two colors as {\"colors\": []}"}
    ],
    "temperature": 0.2,
    "top_p": 0.9,
    "seed": 42,
    "stop": ["###"],
    "response_format": {"type": "json_object"}
  }'

The response follows the standard shape: an id, choices with message and finish_reason, and a usage object with prompt and completion tokens. Cost per call is prompt tokens x $0.15 per 1M plus completion tokens x $0.50 per 1M.

Streaming, tools and JSON mode

Streaming. Set stream: true and read server-sent events. Pass stream_options with include_usage if your client needs token counts in the final chunk. A streamed request keeps its concurrency slot until the stream ends.

Tools. Send an array of function definitions. When the model decides to call one, the reply carries tool_calls, which arrive in pieces when streaming. Run the function and reply with a message of role: "tool" and the matching tool_call_id. tool_choice lets you force or forbid calls.

JSON mode. response_format: {"type":"json_object"} pushes the output to valid JSON. Include the word JSON and the expected keys in your prompt, and validate the parsed result anyway.

from openai import OpenAI

client = OpenAI(base_url="https://api.uncensoredaiimage.com/v1", api_key="YOUR_KEY")
r = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Weather in Oslo?"}],
    tools=[{"type": "function", "function": {
        "name": "get_weather",
        "parameters": {"type": "object", "properties": {"city": {"type": "string"}}},
    }}],
    tool_choice="auto",
)
print(r.choices[0].message.tool_calls)

The Responses and Models endpoints

POST /v1/responses accepts the newer request style for clients that have moved to it. Use it only if your library requires that format; for everything else, chat completions is the simplest path and the one with the most examples. As with any compatible service, run a short test of your exact payload, since newer features of that format may not all be present.

GET /v1/models returns the model list. Expect a single entry, uncensored. Many tools call it to populate a dropdown or to check that a key works, which makes it a handy health check that does not produce a completion.

curl https://api.uncensoredaiimage.com/v1/models -H "Authorization: Bearer $KEY"

Headers, balance and limits

Every response carries X-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency. Balance is also available from GET /v1/balance and, for OpenAI-style tooling, GET /v1/dashboard/billing/credit_grants.

Key typeConcurrentPer minute
Full8300
Trial260

The maximum body is 8 MB. Over a limit you get HTTP 429 with error code rate_limited or concurrency. A 429 with Retry-After: 5 signals temporary overload. Failed or refused requests are not charged.

Behaviours worth testing in your own code

A compatible endpoint matches the wire format, but a different model behaves differently inside it. Check these before shipping:

  • Tool arguments. The arguments field of a tool call is a JSON string. Parse it inside a try block, and send the error back to the model if parsing fails.
  • finish_reason. Handle stop, length and tool_calls. A length result means the completion hit the end of the window or your max_tokens.
  • Empty or short replies. Do not assume non-empty content when a tool call is returned; content may be null.
  • Prompt style. Prompts tuned for another model may need a clearer system message. Compare outputs on a fixed set of 20 or 30 prompts.
  • Context growth. The window is 100,000 tokens in total, so prompt plus a long reply must fit. Trim history before it gets close.

Log the X-Request-Id header for every failure. If a request behaves oddly, send that ID to the support page contact along with the payload shape and you will get a faster answer.

Billing, access and what is out of scope

Pay as you go: $0.15 per 1M input tokens, $0.50 per 1M output tokens, from prepaid credit that never expires. Top up any whole amount from $20 to $500; bonuses are +5% from $50, +10% from $100 and +15% from $200, paid in crypto (USDT on TRC20 or USDC on Base). See pricing for details.

New users get a $0.50 trial with one click on the API key page, valid for 7 days, no payment needed. For hands-on testing outside an SDK, the curl guide is a good start.

Out of scope: images, audio, video, embeddings and fine-tuning. The model is tuned to answer without content refusals for lawful adult use, and sexual content involving minors is not allowed. Prompts are not used for training.

02Uncensored AI

Questions and answers

Can I use the official OpenAI SDK?

Yes. Set the base URL to https://api.uncensoredaiimage.com/v1, pass your key as the API key and use the model ID uncensored.

Is the Responses API supported?

Yes, POST /v1/responses is available. Test your exact payload, because chat completions is the best-covered path.

Which models does /v1/models list?

It lists the single model, uncensored. This is not a router across vendors.

Does it support function calling?

Yes. Use tools and tool_choice, and return results as role tool messages. Streamed tool_calls are supported.

Uncensored AIuncensoredaiimage.com

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key