Grok Imagine Video 1.5 API-Referenz
1 bis 15 Sekunden lange Clips mit Ton und gesprochenem Text.
Mit einem einzigen PopNow-API-Schlüssel rufst du Grok Imagine Video 1.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
- xAI
- Ergebnis
- Video
- Ab
- $0.028 USD pro Sekunde Ergebnis
- Typische Dauer
- etwa 34 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
xai/grok-imagine-video-1.5/text-to-video
Preis
| Option | USD |
|---|---|
480p | $0.028 pro Sekunde Ergebnis |
720p | $0.051 pro Sekunde Ergebnis |
1080p | $0.09 pro Sekunde Ergebnis |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | bis zu 4.096 Zeichen | Describe the scene, the motion and any spoken line in quotes. |
aspect_ratioOptional | string | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 | Frame shape of the video. |
resolutionOptional | string | 480p | 480p, 720p, 1080p | Output height tier. Higher tiers cost more per second. |
duration_secondsOptional | integer | 6 | 1 bis 15 | Length of the video in whole seconds, 1 to 15. |
generate_audioOptional | boolean | true | — | Generate a matching soundtrack with the video. Turning it off returns a silent clip at the same price. |
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": "xai/grok-imagine-video-1.5/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": 6,
"resolution": "480p"
}
}'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
xai/grok-imagine-video-1.5/image-to-video
Preis
| Option | USD |
|---|---|
480p | $0.028 pro Sekunde Ergebnis |
720p | $0.051 pro Sekunde Ergebnis |
1080p | $0.09 pro Sekunde Ergebnis |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | bis zu 4.096 Zeichen | Describe how the scene moves from the first frame. Write @image1 to point at the reference image. |
image_urlPflicht | string (uri) | — | — | First frame of the video: JPEG, PNG or WebP up to 20 MB. |
last_image_urlOptional | string (uri) | — | — | Optional last frame. Leave it empty when loop is on. |
reference_image_urlsOptional | array<string (uri)> | — | bis zu 1 Einträge | Optional reference image (one) the prompt can name as @image1. Only 480p and 720p accept it. |
aspect_ratioOptional | string | auto | auto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 | Frame shape. auto follows the first frame. |
keyframesOptional | array<object> | [] | bis zu 4 Einträge | Up to four in-between frames, each with the second at which the video should pass through it. |
loopOptional | boolean | false | — | End on the same frame as the first one so the clip can loop. Do not combine it with a last frame. |
resolutionOptional | string | 480p | 480p, 720p, 1080p | Output height tier. Higher tiers cost more per second. |
duration_secondsOptional | integer | 6 | 1 bis 15 | Length of the video in whole seconds, 1 to 15. |
generate_audioOptional | boolean | true | — | Generate a matching soundtrack with the video. Turning it off returns a silent clip at the same price. |
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?wait=60" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "xai/grok-imagine-video-1.5/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": 6,
"resolution": "480p"
}
}'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
xai/grok-imagine-video-1.5/reference-to-video
Preis
| Option | USD |
|---|---|
480p | $0.09 pro Sekunde Ergebnis |
720p | $0.157 pro Sekunde Ergebnis |
Parameter
| Feld | Typ | Standardwert | Erlaubt | Bedeutung |
|---|---|---|---|---|
promptPflicht | string | — | bis zu 4.096 Zeichen | Describe the scene and name the references as @image1, @image2 and so on, in upload order. |
reference_image_urlsPflicht | array<string (uri)> | — | bis zu 7 Einträge | One to seven reference images (people, objects, places). Each image adds a small charge. |
aspect_ratioOptional | string | 16:9 | 16:9, 9:16, 1:1, 3:2, 2:3 | Frame shape of the video. |
resolutionOptional | string | 480p | 480p, 720p | Output height tier. Higher tiers cost more per second. |
duration_secondsOptional | integer | 6 | 1 bis 15 | Length of the video in whole seconds, 1 to 15. |
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 reference_image_urls 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": "xai/grok-imagine-video-1.5/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",
"reference_image_urls": [
"https://media.popnow.ai/influencer/examples/ava.webp"
],
"duration_seconds": 6,
"resolution": "480p"
}
}'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"
