> ## 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.

# Nano Banana Pro Light texto a imagen (reverse)

Genera imágenes a partir de una descripción de texto

## Encabezados de solicitud

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

<ParamField header="Authorization" type="string" required={true}>
  Formato de autenticación Bearer: Bearer \{\{API Key}}.
</ParamField>

## Cuerpo de la solicitud

<ParamField body="n" type="integer" default={1}>
  Número de imágenes que se generarán. Debe estar entre 1 y 10.

  Rango de valores: \[1, 10]
</ParamField>

<ParamField body="size" type="string" default="1x1">
  Tamaño de la imagen generada

  Valores opcionales: `1x1`, `2x3`, `3x2`, `3x4`, `4x3`, `4x5`, `5x4`, `9x16`, `16x9`, `21x9`
</ParamField>

<ParamField body="prompt" type="string" required={true}>
  Descripción de texto de la imagen deseada.
</ParamField>

<ParamField body="quality" type="string" default="1k">
  Selecciona la calidad de generación de la imagen

  Valores opcionales: `1k`, `2k`, `4k`
</ParamField>

<ParamField body="response_format" type="string" default="url">
  Formato de las imágenes generadas devueltas. Debe ser uno de `url` o `b64_json`.

  Valores opcionales: `url`, `b64_json`
</ParamField>

## Información de respuesta

<ResponseField name="data" type="object[]" required={true}>
  Lista de imágenes generadas

  <Expandable title="properties" defaultOpen={true}>
    <ResponseField name="url" type="string" required={false}>
      URL de la imagen (cuando response\_format es url)
    </ResponseField>

    <ResponseField name="b64_json" type="string" required={false}>
      Datos de imagen codificados en Base64 (cuando response\_format es b64\_json)
    </ResponseField>

    <ResponseField name="revised_prompt" type="string" required={false}>
      Prompt revisado (si lo hubiera)
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="created" type="integer" required={true}>
  Marca de tiempo de creación
</ResponseField>
