Image editing
Edit or combine reference images with a prompt
POST /v1/images/edits takes one or more reference images plus a prompt and returns a new image, to change or combine pictures you already have. The request is multipart/form-data; the response matches image generation: base64 in data[].b64_json, plus usage and cost.
An edit needs a route listing image in both capabilities.input and capabilities.output; filter by both in the model catalog.
Reference
Reference images bill as image-input tokens at pricing.input_image_per_million, the prompt at the text rate, and the output at the image-output rate. usage.input_tokens_details splits image_tokens from text_tokens.