Image Generation API Documentation

Use this API to generate images based on your text prompts.

Overview

The Image Generation API allows you to generate images based on a text description (prompt). Just provide a descriptive text in the query parameter `prompt` and receive an image in PNG format.

Endpoints

1. Generate Image

Generate an image based on a provided text prompt.

GET /generate-image?prompt=

Example Request

curl -X GET "https://api.jail.mom/generate-image?prompt=a+sunset+over+the+mountains"

Response

Status: 200 OK

The image is returned in PNG format based on the prompt you provide. If the prompt is missing, the API will return a 400 Bad Request status.

Usage Examples

1. Generate a Sunset Over Mountains

curl -X GET "https://api.jail.mom/generate-image?prompt=a+sunset+over+the+mountains"

2. Generate a Futuristic City Skyline

curl -X GET "https://api.jail.mom/generate-image?prompt=a+futuristic+city+skyline+with+flying+cars"

Rate Limiting

The API allows 10 requests per IP address every 5 minutes. If the limit is exceeded, you will receive a 429 Too Many Requests response.