Image Generation
Generate images from text prompts using advanced AI models.
/api/v1/ai/image-generation
Text-to-image generation over REST, with hosted image links and per-image credit billing.
{
"prompt": "Flat illustration of a developer working at a laptop at night, purple and blue palette"
}
{
"data": {
"result": {
"images": [
{
"url": "https://rsflowhub.com/storage/generated/img_7c1e.png"
}
]
}
}
}
120 credits per call. Each one has its own page with parameters, code and examples.
Generate images from text prompts using advanced AI models.
/api/v1/ai/image-generation
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.
X-API-Key headerA real request to POST /api/v1/ai/image-generation. Every API in this category works the same way.
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"}'
<?php
$response = (new \GuzzleHttp\Client())->post('https://rsflowhub.com/api/v1/ai/image-generation', [
'headers' => ['X-API-Key' => 'rfh_your_api_key'],
'json' => json_decode('{"prompt":"Flat illustration of a developer working at a laptop at night, purple and blue palette"}', true),
]);
print_r(json_decode($response->getBody(), true));
const response = await fetch("https://rsflowhub.com/api/v1/ai/image-generation", {
method: "POST",
headers: {
"X-API-Key": "rfh_your_api_key",
"Content-Type": "application/json"
},
body: JSON.stringify({"prompt":"Flat illustration of a developer working at a laptop at night, purple and blue palette"})
});
console.log(await response.json());
import requests
response = requests.post(
"https://rsflowhub.com/api/v1/ai/image-generation",
headers={"X-API-Key": "rfh_your_api_key"},
json={"prompt":"Flat illustration of a developer working at a laptop at night, purple and blue palette"},
)
print(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"
}
}
Send a prompt and get back a link to the generated image.
Images are stored for a limited time and returned as a URL with its expiry.
You are billed in credits only for images actually returned; blocked prompts are not charged.
Typical pipelines built with Image Generation API.
Create a header or social image from a short text description while publishing content.
Generate concept art or placeholder visuals for catalogs, apps and prototypes.
How the Image Generation API compare with calling a provider directly or running your own models.
| Topic | RSFlowHub | Provider SDK | Self-hosted |
|---|---|---|---|
| Setup | One REST call with your RSFlowHub key | Provider account, key and SDK | GPU hosting and model setup |
| Output Delivery | Hosted image link, not Base64 in the response | Provider specific (often Base64) | Your own storage |
| Billing | Credits per image actually returned | Separate provider invoice | Fixed GPU compute cost |
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.
Flowy
AI assistant