Photo to Anime API-Referenz
Fotos in Anime verwandeln und wichtige Details vorgeben
Mit einem einzigen PopNow-API-Schlüssel rufst du Photo to Anime 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
- PopNow
- Ergebnis
- Bild
- Ab
- $0.05 USD pro Bild
- Modell-IDs
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 bearbeiten
popnow/photo-to-anime-v1/edit
Preis
| Option | USD |
|---|---|
Standard | $0.05 pro Bild |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
image_urlPflicht | string | — | — | The photo to turn into anime: JPEG, PNG or WebP, up to 10 MB. |
promptOptional | string | — | bis zu 5.000 Zeichen | Optional full prompt sent verbatim to the Photo-to-Anime LoRA (include the trigger phrase "transform into anime" when writing your own). Leave empty to use the default full-redraw template. |
aspect_ratioOptional | string | — | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, 9:21 | Optional output aspect ratio. Leave it empty to keep the shape of the photo. |
output_formatOptional | string | jpeg | jpeg, png, webp | File format of the returned image. |
seedOptional | integer | — | 0 bis 2147483647 | Random seed for controlled comparisons. |
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/photo-to-anime-v1/edit",
"input": {
"prompt": "transform into anime: redraw the whole photo as an anime illustration with clean line art, cel shading and anime eyes, keeping the same subjects, pose, clothing, colors and background",
"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"
