PopNowAPI ドキュメント
本文

Grok Imagine Video 1.5 API リファレンス

音声とセリフ付きの1〜15秒動画、時間指定のキーフレームとシームレスなループに対応

PopNow の API キー 1 つで、Grok Imagine Video 1.5 を自分のコードから呼び出せます。送るモデル ID、受け付ける入力フィールド、1 回あたりの料金(USD)、ターミナルに貼ってそのまま動くリクエストをこのページにまとめました。

パラメーターの説明はモデルの入力 schema から取っているため、英語のみです。

概要

開発元
xAI
出力
動画
最安
$0.028 USD 出力 1 秒あたり
目安の所要時間
約 34 秒

料金は USD で表示され、PopNow の残高から差し引かれます。受付時に最大料金を確保し、完了後に実際の使用量で精算して差額を返却します。失敗したタスクは課金されません。実行前の正確な見積もりは POST /api/v1/jobs/quote で取得できます。

動画を作成

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

料金

オプションUSD
480p$0.028 出力 1 秒あたり
720p$0.051 出力 1 秒あたり
1080p$0.09 出力 1 秒あたり

パラメーター

フィールド型既定値指定できる値説明
prompt必須string—4,096 文字までDescribe the scene, the motion and any spoken line in quotes.
aspect_ratio任意string16:916:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3Frame shape of the video.
resolution任意string480p480p, 720p, 1080pOutput height tier. Higher tiers cost more per second.
duration_seconds任意integer61〜15Length of the video in whole seconds, 1 to 15.
generate_audio任意booleantrue—Generate a matching soundtrack with the video. Turning it off returns a silent clip at the same price.

リクエスト例

このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。

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"
  }
}'

レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。

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"

画像から動画

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

料金

オプションUSD
480p$0.028 出力 1 秒あたり
720p$0.051 出力 1 秒あたり
1080p$0.09 出力 1 秒あたり

パラメーター

フィールド型既定値指定できる値説明
prompt必須string—4,096 文字までDescribe how the scene moves from the first frame. Write @image1 to point at the reference image.
image_url必須string (uri)——First frame of the video: JPEG, PNG or WebP up to 20 MB.
last_image_url任意string (uri)——Optional last frame. Leave it empty when loop is on.
reference_image_urls任意array<string (uri)>—1 件までOptional reference image (one) the prompt can name as @image1. Only 480p and 720p accept it.
aspect_ratio任意stringautoauto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3Frame shape. auto follows the first frame.
keyframes任意array<object>[]4 件までUp to four in-between frames, each with the second at which the video should pass through it.
loop任意booleanfalse—End on the same frame as the first one so the clip can loop. Do not combine it with a last frame.
resolution任意string480p480p, 720p, 1080pOutput height tier. Higher tiers cost more per second.
duration_seconds任意integer61〜15Length of the video in whole seconds, 1 to 15.
generate_audio任意booleantrue—Generate a matching soundtrack with the video. Turning it off returns a silent clip at the same price.

リクエスト例

このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。

例の image_url には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。

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"
  }
}'

レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。

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"

参考素材から動画

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

料金

オプションUSD
480p$0.09 出力 1 秒あたり
720p$0.157 出力 1 秒あたり

パラメーター

フィールド型既定値指定できる値説明
prompt必須string—4,096 文字までDescribe the scene and name the references as @image1, @image2 and so on, in upload order.
reference_image_urls必須array<string (uri)>—7 件までOne to seven reference images (people, objects, places). Each image adds a small charge.
aspect_ratio任意string16:916:9, 9:16, 1:1, 3:2, 2:3Frame shape of the video.
resolution任意string480p480p, 720pOutput height tier. Higher tiers cost more per second.
duration_seconds任意integer61〜15Length of the video in whole seconds, 1 to 15.

リクエスト例

このリクエストはそのまま実行できます。省略したフィールドには既定値が入ります。先にキーを環境変数 POPNOW_API_KEY に設定してください。

例の reference_image_urls には PopNow のサンプル素材を使っています。自分の公開 HTTPS リンク、アップロードしたファイル、保存済みアセットに置き換えてください。

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"
  }
}'

レスポンスにはすぐに taskId が入ります。結果は GET /api/v1/jobs/recordInfo で取得するか、callBackUrl を付けて通知を受け取ります。

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"

次に読む

このページの内容