ネイティブの同期音声
背景音楽・効果音・環境音、そしてリップシンクした台詞や歌を、動画と同じ工程で生成します。別途の音声ステップは不要です。
xAI の Grok Imagine を1つの統合 API で使い、AI 動画を生成。単一の REST エンドポイント、非同期ジョブ、Webhook を備え、xAI の個別アカウントの管理は不要です。
Grok Imagine Video を1回のAPIコールで統合できます。1つのキー、1つの統一エンドポイント、そしてApiframe上のすべてのモデルで共通の請求。
model: "grok-imagine-video" 背景音楽・効果音・環境音、そしてリップシンクした台詞や歌を、動画と同じ工程で生成します。別途の音声ステップは不要です。
最も得意なモードでは、元画像を最初のフレームとして扱ってそこからアニメーション化し、被写体のアイデンティティ・スタイル・ライティング・色を保持します。
フレームを逐次生成し、クリップ全体で被写体・ライティング・カメラを安定させます。髪・水・布・微表情の物理シミュレーションも洗練されています。
テキスト→動画、画像→動画、動画→動画、ショットを連結する動画延長、ルックを保つ参照ガイド付き生成までをカバーします。
クリップは1分未満でレンダリングされ、素早い A/B テストのために複数の創造的バリエーションを一度に生成できます。
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.
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 Accepted と jobId が返ります。ステータスが COMPLETED になるまで GET /v2/jobs/{id} をポーリングする(または webhook_url を指定する)と、result フィールドに出力URLが格納されます。
{
"jobId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"status": "QUEUED"
}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 スイートに含まれる xAI の動画モデルです。Aurora エンジンを基盤に、画像やテキストをネイティブの同期音声付きの短いシネマティッククリップに変換します。
はい。背景音楽・効果音・環境音、そしてリップシンクした台詞や歌を、動画と同じ工程でネイティブに生成します。
テキスト→動画、画像→動画、動画→動画、動画延長、参照ガイド付き生成に対応します。
クリップは通常1分未満でレンダリングされ、複数のバリエーションを同時に生成できます。
Apiframe のほか、Grok アプリと xAI の各サーフェスから利用できます。
解決しませんでしたか?
APIキーを取得すれば数分で Grok Imagine Video を統合できます — 従量課金。
ご質問はありますか? Discordに参加 または 営業に問い合わせる。