Method: $client->generateImageEdit(...) or $client->createImageEdit(...)
Example
Key parameters
model (required): Image-edit capable model id.
image (required): Base64 data URL or URL to source image.
prompt: Optional new instruction for the edit.
mask: Optional mask (transparent regions edited).
n (1–10): Number of edited variants.
size: e.g., 1024x1024, 1024x1792, 1792x1024.
response_format: url or b64_json.
user: Optional end-user tag.
Returns
ImageGenerationResponse Last modified on July 26, 2026