PopNowAPI-Doku
Hauptinhalt

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

OptionUSD
480p$0.028 pro Sekunde Ergebnis
720p$0.051 pro Sekunde Ergebnis
1080p$0.09 pro Sekunde Ergebnis

Parameter

FeldTypStandardwertErlaubtBedeutung
promptPflichtstring—bis zu 4.096 ZeichenDescribe the scene, the motion and any spoken line in quotes.
aspect_ratioOptionalstring16:916:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3Frame shape of the video.
resolutionOptionalstring480p480p, 720p, 1080pOutput height tier. Higher tiers cost more per second.
duration_secondsOptionalinteger61 bis 15Length of the video in whole seconds, 1 to 15.
generate_audioOptionalbooleantrue—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.

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": "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.

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

xai/grok-imagine-video-1.5/image-to-video

Preis

OptionUSD
480p$0.028 pro Sekunde Ergebnis
720p$0.051 pro Sekunde Ergebnis
1080p$0.09 pro Sekunde Ergebnis

Parameter

FeldTypStandardwertErlaubtBedeutung
promptPflichtstring—bis zu 4.096 ZeichenDescribe how the scene moves from the first frame. Write @image1 to point at the reference image.
image_urlPflichtstring (uri)——First frame of the video: JPEG, PNG or WebP up to 20 MB.
last_image_urlOptionalstring (uri)——Optional last frame. Leave it empty when loop is on.
reference_image_urlsOptionalarray<string (uri)>—bis zu 1 EinträgeOptional reference image (one) the prompt can name as @image1. Only 480p and 720p accept it.
aspect_ratioOptionalstringautoauto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3Frame shape. auto follows the first frame.
keyframesOptionalarray<object>[]bis zu 4 EinträgeUp to four in-between frames, each with the second at which the video should pass through it.
loopOptionalbooleanfalse—End on the same frame as the first one so the clip can loop. Do not combine it with a last frame.
resolutionOptionalstring480p480p, 720p, 1080pOutput height tier. Higher tiers cost more per second.
duration_secondsOptionalinteger61 bis 15Length of the video in whole seconds, 1 to 15.
generate_audioOptionalbooleantrue—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.

POST /api/v1/jobs/createTask?wait=60
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.

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

xai/grok-imagine-video-1.5/reference-to-video

Preis

OptionUSD
480p$0.09 pro Sekunde Ergebnis
720p$0.157 pro Sekunde Ergebnis

Parameter

FeldTypStandardwertErlaubtBedeutung
promptPflichtstring—bis zu 4.096 ZeichenDescribe the scene and name the references as @image1, @image2 and so on, in upload order.
reference_image_urlsPflichtarray<string (uri)>—bis zu 7 EinträgeOne to seven reference images (people, objects, places). Each image adds a small charge.
aspect_ratioOptionalstring16:916:9, 9:16, 1:1, 3:2, 2:3Frame shape of the video.
resolutionOptionalstring480p480p, 720pOutput height tier. Higher tiers cost more per second.
duration_secondsOptionalinteger61 bis 15Length 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.

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": "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.

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