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
| Option | USD |
|---|---|
Standard | $0.096 pro Sekunde Ergebnis |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | bis zu 15.000 Zeichen | Describe the scene, motion, camera, and sound. Put spoken dialogue in quotes. |
aspect_ratioOptional | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | Output video aspect ratio. |
generate_audioOptional | boolean | true | — | Generate synchronized stereo dialogue, effects, ambience, and music. Turning audio off removes the audio stream at the same per-second rate. |
duration_secondsOptional | integer | 5 | 4 bis 30 | Video length in whole seconds, from 4 to 30. Billed per requested second. |
seedOptional | integer | — | 0 bis 2147483647 | Optional 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.
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.
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
| Option | USD |
|---|---|
Standard | $0.096 pro Sekunde Ergebnis |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
image_urlPflicht | string (uri) | — | — | Opening frame image URL. The video starts from this still. |
promptOptional | string | — | bis zu 15.000 Zeichen | Optional motion, transition, camera, and sound instructions. |
last_image_urlOptional | string (uri) | — | — | Optional closing frame image URL to anchor the end of the clip. |
aspect_ratioOptional | string | auto | auto, 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | Output aspect ratio. Leave on auto to follow the closest ratio to the opening frame. |
generate_audioOptional | boolean | true | — | Generate synchronized stereo dialogue, effects, ambience, and music. Turning audio off removes the audio stream at the same per-second rate. |
duration_secondsOptional | integer | 5 | 4 bis 30 | Video length in whole seconds, from 4 to 30. Billed per requested second. |
seedOptional | integer | — | 0 bis 2147483647 | Optional 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.
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.
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
| Option | USD |
|---|---|
Standard | $0.096 pro Sekunde Ergebnis |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | bis zu 15.000 Zeichen | Describe the scene and what each reference contributes. Refer to uploaded files as @image_1, @video_1, and @audio_1 in upload order. |
reference_image_urlsOptional | array<string (uri)> | — | bis zu 10 Einträge | Reference images (up to 10) for subjects, outfits, objects, or settings. Refer to them as @image_1, @image_2, etc. |
reference_video_urlsOptional | array<string (uri)> | — | bis zu 5 Einträge | Reference 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_urlsOptional | array<string (uri)> | — | bis zu 5 Einträge | Reference 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_ratioOptional | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 | Output video aspect ratio. |
generate_audioOptional | boolean | true | — | Generate synchronized stereo dialogue, effects, ambience, and music. Turning audio off removes the audio stream at the same per-second rate. |
duration_secondsOptional | integer | 5 | 4 bis 30 | Video length in whole seconds, from 4 to 30. Billed per requested second. |
seedOptional | integer | — | 0 bis 2147483647 | Optional 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.
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.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
