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
| Option | USD |
|---|---|
low | $0.034 pro Bild |
medium | $0.068 pro Bild |
high | $0.247 pro Bild |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | bis zu 10.000 Zeichen | Describe the image. Put any words that must appear on it in quotes. |
aspect_ratioOptional | string | 1:1 | 1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16 | Frame shape of the image. |
qualityOptional | string | medium | low, medium, high | Render quality. Higher quality costs more; very_low is for edits only. |
resolutionOptional | string | 1k | 1k, 2k | Output size: 1k is about 1 megapixel, 2k about 4. Both cost the same. |
enable_prompt_expansionOptional | boolean | false | — | 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.
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.
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
| Option | USD |
|---|---|
very_low | $0.011 pro Bild |
low | $0.034 pro Bild |
medium | $0.068 pro Bild |
high | $0.247 pro Bild |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | bis zu 10.000 Zeichen | Say what to change. Put any words that must appear in quotes. Refer to guide images as Image 1, Image 2 and so on. |
image_urlPflicht | string (uri) | — | — | The image to edit: JPEG, PNG or WebP. |
mask_urlOptional | string (uri) | — | — | Optional black-and-white mask: white marks the area to change. |
reference_image_urlsOptional | array<string (uri)> | — | bis zu 4 Einträge | Up to four style or content guides (three when a mask is set). |
aspect_ratioOptional | string | — | 1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16 | Frame shape of the result. Leave it unset to keep the source shape. |
qualityOptional | string | medium | very_low, low, medium, high | Render quality. Higher quality costs more; very_low is for edits only. |
resolutionOptional | string | 1k | 1k, 2k | Output size: 1k is about 1 megapixel, 2k about 4. Both cost the same. |
edit_precisionOptional | string | regular | regular, high | high 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.
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.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
