Video · xAI

Grok Imagine API

テキスト→画像、画像→動画、音声編集を含む画像・動画生成向けにGrok Imagine APIにアクセスできます。

稼働中 · 6 variants · から $0.020
runapi.ai
curl -X POST https://runapi.ai/api/v1/grok_imagine/edit_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-video-1.5-fast",
  "image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
  "prompt": "チェスの駒をチェス盤に置くロボットの手の短い動画を生成してください。ドラマチックなライティング、スロー再生で。"
}'
import { GrokImagineClient } from "@runapi.ai/grok-imagine";

const client = new GrokImagineClient();
const result = await client.editImage.run({
    model: "grok-imagine-video-1.5-fast",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "チェスの駒をチェス盤に置くロボットの手の短い動画を生成してください。ドラマチックなライティング、スロー再生で。",
});
<?php

require __DIR__ . "/vendor/autoload.php";

use RunApi\GrokImagine\GrokImagineClient;

$client = new GrokImagineClient();
$result = $client->editImage->run([
        'model' => 'grok-imagine-video-1.5-fast',
        'image_url' => 'https://cdn.runapi.ai/public/samples/image.jpg',
        'prompt' => 'チェスの駒をチェス盤に置くロボットの手の短い動画を生成してください。ドラマチックなライティング、スロー再生で。',
]);
require "runapi/grok_imagine"

client = RunApi::GrokImagine::Client.new
result = client.edit_image.run(
    model: "grok-imagine-video-1.5-fast",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "チェスの駒をチェス盤に置くロボットの手の短い動画を生成してください。ドラマチックなライティング、スロー再生で。"
)
npx skills add runapi-ai/grok-imagine -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp

# Codex
codex plugin install runapi-mcp@agents

# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
@runapi.ai/grok-imagine v1
概要

Grok ImagineはxAIのテキスト→画像、画像編集、テキスト→動画、画像→動画をカバーする画像・動画生成スイートです。xAIのGrokインテリジェンスと統合し、複雑で細やかなプロンプトを解釈します。

  • 品質とレイテンシ目標に合わせたモデルバリアント
  • 統合 API key
  • Model skill に docs、schema、セットアップメモを同梱
  • 失敗した生成は課金されません
バリアント

バリアント

Variant Billing From
grok-imagine-edit-image call $0.040 見る →
grok-imagine-image-to-video second $0.020 見る →
grok-imagine-text-to-image call $0.040 見る →
grok-imagine-text-to-video second $0.020 見る →
grok-imagine-video-1.5-fast call $0.750 見る →
grok-imagine-video-1.5-preview second $0.020 見る →
料金

Utility endpoints

Shared endpoints for this model line, such as extension, enhancement, or conversion actions.

Extend video
$0.10-$0.30 / video
Extension length: 6s · Output resolution: 480p $0.10
Extension length: 6s · Output resolution: 720p $0.20
Extension length: 10s · Output resolution: 480p $0.20
Extension length: 10s · Output resolution: 720p $0.30
Upscale image
$0.10 / request
MODELS

アプリ開発用に Grok Imagine skill をインストール

モデル docs、schema、料金メモ、セットアップ手順をコード作業環境に読み込みます。

# Install the model skill for app development workflows
npx skills add runapi-ai/grok-imagine -g
Installs docs, schemas, pricing context, and setup notes into your developer workspace.
Or use this setup request in your coding tool:
Install the Grok Imagine skill for this app:

1. Add runapi-ai/grok-imagine with the skills installer.
2. Load SKILL.md in this workspace.
3. Use its docs, schemas, pricing notes, and setup steps when adding model features.
4. Confirm the install path when done.
仕組み

この model skill で構築する方法

01

モデルを選ぶ

出力タイプ、品質基準、レイテンシ目標に合うモデルとバリアントを選びます。

02

一度だけ認証

対応するすべてのモデルに RunAPI key を使います。

03

skill をインストール

機能実装の前に model skill をコード作業環境へ追加します。

04

出力を受け取る

task ID でポーリングするか、生成完了時の callback を処理します。

背景

Grok Imagine の位置づけ

Grok ImagineはGrokをベースにしたxAIのクリエイティブAIスイートで、画像と動画の生成をカバーしています。RunAPI経由では、すべてのGrok Imagineエンドポイントが1つのAPIキーを共有します。

Provider
xAI
Modality
Video
RUNAPI を選ぶ理由

RunAPI 経由で Grok Imagine を使う理由

1つの API key

モデルやプロバイダーをまたいで同じ認証情報を使えます。

Skill-ready

model skill に schema、セットアップメモ、料金コンテキスト、モデル ID が含まれます。

予測しやすい請求

呼び出し前に従量料金を確認できます。

FAQ

よくある質問

このモデルはどう呼び出しますか?

model skill をインストールし、RunAPI key とセットアップメモに従ってください。

失敗した生成は課金されますか?

失敗した生成は課金されません

アプリケーションから呼び出せますか?

はい。コード作業環境に model skill をインストールし、モデル機能を追加するときに利用してください。

今すぐ開始

Grok Imagine で構築を開始。