Ir para o conteúdo

Nano Banana Pro Edit

Integrar

ID do 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 solicitação: $ 0,15 150 créditos de API Executar nesta página

Obter chave de API
Google Edição de imagem Saída em 4Katé 4K #editing#consistency

Edite ou combine fotos com instruções em linguagem simples, preservando rostos e produtos, com saída de até 4K.

Exemplos

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

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

1K$ 0,15 · 150 créditos de API

Prompt de @NanoBanana no X

Criar uma solicitação

Os controles são gerados a partir do esquema do modelo. O código e o preço são atualizados conforme você os altera.

•obrigatório 107 / 50000

Instruções de texto para editar uma imagem.

•obrigatório image_urls
Solte um arquivo ou

URLs que identificam imagens de origem para edição ou geração image-to-image.

aspect_ratio padrão auto

Proporção da imagem resultante.

resolution

Resolução da imagem de saída.

num_images padrão 1

Quantidade de imagens solicitada para geração.

Avançado system_prompt · output_format · safety_tolerance · seed · limit_generations
0 / 50000

Orientação opcional de persona e estilo de saída para toda a requisição, enviada ao Gemini como instrução de sistema ou a provedores compatíveis com OpenAI como mensagem de sistema. Nada é enviado para essa instrução quando o valor está em branco.

output_format padrão png

Formato de arquivo da imagem resultante.

safety_tolerance padrão 4

Defina a tolerância da moderação de conteúdo entre o nível menos restritivo, 6, e o nível mais rigoroso, 1, que bloqueia a maior parte do conteúdo.

Valor de seed que inicializa a geração de números aleatórios.

POST /run/nano-banana-pro/edit?wait=20 cotação → $ 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"

Executar esta solicitação

Sua chave permanece neste navegador: ela é enviada somente à Doitong API e salva (localStorage) apenas se você marcar Lembrar. Obter uma chave de API

Feito no Doitong

Trabalhos públicos feitos com Nano Banana Pro pela comunidade Doitong. Reutilize um prompt com um clique.

Trabalhos públicos exibidos: 16
Strong rule: style --- 3D Pixar ---. Анна стоит перед огромным настенным монитором в своей комнат...

Strong rule: style --- 3D Pixar ---. Анна стоит перед огромным настенным монитором в своей комнате, на котором отображается вирусный график просмотров, уходящий резко вверх в бесконечность. Она прижимает руки к лицу в неописуемом восторге. Средний план снизу вверх, делая фигуру героини более...

Strong rule: style --- 3D Pixar ---. Маленькая, захламленная комната студентки в глубоких сумерка...

Strong rule: style --- 3D Pixar ---. Маленькая, захламленная комната студентки в глубоких сумерках. На массивном дубовом столе гора пустых чашек, разбросаны тетради и ярко светится экран старого ноутбука. Анна сидит, обхватив голову руками, глядя в окно на далекие огни большого города. Камера под...

Strong rule: style --- 3D Pixar ---. Крупный план экрана ноутбука, на котором открыт яркий соврем...

Strong rule: style --- 3D Pixar ---. Крупный план экрана ноутбука, на котором открыт яркий современный образовательный портал с крупным заголовком «Мастер Алгоритмов». Отражение сложного интерфейса играет на линзах очков Анны. Композиция — экстремальный крупный план. Освещение становится...

Full-body character reference of the character shown in the reference film frame: exactly the sam...

Full-body character reference of the character shown in the reference film frame: exactly the same design, shape, proportions, colors, materials, wear and markings. Standing, front three-quarter view, the whole figure in frame, neutral dark studio background, soft even light, photorealistic,...

Strong rule: style --- 3D Pixar ---. Анна в центре своей комнаты, которая теперь преобразилась: н...

Strong rule: style --- 3D Pixar ---. Анна в центре своей комнаты, которая теперь преобразилась: на стенах висят светящиеся неоновые доски с формулами и схемами. Она сосредоточенно печатает на клавиатуре, вокруг нее в воздухе парят полупрозрачные голографические интерфейсы с яркими графиками...

Strong rule: style --- 3D Pixar ---. Просторный современный офис в небоскребе с огромными панорам...

Strong rule: style --- 3D Pixar ---. Просторный современный офис в небоскребе с огромными панорамными окнами, выходящими на закатный мегаполис. Анна стоит у самого окна, уверенно сложив руки на груди. Она одета в элегантный, идеально сидящий деловой костюм. Широкий план, камера расположена на...

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

Нужен кадр вот к этой секунде 00:04 без текста Используй референс только при необходимости, если он есть в кадре по этому сценарию Вот подробный сценарий вирального ролика (Reels/TikTok/Shorts), созданный по всем вашим вводным. **Общая концепция:** Эстетика «old money» и современной роскоши...

Full-body character reference of the character shown in the reference film frame: exactly the sam...

Full-body character reference of the character shown in the reference film frame: exactly the same design, shape, proportions, colors, materials, wear and markings. Standing, front three-quarter view, the whole figure in frame, neutral dark studio background, soft even light, photorealistic,...

Sobre Nano Banana Pro Edit

O modo de edição do Nano Banana Pro: forneça uma ou mais imagens e descreva a alteração, como trocar um fundo, combinar uma pessoa e um produto em uma cena, mudar o estilo ou corrigir texto em uma placa. Ele preserva identidades e detalhes entre as edições. Saída em 1K, 2K ou 4K em qualquer proporção comum, fundamentação opcional na web e até quatro resultados por solicitação.

Parâmetros

Envie o nome canônico ou o nome nativo, não ambos. Nomes canônicos

NomeTipo PadrãoPermitido Descrição
promptobrigatório
Tipostring
≤ 50.000 caracteres≥ 3 caracteres
Instruções de texto para editar uma imagem.
num_imagesopcional num_outputs
Tipointeger
Padrão1
1 – 4
Quantidade de imagens solicitada para geração.
seedopcional
Tipointeger | null
Valor de seed que inicializa a geração de números aleatórios.
aspect_ratioopcional
Tipoenum
Padrãoauto
auto21:916:93:24:35:41:14:53:42:39:16
Proporção da imagem resultante.
output_formatopcional
Tipoenum
Padrãopng
jpegpngwebp
Formato de arquivo da imagem resultante.
safety_toleranceopcional
Tipoenum
Padrão4
123456
Defina a tolerância da moderação de conteúdo entre o nível menos restritivo, 6, e o nível mais rigoroso, 1, que bloqueia a maior parte do conteúdo.
image_urlsobrigatório images
Tipourl[] · image
URLs que identificam imagens de origem para edição ou geração image-to-image.
system_promptopcional
Tipostring
Padrão
≤ 50.000 caracteres
Orientação opcional de persona e estilo de saída para toda a requisição, enviada ao Gemini como instrução de sistema ou a provedores compatíveis com OpenAI como mensagem de sistema. Nada é enviado para essa instrução quando o valor está em branco.
resolutionopcional
Tipoenum
Padrão1K
1K2K4K
Resolução da imagem de saída.
limit_generationsopcional
Tipoboolean
Padrãotrue
Limite experimental de geração: ativar `True` substitui quaisquer instruções de quantidade de imagens no prompt e restringe cada rodada de prompting a 1 geração.
obrigatório Nome canônico, também aceito

Os parâmetros de arquivo aceitam uma URL https:// pública, um URI data: de até 10 MB ou o file_url de um upload. Arquivos

Saída

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"
  }
}
Seus arquivos, sua escolhaCada outputs[].url é uma cópia em nosso armazenamento: mantida para sempre (cobrada por GB-mês) ou por 7 dias gratuitamente, conforme a configuração da sua conta ou ?storage=.
Mesmo formato em todos os modelostype, url, content_type, width, height e duration, para imagens, vídeos e áudios. output é o próprio objeto de resultado do modelo.
Campos da saída
images
array of object {url, content_type, file_name, file_size, width, height}Imagens resultantes da edição.
description
stringDescrição que acompanha as imagens geradas.

Mais modelos: Edição de imagem

Para agentes de IA: esta página em Markdown está em https://doitong.com/pt-BR/developers/models/nano-banana-pro/edit.md. Todos os modelos e guias: https://doitong.com/developers/llms.txt