Über GPT Image 2
GPT Image 2 (gpt-image-2) is the recommended default public image model, available in Global and CN regions and suitable for both integration testing and production. Like every image model, it is submitted through POST /v1/generations.
If you are unsure which image model to pick, start here: it has broad coverage and richer aspect-ratio and resolution options, which suits posters, covers and image editing.
Wichtigste Funktionen
Generation and editing in one model
Send only a prompt to create an image, or pass a list of reference image URLs in reference_images to edit or build on existing pictures.
Richer aspect ratios
aspect_ratio defaults to auto and also accepts 1:1, 5:4, 9:16, 21:9, 16:9, 3:2, 4:3, 4:5, 3:4 and 2:3. The 5:4 and 4:5 options are not available on the Banana models.
Three resolutions from 1K to 4K
resolution accepts 1K (default), 2K and 4K. Start with 1K for lower-cost testing.
Multiple images per request
Use n to set how many images to generate; the default is 1.
Anwendungsfälle
- Posters and campaign key visuals
- Covers for articles, videos and social media
- Illustrations and marketing assets
- Reference-based image editing
- Validating the full create-task, polling and webhook flow
In vier Schritten starten
- Erstellen Sie einen API-Schlüssel in der Konsole.
- Wählen Sie das Modell und prüfen Sie seine Parameter im API-Tab.
- Füllen Sie die Parameter aus und prüfen Sie die Kosten mit dem Angebots-Endpunkt.
- Senden Sie die Anfrage und fragen Sie dann die Aufgabe ab oder empfangen Sie das Ergebnis per Webhook.
Prompts schreiben
[Subject] + [Composition] + [Lighting] + [Materials and colors] + [Style or intended use]- Start with the subject, then add composition, lighting, materials and style.
- Mention the intended use, such as poster, cover or e-commerce hero image, to guide the overall look.
- For edits, say what must stay unchanged before describing the change.
- Do not send quality: regular gpt-image-2 does not support it; only gpt-image-2-official does.
Beispiel-Prompts
- A premium skincare poster on warm marble, soft daylight, luxury editorial style
- A cinematic fox made of folded paper in a rainy neon street
- A minimalist tech podcast cover, dark background, geometric lines, space left for the title
FAQ
Should I start with gpt-image-2?⌄
Yes. If you are unsure, use it as the default. Try nano-banana-2 when speed matters more, or nano-banana-pro for polished output and reference-image editing.
How is it billed?⌄
The Price tab lists every tier. Before submitting, call POST /v1/quote with the same parameters to estimate credits; the result is the total for the request and already accounts for n. API calls only spend purchased permanent credit packs and admin-adjusted credits.
Does the request return the image directly?⌄
No. Creating a task returns a task_id. Poll GET /v1/tasks/{task_id} or wait for a webhook, and read the result once the task reaches succeeded.
Can I send quality?⌄
No. Use gpt-image-2-official when you need a quality tier.


