Grok Imagine Video icon

Grok Imagine API

xAI の Grok Imagine を1つの統合 API で使い、AI 動画を生成。単一の REST エンドポイント、非同期ジョブ、Webhook を備え、xAI の個別アカウントの管理は不要です。

Grok Imagine Video を1回のAPIコールで統合できます。1つのキー、1つの統一エンドポイント、そしてApiframe上のすべてのモデルで共通の請求。

model: "grok-imagine-video"

Grok Imagine Video の特長

ネイティブの同期音声

背景音楽・効果音・環境音、そしてリップシンクした台詞や歌を、動画と同じ工程で生成します。別途の音声ステップは不要です。

忠実な画像→動画

最も得意なモードでは、元画像を最初のフレームとして扱ってそこからアニメーション化し、被写体のアイデンティティ・スタイル・ライティング・色を保持します。

Aurora エンジンのモーション整合性

フレームを逐次生成し、クリップ全体で被写体・ライティング・カメラを安定させます。髪・水・布・微表情の物理シミュレーションも洗練されています。

一貫した動画ワークフロー

テキスト→動画、画像→動画、動画→動画、ショットを連結する動画延長、ルックを保つ参照ガイド付き生成までをカバーします。

バリエーションも高速

クリップは1分未満でレンダリングされ、素早い A/B テストのために複数の創造的バリエーションを一度に生成できます。

Grok Imagine Video で作成

Apiframeの Grok Imagine Video API で生成した出力例です。

A 5-second clip animating this portrait, the subject smiles, looks to camera, and says a short greeting, soft studio light.

A 5-second product clip, a slow push-in on a bottle as condensation forms, gentle rim light, light ambient sound.

A 5-second clip of this landscape coming alive, wind through the grass, drifting clouds, birds crossing, natural ambience.

A 5-second character clip, the figure turns and walks toward camera, dust kicking up, a low footstep rumble.

A 5-second sci-fi shot of a crystal-powered rocket launching from a red desert planet, roaring engine audio.

A 5-second anime-style clip of a girl on a rooftop at sunset, hair in the breeze, soft city ambience.

概要

エンドポイント
POST /v2/videos/generate
モデルID
grok-imagine-video
パラメータキー
grokParams
モダリティ
動画
プロバイダー
xAI
平均完了時間
~180s

機能

アスペクト比1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3
長さ6秒, 10秒, 15秒
画像入力対応
平均時間~180秒

クイックスタート

APIキーを添えて POST /v2/videos/generate に1回リクエストを送るだけで Grok Imagine Video による生成が始まります。レスポンスには、ポーリングまたはWebhookで受け取れる jobId が返ります。

curl -X POST https://api.apiframe.ai/v2/videos/generate \
  -H "X-API-Key: afk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
        "prompt": "a cinematic sunrise over a futuristic cityscape, smooth camera push-in",
        "model": "grok-imagine-video",
        "grokParams": {
            "reference_images": [
                "https://example.com/input.jpg"
            ]
        }
    }'
import requests

response = requests.post(
    "https://api.apiframe.ai/v2/videos/generate",
    headers={
        "X-API-Key": "afk_your_api_key_here",
        "Content-Type": "application/json",
    },
    json={
        "prompt": "a cinematic sunrise over a futuristic cityscape, smooth camera push-in",
        "model": "grok-imagine-video",
        "grokParams": {
            "reference_images": [
                "https://example.com/input.jpg"
            ]
        }
    },
)
print(response.json())  # { "jobId": "...", "status": "QUEUED" }
const response = await fetch("https://api.apiframe.ai/v2/videos/generate", {
  method: "POST",
  headers: {
    "X-API-Key": "afk_your_api_key_here",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "prompt": "a cinematic sunrise over a futuristic cityscape, smooth camera push-in",
    "model": "grok-imagine-video",
    "grokParams": {
      "reference_images": [
        "https://example.com/input.jpg"
      ]
    }
  }),
});
const { jobId } = await response.json();
console.log(jobId);

レスポンスとジョブのライフサイクル

生成は非同期で行われます。送信が成功すると 202 AcceptedjobId が返ります。ステータスが COMPLETED になるまで GET /v2/jobs/{id} をポーリングする(または webhook_url を指定する)と、result フィールドに出力URLが格納されます。

1. 送信レスポンス (202)

{
  "jobId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
  "status": "QUEUED"
}

2. 結果をポーリング

curl https://api.apiframe.ai/v2/jobs/JOB_ID \
  -H "X-API-Key: afk_your_api_key_here"
import requests, time

while True:
    job = requests.get(
        "https://api.apiframe.ai/v2/jobs/JOB_ID",
        headers={"X-API-Key": "afk_your_api_key_here"},
    ).json()
    if job["status"] in ("COMPLETED", "FAILED"):
        break
    time.sleep(2)
print(job["result"])
let job;
do {
  await new Promise((r) => setTimeout(r, 2000));
  job = await fetch("https://api.apiframe.ai/v2/jobs/JOB_ID", {
    headers: { "X-API-Key": "afk_your_api_key_here" },
  }).then((r) => r.json());
} while (job.status !== "COMPLETED" && job.status !== "FAILED");
console.log(job.result);

入力スキーマ

Grok Imagine Video エンドポイントが受け付けるリクエストパラメータです。モデル固有のオプションは、下記のパラメータオブジェクトの中にネストされます。

パラメータ 必須 デフォルト 許可値 / 範囲 説明
prompt string 必須 生成する内容のテキスト説明。
model string 必須 "grok-imagine-video" "grok-imagine-video" このエンドポイントのモデル識別子。
grokParams.reference_images string[] (URLs) 任意 Reference images

よくある質問

Grok Imagine Video APIに関するよくある質問をまとめました。

Grok Imagine Video とは何ですか?

Grok Imagine スイートに含まれる xAI の動画モデルです。Aurora エンジンを基盤に、画像やテキストをネイティブの同期音声付きの短いシネマティッククリップに変換します。

音声は生成されますか?

はい。背景音楽・効果音・環境音、そしてリップシンクした台詞や歌を、動画と同じ工程でネイティブに生成します。

どんな入力に対応していますか?

テキスト→動画、画像→動画、動画→動画、動画延長、参照ガイド付き生成に対応します。

どのくらい速いですか?

クリップは通常1分未満でレンダリングされ、複数のバリエーションを同時に生成できます。

どこで利用できますか?

Apiframe のほか、Grok アプリと xAI の各サーフェスから利用できます。

解決しませんでしたか?

Grok Imagine Video API で開発を始めよう

APIキーを取得すれば数分で Grok Imagine Video を統合できます — 従量課金。

無料クレジットですぐに開始
すべてのモデルを1つのAPIで
Webhook・SDK・冪等性に対応
プロバイダーのアカウント不要

ご質問はありますか? Discordに参加 または 営業に問い合わせる