> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jiekou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini 2.5 Flash Image Editing

Edit images with text prompts using the Gemini 2.5 Flash model. You can provide images via URLs or base64-encoded strings.

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum value: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="prompt" type="string" required={true}>
  A text prompt describing the desired edits to the image
</ParamField>

<ParamField body="image_urls" type="string[]">
  A list of input image URLs to edit
</ParamField>

<ParamField body="aspect_ratio" type="string">
  The aspect ratio of the generated image. Available values: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9

  Allowed values: `1:1`, `3:2`, `2:3`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, `21:9`
</ParamField>

<ParamField body="image_base64s" type="string[]">
  A list of base64-encoded images to edit
</ParamField>

## Response

<ResponseField name="image_urls" type="string[]" required={false}>
  A list of URLs for the edited output images
</ResponseField>
