> ## 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 Texto para Imagem

Use o modelo Gemini 2.5 Flash para gerar imagens com base em prompts de texto.

## Cabeçalhos da solicitação

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

<ParamField header="Authorization" type="string" required={true}>
  Formato de autenticação Bearer: Bearer \{\{chave de API}}.
</ParamField>

## Corpo da solicitação

<ParamField body="prompt" type="string" required={true}>
  Prompt de texto que descreve a imagem a ser gerada
</ParamField>

<ParamField body="aspect_ratio" type="string">
  Proporção da imagem gerada. Valores disponíveis: 1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9、21:9

  Valores opcionais: `1:1`, `3:2`, `2:3`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, `21:9`
</ParamField>

## Informações da resposta

<ResponseField name="image_urls" type="string[]" required={true}>
  Lista de URLs das imagens geradas
</ResponseField>
