Gå til indhold

Nano Banana Pro Edit

Integrer

Model-id 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"

Denne anmodning: 0,15 $ 150 API-kreditter Kør den på denne side

Hent API-nøgle
Google Billedredigering 4K-outputop til 4K #editing#consistency

Rediger eller kombiner fotos med instruktioner i almindeligt sprog, og bevar ansigter og produkter intakte, op til 4K.

Eksempler

Input
Output · ~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

1K0,15 $ · 150 API-kreditter

Prompt fra @NanoBanana på X

Opret en anmodning

Kontrollerne genereres fra modellens skema. Koden og prisen opdateres, når du ændrer dem.

•påkrævet 107 / 50000

Tekstinstruktioner til redigering af et billede.

•påkrævet image_urls
Slip en fil, eller

URL'er, der identificerer kildebilleder til redigering eller image-to-image-generering.

aspect_ratio standard auto

Højde-bredde-forhold for det resulterende billede.

resolution

Outputbilledets opløsning.

num_images standard 1

Antal billeder, der ønskes genereret.

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

Valgfri persona- og outputstilvejledning for hele anmodningen, sendt til Gemini som en systeminstruktion eller til OpenAI-kompatible udbydere som en systemmeddelelse. Der sendes intet for denne instruktion, når værdien er tom.

output_format standard png

Filformat for det resulterende billede.

safety_tolerance standard 4

Angiv tolerancen for indholdsmoderering mellem det mindst restriktive niveau, 6, og det strengeste niveau, 1, som blokerer det meste indhold.

Seed-værdi, der initialiserer generering af tilfældige tal.

POST /run/nano-banana-pro/edit?wait=20 pris → 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"

Kør denne anmodning

Din nøgle forbliver i denne browser: Den sendes kun til Doitong API og gemmes kun i localStorage, hvis du markerer Husk. Hent en API-nøgle

Lavet på Doitong

Offentlige værker skabt med Nano Banana Pro af Doitong-fællesskabet. Genbrug en prompt med ét klik.

Offentlige værker vist: 16
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,...

Нужен кадр вот к этой секунде 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,...

Art style: 3D Pixar, highly detailed, vibrant colors, expr.... 3D Pixar style. A dark, snowy city...

Art style: 3D Pixar, highly detailed, vibrant colors, expr.... 3D Pixar style. A dark, snowy city street at night. The banana man looks incredibly guilty and sad as he places the two tiny baby grapes into a metal trash can. Heavy snow is falling. Somber atmosphere....

Art style: 3D Pixar. Young man Dmitry looking exhausted, split image: left side dull grayscale pa...

Art style: 3D Pixar. Young man Dmitry looking exhausted, split image: left side dull grayscale park walk, right side vibrant exploding phone screen and glowing overloaded dopamine receptors in brain overlay. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FINAL STYLE ENFORCEMENT (this is the authoritative...

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 ---. Strong rule: style --- Whimsical 3D Illustration ---. Очаровательная антропоморфная овечка девочка в полный рост, тело удлиненное и...

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 ---. Милая женственная антропоморфная овечка в полный рост, высокая стройная фигура, пушистая светлая шерсть, длинная шея без без шерсти,...

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

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

Om Nano Banana Pro Edit

Redigeringstilstanden i Nano Banana Pro: giv den ét eller flere billeder, og beskriv ændringen, f.eks. udskiftning af en baggrund, sammensmeltning af en person og et produkt i én scene, ændring af stil eller rettelse af tekst på et skilt. Den bevarer identiteter og detaljer stabilt på tværs af redigeringer. Output i 1K, 2K eller 4K med ethvert almindeligt formatforhold, valgfri webforankring og op til fire resultater pr. anmodning.

Parametre

Send enten det kanoniske navn eller det oprindelige navn, ikke begge. Kanoniske navne

NavnType StandardTilladt Beskrivelse
promptpåkrævet
Typestring
≤ 50.000 tegn≥ 3 tegn
Tekstinstruktioner til redigering af et billede.
num_imagesvalgfri num_outputs
Typeinteger
Standard1
1 – 4
Antal billeder, der ønskes genereret.
seedvalgfri
Typeinteger | null
Seed-værdi, der initialiserer generering af tilfældige tal.
aspect_ratiovalgfri
Typeenum
Standardauto
auto21:916:93:24:35:41:14:53:42:39:16
Højde-bredde-forhold for det resulterende billede.
output_formatvalgfri
Typeenum
Standardpng
jpegpngwebp
Filformat for det resulterende billede.
safety_tolerancevalgfri
Typeenum
Standard4
123456
Angiv tolerancen for indholdsmoderering mellem det mindst restriktive niveau, 6, og det strengeste niveau, 1, som blokerer det meste indhold.
image_urlspåkrævet images
Typeurl[] · image
URL'er, der identificerer kildebilleder til redigering eller image-to-image-generering.
system_promptvalgfri
Typestring
Standard
≤ 50.000 tegn
Valgfri persona- og outputstilvejledning for hele anmodningen, sendt til Gemini som en systeminstruktion eller til OpenAI-kompatible udbydere som en systemmeddelelse. Der sendes intet for denne instruktion, når værdien er tom.
resolutionvalgfri
Typeenum
Standard1K
1K2K4K
Outputbilledets opløsning.
limit_generationsvalgfri
Typeboolean
Standardtrue
Eksperimentel genereringsgrænse: aktivering af `True` tilsidesætter billedantallet i prompten og begrænser hver promptingrunde til 1 generering.
påkrævet Kanonisk navn, også accepteret

Filparametre accepterer en offentlig https://-URL, en data:-URI på op til 10 MB eller file_url fra en upload. Filer

Output

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"
  }
}
Dine filer, dit valgHver outputs[].url er en kopi på vores lagring: gemt for altid (betales pr. GB-måned) eller 7 dage gratis, afhængigt af din kontoindstilling eller ?storage=.
Samme struktur for alle modellertype, url, content_type, width, height og duration for billeder, video og lyd. output er modellens eget resultatobjekt.
Outputfelter
images
array of object {url, content_type, file_name, file_size, width, height}Billeder, der er resultatet af redigering.
description
stringBeskrivelse, der ledsager de genererede billeder.

Flere modeller: Billedredigering

Til AI-agenter: Denne side som Markdown findes på https://doitong.com/da/developers/models/nano-banana-pro/edit.md. Alle modeller og vejledninger: https://doitong.com/developers/llms.txt