PopNowAPI-Doku
Hauptinhalt

MAGI-2 API-Referenz

1080p-Szenen von 4 bis 30 Sekunden mit eigenem Ton, aus Text, Keyframes oder gemischten Referenzen

Mit einem einzigen PopNow-API-Schlüssel rufst du MAGI-2 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
Sand.ai
Ergebnis
Video
Ab
$0.096 USD pro Sekunde Ergebnis
Typische Dauer
etwa 710 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.

Video erstellen

sand-ai/magi-2/text-to-video

Preis

OptionUSD
Standard$0.096 pro Sekunde Ergebnis

Parameter

FeldTypStandardwertErlaubtBedeutung
promptPflichtstring—bis zu 15.000 ZeichenDescribe the scene, motion, camera, and sound. Put spoken dialogue in quotes.
aspect_ratioOptionalstring16:916:9, 9:16, 1:1, 4:3, 3:4, 21:9Output video aspect ratio.
generate_audioOptionalbooleantrue—Generate synchronized stereo dialogue, effects, ambience, and music. Turning audio off removes the audio stream at the same per-second rate.
duration_secondsOptionalinteger54 bis 30Video length in whole seconds, from 4 to 30. Billed per requested second.
seedOptionalinteger—0 bis 2147483647Optional random seed. Omit for a random result.

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": "sand-ai/magi-2/text-to-video",
  "input": {
    "prompt": "A paper boat drifts down a rain-soaked street at dusk, neon signs reflecting in the water, slow tracking shot at ground level",
    "duration_seconds": 5
  }
}'

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 zu Video

sand-ai/magi-2/image-to-video

Preis

OptionUSD
Standard$0.096 pro Sekunde Ergebnis

Parameter

FeldTypStandardwertErlaubtBedeutung
image_urlPflichtstring (uri)——Opening frame image URL. The video starts from this still.
promptOptionalstring—bis zu 15.000 ZeichenOptional motion, transition, camera, and sound instructions.
last_image_urlOptionalstring (uri)——Optional closing frame image URL to anchor the end of the clip.
aspect_ratioOptionalstringautoauto, 16:9, 9:16, 1:1, 4:3, 3:4, 21:9Output aspect ratio. Leave on auto to follow the closest ratio to the opening frame.
generate_audioOptionalbooleantrue—Generate synchronized stereo dialogue, effects, ambience, and music. Turning audio off removes the audio stream at the same per-second rate.
duration_secondsOptionalinteger54 bis 30Video length in whole seconds, from 4 to 30. Billed per requested second.
seedOptionalinteger—0 bis 2147483647Optional random seed. Omit for a random result.

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": "sand-ai/magi-2/image-to-video",
  "input": {
    "prompt": "He lands softly on the rooftop, laughs and turns toward the camera while the balloons sway in the evening breeze; slow push-in",
    "image_url": "https://media.popnow.ai/influencer/examples/marco.webp",
    "duration_seconds": 5
  }
}'

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"

Referenz zu Video

sand-ai/magi-2/reference-to-video

Preis

OptionUSD
Standard$0.096 pro Sekunde Ergebnis

Parameter

FeldTypStandardwertErlaubtBedeutung
promptPflichtstring—bis zu 15.000 ZeichenDescribe the scene and what each reference contributes. Refer to uploaded files as @image_1, @video_1, and @audio_1 in upload order.
reference_image_urlsOptionalarray<string (uri)>—bis zu 10 EinträgeReference images (up to 10) for subjects, outfits, objects, or settings. Refer to them as @image_1, @image_2, etc.
reference_video_urlsOptionalarray<string (uri)>—bis zu 5 EinträgeReference videos (up to 5; 2–30 s each, 30 s combined; longer clips are trimmed) for camera movement or pacing. Refer to them as @video_1, @video_2, etc.
reference_audio_urlsOptionalarray<string (uri)>—bis zu 5 EinträgeReference audio clips (up to 5; 2–30 s each, 30 s combined; longer clips are trimmed) for voice, music, or rhythm. Refer to them as @audio_1, @audio_2, etc.
aspect_ratioOptionalstring16:916:9, 9:16, 1:1, 4:3, 3:4, 21:9Output video aspect ratio.
generate_audioOptionalbooleantrue—Generate synchronized stereo dialogue, effects, ambience, and music. Turning audio off removes the audio stream at the same per-second rate.
duration_secondsOptionalinteger54 bis 30Video length in whole seconds, from 4 to 30. Billed per requested second.
seedOptionalinteger—0 bis 2147483647Optional random seed. Omit for a random result.

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": "sand-ai/magi-2/reference-to-video",
  "input": {
    "prompt": "The man from the reference image jogs across a sunlit rooftop at golden hour and smiles at the camera; smooth tracking shot",
    "duration_seconds": 5
  }
}'

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