Grok API for Images: What a Text API Can Do
If you searched for a grok api for images, the short answer for this site is that it does not generate images. It is an OpenAI-compatible text API, and this article explains where that fits and where it does not.

Key points
- This service is text only: no image, audio or video generation and no embeddings.
- It is not the official xAI API. It runs one open-weight model, ID uncensored, behind an OpenAI-compatible endpoint.
- Text models still help image pipelines by writing, expanding and structuring prompts.
- For actual pixels, use a dedicated image service and check its current docs and pricing.
The short answer
People type grok api for images into a search box when they want to send a prompt to xAI and get a picture back. That is a real product category, and xAI has documented image features on its own platform. Check xAI's current documentation for model names, limits and prices, because those change and this site does not speak for them.
This site is something different. uncensoredgrok.top is an independent, hosted text API. It is not the official API of xAI, and it is not a router that forwards your calls to Grok. One open-weight model, tuned to answer without content refusals for lawful adult use, sits behind an OpenAI-compatible endpoint. You send text, you get text. There is no image generation, no audio, no video, no embeddings and no fine-tuning.
If you need pixels, you are in the wrong place and it is better to know that in the first minute. If you need a text model that helps you prepare for an image step, keep reading, because that is a common and useful job.
What an image API and a text API actually return
The two kinds of service look alike from the outside, since both accept an HTTP request with a prompt. The difference is in the response.
| Question | Image API | This text API |
|---|---|---|
| Input | A prompt, often with size and style options | A list of chat messages |
| Output | An image file or a link to one | Text in choices[0].message.content |
| Endpoint used here | Not available | POST /v1/chat/completions and GET /v1/models |
| Billing unit | Check the provider | Tokens: $0.15 per 1M input, $0.50 per 1M output |
A text model can describe an image in words, write a prompt for one, or turn a messy idea into a structured list of scene details. It cannot draw. If a library you use has a method called images.generate, pointing it at this base URL will not work, because that route is not offered here.
Where a text model helps an image workflow
Many image projects spend more effort on the words than on the picture. Prompts that are vague, repetitive or badly structured produce vague, repetitive pictures. A text model is a cheap way to fix that part of the chain.
Prompt expansion
You give it a short idea such as a lighthouse at dusk and ask for three detailed variants covering lighting, lens, palette and composition. You then pass the variants to whichever image service you use.
Batch variation
If you need a hundred product scenes that do not look identical, ask for a hundred distinct scene descriptions with a fixed set of fields. JSON mode keeps the output machine readable.
Rules and cleanup
You can add a step that rewrites prompts into the style guide of your image provider, shortens them to its length limit, or splits one story into a numbered series of frames. Fiction and roleplay writers also use a text model to draft scene descriptions and character sheets before any illustration happens.
The no-refusal tuning matters here for lawful adult fiction and mature themes in writing. It does not change what the endpoint is. It stays a text endpoint, and it has one hard limit: no sexual content involving minors.
A working example: turning ideas into image prompts
This script calls the API with the OpenAI Python SDK and asks for JSON. The base URL and the model ID uncensored are the only changes from a normal OpenAI setup. Get your key on the API key page first.
from openai import OpenAI
import json
client = OpenAI(
base_url="https://api.uncensoredgrok.top/v1",
api_key="YOUR_KEY",
)
idea = "an abandoned greenhouse overgrown with glowing moss"
resp = client.chat.completions.create(
model="uncensored",
response_format={"type": "json_object"},
temperature=0.9,
messages=[
{"role": "system", "content": (
"You write prompts for an image generator. "
"Reply with a JSON object: {\"prompts\": [..3 strings..]}. "
"Each prompt covers subject, lighting, camera, palette."
)},
{"role": "user", "content": idea},
],
)
data = json.loads(resp.choices[0].message.content)
for p in data["prompts"]:
print("-", p)The strings in prompts go to your image service of choice. This API ends at the text. If you later want to see how streaming, tools or limits work, the quickstart docs list every supported parameter.
The same call from a terminal:
curl https://api.uncensoredgrok.top/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [
{"role": "user", "content": "Give me 3 image prompts for a foggy harbor at dawn."}
]
}'What it costs to prepare prompts at scale
Text is cheap compared with most image steps, and the arithmetic is simple. Say you generate 200 prompts. Each request sends about 300 input tokens (system message plus the idea) and returns about 150 output tokens.
- Input: 200 x 300 = 60,000 tokens, and 60,000 / 1,000,000 x $0.15 = $0.009
- Output: 200 x 150 = 30,000 tokens, and 30,000 / 1,000,000 x $0.50 = $0.015
- Total: $0.009 + $0.015 = $0.024
That is under three cents for the whole batch. Failed or refused requests are not charged. Credit is prepaid, never expires and there is no subscription. The pricing page has the top-up tiers: any whole amount from $20 to $500, with +5% from $50, +10% from $100 and +15% from $200. Top-ups on this site are crypto only, in USDT on TRC20 or USDC on Base.
New accounts can claim $0.50 of trial credit with one click on the API key page after sign-up. It is valid for 7 days, needs no card, and is limited to one per person. With the numbers above, that covers roughly twenty such batches of 200 prompts, so you can test the whole pipeline before paying.
Picking the right tool for each job
Be honest with yourself about what you need. Here is a plain way to decide.
- You need finished pictures. Use an image generation service. Compare model quality, content rules, price per image and licensing terms on their own sites, and check their current pricing.
- You need better prompts, captions written from your own descriptions, story beats or structured scene lists. A text API like this one fits, and it costs very little per call.
- You need both. Chain them. Text first, then image. Keep the two keys and two bills separate so you can swap either side without touching the other.
One warning about drop-in clients. Some SDKs and frameworks try image-related routes, vision message formats or embedding calls by default. This service documents none of those. If you hit an error from one of them, it is the feature being absent, not a bad key. Keep requests to chat completions with plain text messages.
If you came from a Grok-compatible setup and want text only, the other article on this site covers a related topic: the uncensored DeepSeek API note. Remember that neither name implies an official link to that vendor.
Limits you will meet while building the text step
A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 concurrent and 60 per minute. The maximum request body is 8 MB, and the context window is 100,000 tokens covering prompt plus completion. When you exceed a limit you get HTTP 429 with the error code rate_limited (too many per minute) or concurrency (too many at once). On temporary overload you also get 429, with a Retry-After: 5 header.
For a batch of prompts, run a small worker pool of up to 8 and back off when you see 429. A streamed request keeps its concurrency slot until the stream ends, so non-streamed calls are simpler for batch jobs. Response headers include X-Request-Id, X-Balance-USD and the rate-limit values, which helps you track spending as the job runs. Prompts are not used for training.
More guides
Questions and answers
Does this site have an image generation API?
No. It offers text chat completions only, with the model ID uncensored. There is no image, audio or video generation and no embeddings.
Is this the official xAI Grok API?
No. It is an independent service running one open-weight model behind an OpenAI-compatible endpoint. It is not affiliated with xAI and does not route to Grok.
Can I send an image to the model and get a description back?
The service is documented as text only, so plan on plain text messages. Describe the image in words yourself, or use a vision-capable tool elsewhere for that step.
How can I pay for the text API?
With prepaid credit topped up in crypto, USDT on TRC20 or USDC on Base, from $20 to $500. New users can also claim $0.50 of trial credit with no payment.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.
Get API key