Create an edited or extended image from a source image and a prompt. Image editing is routed to OpenAI or Google depending on the model you choose.
Request and response format follow the OpenAI Images Create Edit API as a common contract. For Google models, see Gemini API image generation.
Required body fields: image, prompt, and model. All other fields are optional and depend on the provider and model you select via model — for example mask, size, n, response_format, quality, input_fidelity, output_format, background, edit_mode, and mask_mode. OpenAI GPT Image (gpt-image-1) and Google Gemini image models accept different subsets; see property descriptions below and provider documentation.
model uses the provider/model identifier format (e.g. openai/gpt-image-1 or google/gemini-3.1-flash-image), consistent with other AI Gateway operations.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
