Use this API to generate images based on your text prompts.
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.
Generate an image based on a provided text prompt.
GET /generate-image?prompt=
curl -X GET "https://api.jail.mom/generate-image?prompt=a+sunset+over+the+mountains"
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.
curl -X GET "https://api.jail.mom/generate-image?prompt=a+sunset+over+the+mountains"
curl -X GET "https://api.jail.mom/generate-image?prompt=a+futuristic+city+skyline+with+flying+cars"
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.