EN ▾
Get API key

API for Image Generation vs a Text LLM API: What to Use

Updated

If you need pixels out, this is the wrong API: it only reads and writes text. It is the right one for writing the prompts that an image generation API then renders.

A chat-bubble machine passing a ribbon of light to an empty canvas, showing text prompts feeding an image tool

Key points

  • No image output, no image input, no embeddings, no fine-tuning.
  • Pair it with an image API: the LLM writes and expands prompts, the image API renders them.
  • Calls are OpenAI-compatible, model ID uncensored, 100,000-token context.
  • 5,000 prompt expansions of 200 tokens in and 150 out cost $0.525.

Straight answer for anyone comparing image APIs

Let me save you a sign-up if you are only comparing options. An api for image generation takes a text prompt and returns an image file. The API on this site takes a text prompt and returns text. It has one model, uncensored, and that model does not draw, paint, upscale or edit pictures. There is no endpoint for images at all. The two methods are POST /v1/chat/completions and GET /v1/models.

So why would an image person land here? Because image models are picky about prompts, and writing good ones in volume is a text task. A language model can turn "a rainy street" into forty varied, detailed prompts with lighting, lens, mood and composition filled in. If your image provider has filters on the prompt side that you cannot control, you will still need to follow their rules for the images themselves. What you gain here is a writing assistant that does not refuse to write for lawful adult fiction and does not stop mid-batch.

The rest of this page shows how the two pieces fit, what it costs, and when you should skip us entirely.

Text LLM API versus image generation API

The comparison is short, because the products do different jobs.

This text LLM APIAn image generation API
InputChat messages (text)A text prompt, sometimes plus a reference image
OutputText, JSON, tool callsImage files
Typical jobWrite, expand, rewrite, classify, planRender, edit, upscale
Billing unitTokens: $0.15 per 1M in, $0.50 per 1M outSet by the provider, check their current pricing
StreamingYes, SSEDepends on the provider
Client libraryAny OpenAI SDKProvider SDK or plain HTTP

If your whole goal is a picture, go to an image provider and read their terms. If your goal is a pipeline that needs a lot of well-written prompts, captions, story beats or product descriptions around those pictures, a text API is the missing half. The page on video pipelines describes the same pattern for moving images.

Where the text model slots into an image workflow

Four jobs come up again and again.

  1. Prompt expansion. Take a short idea from a user and return a full prompt with style, framing and lighting. Image models respond to detail, and users rarely type it.
  2. Variation. Ask for ten different takes on one concept so a batch does not produce ten near-identical images.
  3. Negative prompts and parameters. Have the model output a JSON object with the prompt, a list of things to avoid and an aspect ratio, which your code maps onto the image provider's fields.
  4. Captions and alt text. After the image exists, you describe it in words (yourself, or with a captioning tool) and the model writes the caption, the title or the story paragraph that goes beside it.

None of these need the model to see an image. That is the point: the model never touches the pixels, so there is no image upload, no extra cost and no mismatch of formats.

Working example: expand an idea into a render-ready prompt

Here is a Node script that asks for JSON and hands the result to a function you write for your image provider. The base URL and model ID are the only things specific to this API.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.uncensoredvideogenerator.cc/v1",
  apiKey: process.env.API_KEY,
});

async function expand(idea) {
  const res = await client.chat.completions.create({
    model: "uncensored",
    response_format: { type: "json_object" },
    temperature: 0.9,
    messages: [
      {
        role: "system",
        content:
          "You write prompts for image generators. Reply with JSON: " +
          '{"prompt": string, "negative": string, "aspect": "1:1" | "3:2" | "2:3"}. ' +
          "Include subject, setting, lighting, lens and mood in the prompt.",
      },
      { role: "user", content: idea },
    ],
  });
  return JSON.parse(res.choices[0].message.content);
}

const job = await expand("a lone lighthouse keeper's cabin in a storm");
console.log(job.prompt);
// await renderWithYourImageApi(job);  // your provider's SDK goes here

If you prefer to test from a shell first, the equivalent request is:

curl https://api.uncensoredvideogenerator.cc/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [
      {"role": "user", "content": "Give me 5 prompts for a moody noir street scene, one per line."}
    ]
  }'

The response comes back in the standard OpenAI shape, with usage counts you can log, and with the headers X-Request-Id and X-Balance-USD on every reply so you can watch your remaining credit. The docs list the rest.

Writing the system prompt for prompt expansion

The quality of expanded prompts depends almost entirely on the system message, so it is worth ten minutes. Four rules carry most of the weight.

  • Fix the output shape. State the exact keys, the allowed values for aspect ratio and the maximum prompt length your image provider accepts. Check that provider's documentation for its limit, since this API does not know it.
  • Give a style spine. If every image in a set should look related, put the shared style in the system message once ("soft film grain, muted palette, 35mm lens") and let the user message supply only the subject. The model will carry the style into each prompt.
  • Ask for variety on purpose. When you request several prompts for one idea, say that each must differ in camera angle, time of day or mood. Otherwise the batch repeats itself.
  • Forbid filler. Tell the model not to add commentary before or after the JSON. JSON mode already helps, and one line in the prompt closes the gap.

Run the same idea five times at a temperature of 0.9 and read the five results side by side. If they feel too alike, raise the temperature or sharpen the variety rule. If they drift off the idea, lower the temperature. Once the spread looks right, keep that value in your config file so the whole team uses it.

You can also run the loop in reverse. Describe a finished image in a sentence, and ask the model for a title, a caption and three tags for the page it will sit on. This is the same text job pointed at the other end of the pipeline, and it costs about as little.

What it costs to feed an image pipeline

Prompt expansion is a small job in tokens. Take a request with 200 input tokens (system message plus the user's idea) and a 150-token reply.

  • Per request: 200 x $0.15 / 1M = $0.00003 in, and 150 x $0.50 / 1M = $0.000075 out, which is $0.000105 in total.
  • For 5,000 requests: 1,000,000 input tokens cost $0.15, and 750,000 output tokens cost $0.375, so the total is $0.15 + $0.375 = $0.525.

The point is the scale: thousands of prompts for around fifty cents, a small part of what the image renders will cost. Failed or refused requests are not charged, there is no subscription and credit never expires. See the pricing page for the top-up amounts and bonuses.

When you should not use this API

Skip it if you need any of the following:

  • An endpoint that returns images, video or audio. None exists here.
  • Embeddings for search. The service has no embeddings endpoint.
  • Fine-tuning on your own data. Not offered.
  • Vision input, such as asking questions about an uploaded photo.

Also be aware that the text model is one open-weight model run by an independent provider. It is not the official API of any major vendor, and it makes no claim to match a specific frontier model on any benchmark. For writing prompts and fiction it is a solid fit. For anything where you need a named vendor's guarantees, buy from that vendor.

One rule is fixed: sexual content involving minors is never produced, and requests like that are refused. Everything else is limited to lawful adult use.

Limits and how to start

A full key allows 8 concurrent requests and 300 per minute; a trial key allows 2 concurrent and 60 per minute. When you pass a limit the API answers HTTP 429 with rate_limited or concurrency. Overload also gives a 429, with Retry-After: 5. In a prompt-expansion queue, cap your worker count at 8 and sleep for the header value before retrying.

The context window is 100,000 tokens including the reply, and max_tokens is optional. Streaming over SSE, tool calling and JSON mode all work. Prompts are not used for training.

To begin, create an account and key. Sign-up uses Google or email and password, and new users can claim $0.50 of trial credit with one click, valid for 7 days. Top-ups run from $20 to $500 in crypto (USDT on TRC20 or USDC on Base) with a bonus of 5% from $50, 10% from $100 and 15% from $200.

Questions and answers

Does this site offer an image generation API?

No. It is a text-only chat completions API with one model, uncensored. It writes prompts and captions but does not create or read images.

Can I use it together with an image generator?

Yes. Have the model write or expand prompts as JSON, then send those prompts to the image provider of your choice with your own code.

Does it support embeddings or fine-tuning?

No. The only methods are POST /v1/chat/completions and GET /v1/models.

How much does a prompt cost?

A 200-token request with a 150-token reply costs $0.000105, so 5,000 of them cost $0.525 at $0.15 and $0.50 per 1M tokens.

Your key is one form away

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

Get API key