EN ▾
Get API key

Gemini Alternative for Image Generation: Text Only Here

Short answer: this service cannot generate images. It is a text-only LLM API, and this page explains where that is a fit, where it is not, and how to split work across two providers.

Updated

Chat bubble sending a thread of light toward a blank canvas, showing text feeding a separate image tool

Key points

  • No image, audio or video generation is offered, only text in and text out.
  • A text-only endpoint can still write the prompts, captions, alt text and structured data that image tools need.
  • Splitting text and image work across two providers keeps each bill easy to read.
  • Pricing is $0.15 per 1M input tokens and $0.50 per 1M output tokens, with no per-image fees.

The direct answer

If you searched for a Gemini alternative for image generation, you need to know one thing before reading further: this service does not generate images. It does not edit them, describe them, or accept them as input either. It is a hosted, OpenAI-compatible API for one open-weight text model, and every request returns text.

That may sound like a dead end, but it is the honest place to start. A lot of pages promise everything and leave you to discover the gaps after you pay. Here the gaps are stated at the top: no image output, no audio, no video, no embeddings and no fine-tuning. If a picture is the thing you must have, pick a provider that sells image models and read its current pricing.

If, however, your real goal is a text model that does not refuse lawful adult content, and images were only one item on a wish list, keep reading. The text half of an image workflow is bigger than people expect.

Where a text-only model still helps an image project

Image pipelines are mostly text work wrapped around one expensive step. You write prompts, expand short ideas into detailed scene descriptions, pick styles, name files, write captions, and produce alt text. A text model handles all of that, and it is the cheaper part of the pipeline.

Prompt writing and expansion

Image models respond well to specific, structured prompts. You can ask the text model to turn a one-line idea into a detailed description with lighting, camera angle, palette and mood, then pass that string to whichever image tool you use. For fiction and roleplay projects, the model can also keep a character sheet consistent: hair, clothing, setting, so each prompt repeats the same details.

Metadata around the image

Once an image exists, someone has to describe it for the page. Titles, captions, tags and alt text are all short text jobs. With JSON mode you can return them as a clean object that your code inserts straight into a database.

Story and scene generation for a visual novel or companion app

Many adult fiction and companion apps pair generated pictures with a conversation. The conversation is where the content refusals tend to bite, and that is the part this API is tuned for. The pictures come from somewhere else. Remember the rule that applies everywhere: nothing involving minors, ever.

A working example: scene description to prompt JSON

Here is a small script that asks the model for a structured prompt you could hand to an image tool. It uses JSON mode, so the reply is a single JSON object.

import json
from openai import OpenAI

client = OpenAI(
    base_url="https://api.nsfwgemini.top/v1",
    api_key="YOUR_API_KEY",
)

idea = "A lighthouse keeper's daughter meets a stranger from the sea, evening, melancholy"

response = client.chat.completions.create(
    model="uncensored",
    response_format={"type": "json_object"},
    messages=[
        {
            "role": "system",
            "content": (
                "You write prompts for an external image tool. "
                "Reply with one JSON object with keys: prompt, negative_prompt, "
                "style, alt_text, caption."
            ),
        },
        {"role": "user", "content": idea},
    ],
    temperature=0.8,
)

data = json.loads(response.choices[0].message.content)
print(data["prompt"])
print(data["alt_text"])

The model returns text, and your code decides what to do with it. You can send data["prompt"] to the image provider of your choice, store the caption, and publish the alt text with the final picture. Always wrap json.loads in a try block, because a model can occasionally return something that does not parse.

The same call works from curl:

curl https://api.nsfwgemini.top/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "response_format": {"type": "json_object"},
    "messages": [
      {"role": "system", "content": "Reply with a JSON object with keys prompt and caption."},
      {"role": "user", "content": "A foggy harbour at dawn, painterly style"}
    ]
  }'

Why splitting providers can make sense

Putting text and images behind one bill looks convenient, but it hides what each part costs. When the two are separate, you see exactly how much the language work costs and how much the pictures cost, and you can swap either one without touching the other.

There is also a practical reason. An image model and a language model fail in different ways. A text request that is refused or fails is not charged here, and the failure is visible in the HTTP response. Keeping the two behind separate clients means a problem with picture generation never blocks your chat feature, and the reverse is also true.

TaskHandled hereNeeds another provider
Write or expand image promptsYesNo
Captions, tags, alt textYesNo
Chat, roleplay, story textYesNo
Produce the pictureNoYes
Describe an uploaded photoNoYes
Embeddings or search by similarityNoYes

What the text side costs

There is no per-image charge because there are no images. You pay $0.15 per 1M input tokens and $0.50 per 1M output tokens, from prepaid credit that never expires. Failed or refused requests are not charged.

Take a batch job that expands 5,000 short ideas into full image prompts. Each request sends 300 input tokens and receives 400 output tokens.

  • Input: 5,000 × 300 = 1,500,000 tokens, which is 1.5M × $0.15 = $0.225
  • Output: 5,000 × 400 = 2,000,000 tokens, which is 2M × $0.50 = $1.00
  • Total: $1.225

So a little over a dollar covers the text side of five thousand prompts. Your image provider's bill will be a separate and probably larger number, which is exactly why seeing it separately is useful. Top-ups start at $20, and the larger tiers add a bonus: 5% from $50, 10% from $100 and 15% from $200. See the pricing page for the full list.

Running a batch like this means running requests in parallel, and the limits apply. A full key allows 8 concurrent requests and 300 per minute. At 8 in flight, a quick script finishes in a reasonable time, but if you push harder you will see 429 responses with the code concurrency or rate_limited. Retry with a short delay.

A sketch of a two-provider setup

If you do pair this API with a separate image service, keep the boundary clean. Write one small function that turns an idea into a prompt, and let a second function, which you write for your image provider, consume it. The text function can then be tested without touching any image code.

from openai import OpenAI

text_client = OpenAI(
    base_url="https://api.nsfwgemini.top/v1",
    api_key="YOUR_API_KEY",
)

def expand_idea(idea: str) -> str:
    # returns a detailed scene description for any image tool
    r = text_client.chat.completions.create(
        model="uncensored",
        messages=[
            {"role": "system", "content": "Expand the idea into one detailed scene description. Reply with the description only."},
            {"role": "user", "content": idea},
        ],
        temperature=0.9,
        max_tokens=300,
    )
    return r.choices[0].message.content.strip()

scene = expand_idea("two travellers share a lantern on a mountain road")
print(scene)
# Pass `scene` to your own image provider here.

Nothing in this function knows about pictures, so you can replace the image side whenever you like. The cap of 300 on max_tokens is optional, but it keeps a batch job from producing more text than you intended.

Mistakes to avoid

The most common one is sending an image to the endpoint and expecting a description back. The service accepts text only, so build your pipeline with that in mind. A second mistake is assuming that a text model can guarantee a specific layout from an image tool. It can write a good prompt, but the picture still depends on the image model you choose.

The third is forgetting the content rule when you build a fiction or companion app that also shows pictures. Nothing involving minors is allowed, in text or in the prompts you pass on, and your image provider will have rules of its own. Check them before you design the flow. Finally, do not send secrets or personal data in prompts without thinking about it. The service states that prompts are not used for training, but the safest data is the data you never send.

Trying it without commitment

If the text-only scope fits, test it before topping up. After signing up with Google or with email and password, you can claim $0.50 of trial credit with one click on the API key page. It is valid for 7 days, one per person, and needs no payment details. The trial key allows 2 concurrent requests and 60 requests per minute, which is enough to run the examples on this page.

When you move to real use, payment on this site is crypto only: USDT on TRC20 or USDC on Base. The docs show every endpoint and parameter. Prompts are not used for training.

Questions and answers

Can this API create or edit pictures?

No. It is text only. There is no image, audio or video generation and no image input.

Can I use it to write prompts for another image tool?

Yes. The model can expand ideas into detailed prompts, captions and alt text, and JSON mode returns them as a structured object.

Is there a fee per image?

No, because no images are produced. You are billed per token at $0.15 per 1M input and $0.50 per 1M output.

Does it refuse adult fiction prompts?

The model is tuned to answer lawful adult requests without content refusals. Content involving minors is never allowed.

Your key is one form away

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

Get API key