AI Image Generation API

Welcome to the AI Image Generation API. This service allows you to generate images using advanced AI models via simple GET requests.

Endpoint

Use the base URL of this API (e.g., https://riruruai.itz-ashlynn.workers.dev/) with query parameters.

Required Parameters

Models and Examples

Response

On success, the API returns the generated image as a PNG file (Content-Type: image/png).

On error, it returns a JSON object: {"error": "Image generation failed"}.

Usage Notes