Skip to content
RSFlowHub
  1. Home
  2. APIs
  3. Categories
  4. Image Generation API
Image Generation API · 1 API

Developer Image Generation AI REST API

Text-to-image generation over REST, with hosted image links and per-image credit billing.

Processing Time
Varies by prompt
Output
Hosted image link
Formats
PNG, JPEG, WebP
POST /api/v1/ai/image-generation
{
    "prompt": "Flat illustration of a developer working at a laptop at night, purple and blue palette"
}
200 OK response.json
{
    "data": {
        "result": {
            "images": [
                {
                    "url": "https://rsflowhub.com/storage/generated/img_7c1e.png"
                }
            ]
        }
    }
}

Image Generation API: 1 API

120 credits per call. Each one has its own page with parameters, code and examples.

  • Live

    Image Generation

    Generate images from text prompts using advanced AI models.

    POST /api/v1/ai/image-generation
    120 credits Docs Try it
Definition

What are the Image Generation API?

The RSFlowHub Image Generation API turns a text prompt into an image with a single REST call. The response is a link to a hosted PNG, JPEG or WebP file (1K size), and each image returned is billed in credits. Image analysis, OCR and object detection are not part of this category.

APIs
1
Price
120 credits per call
Authentication
X-API-Key header
Format
JSON in, JSON out
Typical response
1 to 3 seconds
Fallback
Automatic, failed calls not charged

Quickstart

A real request to POST /api/v1/ai/image-generation. Every API in this category works the same way.

request.sh
curl -X POST "https://rsflowhub.com/api/v1/ai/image-generation" \
  -H "X-API-Key: rfh_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Flat illustration of a developer working at a laptop at night, purple and blue palette"}'
response.json
{
    "success": true,
    "request_id": "req_3f9a2c7e-5b1d-4e8a-9c2f-7d6e1a0b4c8d",
    "data": {
        "result": {
            "images": [
                {
                    "url": "https://rsflowhub.com/storage/generated/img_7c1e.png"
                }
            ]
        }
    },
    "meta": {
        "version": "v1",
        "timestamp": "2026-10-05T09:30:00Z"
    }
}

Why teams use Image Generation API

Text-to-Image in One Call

Send a prompt and get back a link to the generated image.

Hosted Output Links

Images are stored for a limited time and returned as a URL with its expiry.

Pay Per Image

You are billed in credits only for images actually returned; blocked prompts are not charged.

Use cases

Typical pipelines built with Image Generation API.

Blog and Marketing Illustrations

Create a header or social image from a short text description while publishing content.

  1. Post Draft
  2. Image Generation API
  3. Featured Image Link

Product and App Placeholders

Generate concept art or placeholder visuals for catalogs, apps and prototypes.

  1. Item Description
  2. Image Generation API
  3. Placeholder Image

RSFlowHub vs provider SDKs vs self-hosting

How the Image Generation API compare with calling a provider directly or running your own models.

TopicRSFlowHubProvider SDKSelf-hosted
Setup One REST call with your RSFlowHub keyProvider account, key and SDKGPU hosting and model setup
Output Delivery Hosted image link, not Base64 in the responseProvider specific (often Base64)Your own storage
Billing Credits per image actually returnedSeparate provider invoiceFixed GPU compute cost

Frequently asked questions

What image formats are returned?
PNG, JPEG or WebP, at 1K size, as a link to a hosted file.
How long do generated images stay available?
Images are kept for a limited number of days. The response includes an expires_at time, so download any image you want to keep.
How many credits does an image cost?
Each image returned costs 150 credits. Only images actually returned are billed.
Can the free plan generate images?
Image generation needs a paid plan or purchased top-up credits, and daily limits apply to protect the service.
Does this category include OCR or image analysis?
No. Today this category covers image generation only.

Other API categories

All categories

Build with Image Generation API

Free plan with 100 credits/month + 1,000 bonus credits when you sign in before 23 Nov. One key works for every API in every category.

RSFlowHub

Sign in to continue

You'll come straight back to this page.

Forgot password?

New to RSFlowHub? Create a free account