PopNowAPI-Doku
Hauptinhalt

GPT Image 2.6 Flare API-Referenz

OpenAIs schnelle Stufe für Entwürfe, Bearbeitungen und GIF-Loops

Mit einem einzigen PopNow-API-Schlüssel rufst du GPT Image 2.6 Flare aus deinem eigenen Code auf. Hier findest du die Modell-IDs, jedes Eingabefeld, die Kosten pro Anfrage in USD und eine Anfrage, die du direkt ins Terminal kopieren kannst.

Die Parameterbeschreibungen stammen aus dem Eingabeschema des Modells und sind nur auf Englisch verfügbar.

Auf einen Blick

Hersteller
OpenAI
Ergebnis
Bild
Ab
$0.02232 USD pro Bild
Typische Dauer
etwa 29 s

Die Preise werden in USD angezeigt und von deinem PopNow-Guthaben abgebucht. Bei Annahme wird der Höchstbetrag reserviert, nach Abschluss der tatsächliche Verbrauch abgerechnet und der Rest freigegeben. Fehlgeschlagene Tasks kosten nichts. Ein genaues Angebot erhältst du vorab über POST /api/v1/jobs/quote.

Bild erstellen

openai/gpt-image-2.6-flare/text-to-image

Preis

OptionUSD
quality = low, resolution = 1k$0.02232 pro Bild
quality = low, resolution = 512$0.027 pro Bild
quality = medium, resolution = 1k$0.03915 pro Bild
quality = low, resolution = 2k$0.04131 pro Bild
quality = low, resolution = 768$0.04392 pro Bild
quality = high, resolution = 1k$0.04743 pro Bild
quality = medium, resolution = 512$0.04752 pro Bild
quality = high, resolution = 512$0.05742 pro Bild
quality = medium, resolution = 2k$0.07299 pro Bild
quality = low, resolution = 4k$0.07479 pro Bild
quality = medium, resolution = 768$0.07776 pro Bild
quality = xhigh, resolution = 1k$0.08433 pro Bild
quality = high, resolution = 2k$0.08847 pro Bild
quality = high, resolution = 768$0.09432 pro Bild
quality = xhigh, resolution = 512$0.10206 pro Bild
quality = medium, resolution = 4k$0.13221 pro Bild
quality = xhigh, resolution = 2k$0.15723 pro Bild
quality = high, resolution = 4k$0.16011 pro Bild
quality = xhigh, resolution = 768$0.1674 pro Bild
quality = max, resolution = 1k$0.18972 pro Bild
quality = max, resolution = 512$0.22941 pro Bild
quality = xhigh, resolution = 4k$0.28512 pro Bild
quality = max, resolution = 2k$0.35379 pro Bild
quality = max, resolution = 768$0.37638 pro Bild
quality = max, resolution = 4k$0.64044 pro Bild

Abgerechnet werden die Tokens, die eine Anfrage tatsächlich verbraucht: $4.5 pro 1 Mio. Text-Eingabe-Tokens, $7.2 pro 1 Mio. Bild-Eingabe-Tokens und $27 pro 1 Mio. Bild-Ausgabe-Tokens. Die Tabelle zeigt den Preis quadratischer Bilder je Stufe, andere Seitenverhältnisse kosten meist weniger. Bei mehreren Ausgabebildern zählen die Eingabe-Tokens pro Bild.

Parameter

FeldTypStandardwertErlaubtBedeutung
promptPflichtstring—bis zu 5.000 ZeichenDescribe the picture: subject, setting, light and any short text to render in quotes.
aspect_ratioOptionalstring1:11:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, 9:21, 2:1, 1:2, 3:1, 1:3, 5:4, … (+1)Output aspect ratio.
resolutionOptionalstring1k1k, 2k, 4k, 512, 768Output size tier: 1k is about 1 megapixel, 2k about 3.7, 4k about 8.3. For GIF output use 512 or 768, the size of one frame.
qualityOptionalstringmediumlow, medium, high, xhigh, maxRendering quality. Higher tiers add detail, time and cost.
reasoning_effortOptionalstring—low, medium, highHow much the model plans the picture before drawing. Higher helps dense text and complex layouts and takes longer; the price does not change. Leave it unset for the model default (high).
num_outputsOptionalinteger11 bis 10How many images to return, each billed separately.
backgroundOptionalstringautoauto, transparent, opaqueBackground treatment. Transparent needs PNG or WebP output.
output_formatOptionalstringpngpng, jpeg, webp, gifFile format of the returned images. gif returns an animated loop; describe the motion in the prompt.
frame_countOptionalinteger—2 bis 16Number of frames in a GIF, 2 to 16 (default 9). Every 8 frames are billed as one more frame sheet. Only with gif output.
frame_duration_msOptionalinteger—20 bis 2000How long each GIF frame stays on screen, 20 to 2000 milliseconds (default 200). Only with gif output.
output_qualityOptionalinteger—0 bis 100Compression quality for JPEG and WebP output, from 0 to 100.

Beispielanfrage

Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.

POST /api/v1/jobs/createTask?wait=60
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "openai/gpt-image-2.6-flare/text-to-image",
  "input": {
    "prompt": "A cozy reading nook beside a rain-streaked window, warm lamp light, a sleeping orange cat on a knitted blanket, soft film grain",
    "num_outputs": 1,
    "quality": "medium",
    "resolution": "1k"
  }
}'

Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Bild bearbeiten

openai/gpt-image-2.6-flare/edit

Preis

OptionUSD
quality = low, resolution = 1k$0.02232 pro Bild
quality = medium, resolution = 1k$0.03915 pro Bild
quality = low, resolution = 2k$0.04131 pro Bild
quality = high, resolution = 1k$0.04743 pro Bild
quality = medium, resolution = 2k$0.07299 pro Bild
quality = low, resolution = 4k$0.07479 pro Bild
quality = xhigh, resolution = 1k$0.08433 pro Bild
quality = high, resolution = 2k$0.08847 pro Bild
quality = medium, resolution = 4k$0.13221 pro Bild
quality = xhigh, resolution = 2k$0.15723 pro Bild
quality = high, resolution = 4k$0.16011 pro Bild
quality = max, resolution = 1k$0.18972 pro Bild
quality = xhigh, resolution = 4k$0.28512 pro Bild
quality = max, resolution = 2k$0.35379 pro Bild
quality = max, resolution = 4k$0.64044 pro Bild

Abgerechnet werden die Tokens, die eine Anfrage tatsächlich verbraucht: $4.5 pro 1 Mio. Text-Eingabe-Tokens, $7.2 pro 1 Mio. Bild-Eingabe-Tokens und $27 pro 1 Mio. Bild-Ausgabe-Tokens. Die Tabelle zeigt den Preis quadratischer Bilder je Stufe, andere Seitenverhältnisse kosten meist weniger. Bei mehreren Ausgabebildern zählen die Eingabe-Tokens pro Bild.

Parameter

FeldTypStandardwertErlaubtBedeutung
promptPflichtstring—bis zu 5.000 ZeichenSay what to change and what must stay the same. Refer to the images as Image 1, Image 2 and so on.
image_urlsPflichtarray<string (uri)>—bis zu 16 EinträgeOne to 16 source images, in the order your prompt refers to them. Each one adds a small charge.
mask_urlOptionalstring (uri)——Optional PNG mask: transparent pixels mark the area to repaint in the first image, same size as that image. Cannot be combined with markup_url.
markup_urlOptionalstring (uri)——Optional transparent PNG with circles, sketches or notes drawn over the first image to show what to change, same size as that image. Cannot be combined with mask_url.
aspect_ratioOptionalstring—1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, 9:21, 2:1, 1:2, 3:1, 1:3, 5:4, … (+1)Output aspect ratio. Leave it unset to keep the first image's shape (1k only); pick a ratio for 2k or 4k.
resolutionOptionalstring1k1k, 2k, 4kOutput size tier: 1k is about 1 megapixel, 2k about 3.7, 4k about 8.3.
qualityOptionalstringmediumlow, medium, high, xhigh, maxRendering quality. Higher tiers add detail, time and cost.
reasoning_effortOptionalstring—low, medium, highHow much the model plans the picture before drawing. Higher helps dense text and complex layouts and takes longer; the price does not change. Leave it unset for the model default (high).
num_outputsOptionalinteger11 bis 10How many images to return, each billed separately.
backgroundOptionalstringautoauto, transparent, opaqueBackground treatment. Transparent needs PNG or WebP output.
output_formatOptionalstringpngpng, jpeg, webpFile format of the returned images.
output_qualityOptionalinteger—0 bis 100Compression quality for JPEG and WebP output, from 0 to 100.

Beispielanfrage

Diese Anfrage läuft so, wie sie ist; weggelassene Felder behalten ihren Standardwert. Leg deinen Schlüssel vorher in POPNOW_API_KEY ab.

Das Beispiel nutzt in image_urls Beispieldateien von PopNow. Ersetze sie durch eigene öffentliche HTTPS-Links, Uploads oder gespeicherte Assets.

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "openai/gpt-image-2.6-flare/edit",
  "input": {
    "prompt": "Change the orange jacket to deep forest green and add soft golden-hour light; keep the face, pose and background unchanged",
    "image_urls": [
      "https://media.popnow.ai/influencer/examples/marco.webp"
    ],
    "num_outputs": 1,
    "quality": "medium",
    "resolution": "1k"
  }
}'

Die Antwort enthält sofort eine taskId. Das Ergebnis holst du mit GET /api/v1/jobs/recordInfo ab – oder du gibst callBackUrl mit und wirst benachrichtigt.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Weiter geht’s

Auf dieser Seite