Ir al contenido

Nano Banana Pro Edit

Integrar

Id del modelo nano-banana-pro/edit
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/nano-banana-pro/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Faithfully restore this image with high fidelity to modern photograph quality, in full color, upscale to 4K",
    "images": [
      "https://content.doitong.com/dev-api/2026/10/21/req_tlhvxyf27ektm9ozuzozz5fn/0-1h3kLymYuP3n6Z-kAnWa8_Nh4eqcOs.png"
    ],
    "resolution": "1K"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Esta solicitud: 0,15 $ 150 créditos de API Ejecutar en esta página

Obtener clave de API
Google Edición de imágenes Salida 4Khasta 4K #editing#consistency

Edita o combina fotos con instrucciones en lenguaje natural, conservando intactos los rostros y productos, hasta 4K.

Ejemplos

Entrada
Salida · ~41 s
Faithfully restore this image with high fidelity to modern photograph quality, in full color, upscale to 4K

IndicaciónFaithfully restore this image with high fidelity to modern photograph quality, in full color, upscale to 4K

1K0,15 $ · 150 créditos de API

Prompt de @NanoBanana en X

Crear una solicitud

Los controles se generan a partir del esquema del modelo. El código y el precio se actualizan al modificarlos.

•obligatorio 107 / 50000

Instrucciones de texto para editar una imagen.

•obligatorio image_urls
Suelta un archivo o

URL que identifica imágenes de origen para edición o generación de imagen a imagen.

aspect_ratio predeterminado auto

Relación de aspecto de la imagen resultante.

resolution

Resolución de la imagen de salida.

num_images predeterminado 1

Cantidad de imágenes solicitada para la generación.

Avanzado system_prompt · output_format · safety_tolerance · seed · limit_generations
0 / 50000

Orientación opcional para toda la solicitud sobre persona y estilo de salida, enviada a Gemini como instrucción del sistema o a proveedores compatibles con OpenAI como mensaje del sistema. Si el valor está vacío, no se envía nada para esta instrucción.

output_format predeterminado png

Formato de archivo de la imagen resultante.

safety_tolerance predeterminado 4

Establece la tolerancia de moderación de contenido entre el nivel menos restrictivo, 6, y el nivel más estricto, 1, que bloquea la mayoría del contenido.

Valor de semilla que inicializa la generación de números aleatorios.

POST /run/nano-banana-pro/edit?wait=20 cotización → 0,15 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/nano-banana-pro/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Faithfully restore this image with high fidelity to modern photograph quality, in full color, upscale to 4K",
    "images": [
      "https://content.doitong.com/dev-api/2026/10/21/req_tlhvxyf27ektm9ozuzozz5fn/0-1h3kLymYuP3n6Z-kAnWa8_Nh4eqcOs.png"
    ],
    "resolution": "1K"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Ejecutar esta solicitud

Tu clave permanece en este navegador: solo se envía a la Doitong API y se guarda (localStorage) únicamente si marcas Recordar. Obtener una clave de API

Creado en Doitong

Trabajos públicos creados con Nano Banana Pro por la comunidad de Doitong. Reutiliza un prompt con un clic.

Trabajos públicos mostrados: 16
[Lighting: cinematic] Art style: Кинематографический, фотореалистичный. Крупный план экрана компь...

[Lighting: cinematic] Art style: Кинематографический, фотореалистичный. Крупный план экрана компьютера. По экрану бегут строки фейковых данных: IP-адрес, город, личная информация. Поверх изображения — красный 'сканирующий' луч и мигающие символы тревоги. В отражении экрана видны амогусы с ножами...

Recreate this exact cinematic film shot from the reference image as a brand-new photorealistic re...

Recreate this exact cinematic film shot from the reference image as a brand-new photorealistic render. Match exactly: the composition and framing, the camera angle and lens, the lighting direction, the light rays and haze, the color grade, and the design of every object and character, including...

Strong rule: style --- Whimsical 3D Illustration ---. Strong rule: style --- Whimsical 3D Illustr...

Strong rule: style --- Whimsical 3D Illustration ---. Strong rule: style --- Whimsical 3D Illustration ---. Strong rule: style --- Whimsical 3D Illustration ---. Милая антропоморфная овечка в полный рост, длинная длинная стройная фигура, фигура удлиненная, пушистая кремово-белая кудрявая шерсть,...

[Lighting: cinematic] Art style: Кинематографический, фотореалистичный. Крупный план руки парня, ...

[Lighting: cinematic] Art style: Кинематографический, фотореалистичный. Крупный план руки парня, которая решительно нажимает кнопку 'Включить SILA VPN' на экране. В момент клика вся комната заливается мощным, чистым синим светом. Амогусы в ужасе отлетают от окон и дверей, их 2D-формы искажаются....

[Lighting: cinematic] Art style: Кинематографический, фотореалистичный. Та же комната, но теперь ...

[Lighting: cinematic] Art style: Кинематографический, фотореалистичный. Та же комната, но теперь она залита спокойным синим светом от монитора. Парень расслабленно сидит в кресле и энергетик монстер. За окном видно, как побежденные амогусы с ножами грустно уходят. Стиль - полный реализм,...

Нужен кадр вот к этой секунде 00:08 без снега пусть будет лето, без текста Используй референс тол...

Нужен кадр вот к этой секунде 00:08 без снега пусть будет лето, без текста Используй референс только при необходимости, если он есть в кадре по этому сценарию Вот подробный сценарий вирального музыкального клипа. **Стиль и эстетика:** Яркая, насыщенная цветовая палитра в духе колоризованного...

Нужен кадр вот к этой секунде 00:48 без снега пусть будет лето, без текста Используй референс тол...

Нужен кадр вот к этой секунде 00:48 без снега пусть будет лето, без текста Используй референс только при необходимости, если он есть в кадре по этому сценарию Вот подробный сценарий вирального музыкального клипа. **Стиль и эстетика:** Яркая, насыщенная цветовая палитра в духе колоризованного...

Use the woman from the reference photo as the main character, preserve her facial identity, natur...

Use the woman from the reference photo as the main character, preserve her facial identity, natural facial features, realistic skin texture, eyes, lips, eyebrows and face shape. Create a magical cinematic summer fantasy scene. The woman is sitting or lying on soft green grass in a beautiful...

Acerca de Nano Banana Pro Edit

El modo de edición de Nano Banana Pro: proporciona una o más imágenes y describe el cambio, como sustituir un fondo, combinar una persona y un producto en una escena, cambiar el estilo o corregir el texto de un cartel. Conserva estables las identidades y los detalles entre ediciones. Salida en 1K, 2K o 4K con cualquier relación de aspecto habitual, conexión web opcional y hasta cuatro resultados por solicitud.

Parámetros

Envía el nombre canónico o el nombre nativo, no ambos. Nombres canónicos

NombreTipo PredeterminadoPermitido Descripción
promptobligatorio
Tipostring
≤ 50.000 caracteres≥ 3 caracteres
Instrucciones de texto para editar una imagen.
num_imagesopcional num_outputs
Tipointeger
Predeterminado1
1 – 4
Cantidad de imágenes solicitada para la generación.
seedopcional
Tipointeger | null
Valor de semilla que inicializa la generación de números aleatorios.
aspect_ratioopcional
Tipoenum
Predeterminadoauto
auto21:916:93:24:35:41:14:53:42:39:16
Relación de aspecto de la imagen resultante.
output_formatopcional
Tipoenum
Predeterminadopng
jpegpngwebp
Formato de archivo de la imagen resultante.
safety_toleranceopcional
Tipoenum
Predeterminado4
123456
Establece la tolerancia de moderación de contenido entre el nivel menos restrictivo, 6, y el nivel más estricto, 1, que bloquea la mayoría del contenido.
image_urlsobligatorio images
Tipourl[] · image
URL que identifica imágenes de origen para edición o generación de imagen a imagen.
system_promptopcional
Tipostring
Predeterminado
≤ 50.000 caracteres
Orientación opcional para toda la solicitud sobre persona y estilo de salida, enviada a Gemini como instrucción del sistema o a proveedores compatibles con OpenAI como mensaje del sistema. Si el valor está vacío, no se envía nada para esta instrucción.
resolutionopcional
Tipoenum
Predeterminado1K
1K2K4K
Resolución de la imagen de salida.
limit_generationsopcional
Tipoboolean
Predeterminadotrue
Límite experimental de generación: activar `True` sobrescribe cualquier indicación de cantidad de imágenes del prompt y restringe cada ronda de prompting a 1 generación.
obligatorio Nombre canónico, también aceptado

Los parámetros de archivo aceptan una URL pública https://, un URI data: de hasta 10 MB o el file_url de una carga. Archivos

Salida

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "nano-banana-pro/edit",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 150,
    "usd": "0.15",
    "charged": 150,
    "refunded": 0
  },
  "input": {
    "prompt": "Put this white sneaker on a sunlit marble pedestal in a minimalist gallery, keep the shoe exactly as it is",
    "images": [
      "https://content.doitong.com/images/showcase/v3/gen_sneaker_ad.jpg"
    ],
    "resolution": "1K"
  },
  "output": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "description": "string"
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tus archivos, tú eligesCada outputs[].url es una copia en nuestro almacenamiento: conservada para siempre (se cobra por GB-mes) o 7 días gratis, según la configuración de tu cuenta o ?storage=.
La misma estructura en todos los modelostype, url, content_type, width, height y duration, tanto para imágenes como para vídeo y audio. output es el objeto de resultado propio del modelo.
Campos de salida
images
array of object {url, content_type, file_name, file_size, width, height}Imágenes resultantes de la edición.
description
stringDescripción que acompaña a las imágenes generadas.

Más modelos: Edición de imágenes

Para agentes de IA: esta página en Markdown está en https://doitong.com/es/developers/models/nano-banana-pro/edit.md. Todos los modelos y guías: https://doitong.com/developers/llms.txt