Image Upscaler API-Referenz
Jedes Bild auf 2K, 4K oder 8K vergrößern
Mit einem einzigen PopNow-API-Schlüssel rufst du Image Upscaler aus deinem eigenen Code auf. Hier findest du die Modell-IDs, jedes Eingabefeld, die Kosten pro Anfrage in Credits 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
- PopNow
- Ergebnis
- Bild
- Ab
- 1.8 Credits pro Bild ($0.018)
- Typische Dauer
- etwa 46 s
- Modell-IDs
1 Credit = 0,01 $. Bei Annahme reserviert ein Task den höchstmöglichen Betrag und rechnet am Ende den tatsächlichen Verbrauch ab, auf ganze Credits aufgerundet; der Rest wird freigegeben. Fehlgeschlagene Tasks kosten nichts. Den genauen Betrag vorab liefert POST /api/v1/jobs/quote.
Bild hochskalieren
popnow/image-upscaler-v1/upscale
Preis
| Option | Credits (pro Bild) | US-Dollar |
|---|---|---|
Standard | 1.8 | $0.018 |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
image_urlPflicht | string | — | — | The image to enlarge. Its framing and aspect ratio are kept; only the resolution goes up. |
resolutionOptional | string | 4k | 2k, 4k, 8k | Output size tier: a pixel budget of about 4 (2k), 17 (4k) or 67 (8k) megapixels, with the aspect ratio kept. A tier below the source's pixel count scales the image down. All three tiers cost the same. |
output_formatOptional | string | jpeg | jpeg, png, webp | File type of the returned image. png is lossless but several times larger than jpeg. |
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": "popnow/image-upscaler-v1/upscale",
"input": {
"image_url": "https://media.popnow.ai/influencer/examples/marco.webp"
}
}'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"
