Skip to main content
POST
Modify an image based on a text prompt. You can perform inpainting (if a mask is provided) or generate variations of the input image.

Headers

string
required
Your Apollo AI API key.

Body Parameters

string
required
The text description of the desired edit or variation.
string
required
Base64 encoded string of the source image.
string
Base64 encoded string of the mask image (for inpainting). White pixels indicate areas to modify. If omitted, the request is treated as an image variation.
string
default:"1024x1024"
The dimensions of the generated image. Supported values: “1024x1024”, “512x512”.
integer
default:"1"
The number of variation images to generate.

Response

integer
Timestamp of generation.
array
Array of objects containing the image data.