PopNowAPI-Doku
Hauptinhalt

Ideogram 4.5 API-Referenz

Lesbare Schrift für Poster und Etiketten in 1K oder 2K, dazu Masken-Edits mit Referenzen

Mit einem einzigen PopNow-API-Schlüssel rufst du Ideogram 4.5 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
Ideogram
Ergebnis
Bild
Ab
$0.011 USD pro Bild

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

ideogram/4.5/text-to-image

Preis

OptionUSD
low$0.034 pro Bild
medium$0.068 pro Bild
high$0.247 pro Bild

Parameter

FeldTypStandardwertErlaubtBedeutung
promptPflichtstring—bis zu 10.000 ZeichenDescribe the image. Put any words that must appear on it in quotes.
aspect_ratioOptionalstring1:11:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16Frame shape of the image.
qualityOptionalstringmediumlow, medium, highRender quality. Higher quality costs more; very_low is for edits only.
resolutionOptionalstring1k1k, 2kOutput size: 1k is about 1 megapixel, 2k about 4. Both cost the same.
enable_prompt_expansionOptionalbooleanfalse—Let the model expand a short prompt into a fuller description before drawing.

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
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": "ideogram/4.5/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",
    "quality": "medium"
  }
}'

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

ideogram/4.5/edit

Preis

OptionUSD
very_low$0.011 pro Bild
low$0.034 pro Bild
medium$0.068 pro Bild
high$0.247 pro Bild

Parameter

FeldTypStandardwertErlaubtBedeutung
promptPflichtstring—bis zu 10.000 ZeichenSay what to change. Put any words that must appear in quotes. Refer to guide images as Image 1, Image 2 and so on.
image_urlPflichtstring (uri)——The image to edit: JPEG, PNG or WebP.
mask_urlOptionalstring (uri)——Optional black-and-white mask: white marks the area to change.
reference_image_urlsOptionalarray<string (uri)>—bis zu 4 EinträgeUp to four style or content guides (three when a mask is set).
aspect_ratioOptionalstring—1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16Frame shape of the result. Leave it unset to keep the source shape.
qualityOptionalstringmediumvery_low, low, medium, highRender quality. Higher quality costs more; very_low is for edits only.
resolutionOptionalstring1k1k, 2kOutput size: 1k is about 1 megapixel, 2k about 4. Both cost the same.
edit_precisionOptionalstringregularregular, highhigh keeps changes tighter to what you asked for.

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_url 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": "ideogram/4.5/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_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "quality": "medium"
  }
}'

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