バリアント · xAI / Grok Imagine

grok-imagine-image-2-0 API

xAI / Grok Imagine

RunAPI から Grok Imagine ファミリーの grok-imagine-image-2-0 を利用できます。従量課金、サブスクリプション不要、失敗した生成は課金されません。

稼働中 · image · 商用利用対応
runapi.ai
curl -X POST https://runapi.ai/api/v1/grok_imagine/segment_map \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-image-2-0",
  "prompt": "チェスの駒をチェス盤に置くロボットの手の短い動画を生成してください。ドラマチックなライティング、スロー再生で。"
}'
import { GrokImagineClient } from "@runapi.ai/grok-imagine";

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

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

use RunApi\GrokImagine\GrokImagineClient;

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

client = RunApi::GrokImagine::Client.new
result = client.segment_map.run(
    model: "grok-imagine-image-2-0",
    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 grok-imagine-image-2-0 は同じ RunAPI 認証、model skill ワークフロー、従量料金で利用できます。

  • 統合 API key
  • Model skill セットアップ
  • モデル ID リファレンス
  • 失敗した生成は課金されません
料金

料金

失敗した生成は課金されません
Edit image
$0.04 / image
Text to image
$0.04 / image
Segment map
Free / image
仕様

仕様

モデル ID grok-imagine-image-2-0
プロバイダー xAI
モダリティ image
タスク種別 asynchronous
課金 call
Endpoint /api/v1/grok_imagine/segment_map
商用利用 はい
カタログステータス 稼働中
MODELS

モデルスキル — grok-imagine-image-2-0

スキルを1回インストールし、構築中にこのページのバリアントIDを使用してください。

# 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.
仕組み

grok-imagine-image-2-0 の使い方

01

モデルを選ぶ

アプリのワークフローに合うモデルとバリアントを選びます。

02

モデル ID を渡す

リクエスト body にこのバリアント ID を指定します。

03

タスクを実行

リクエストを送信し、返された task ID を保存します。

04

出力を取得

タスク完了時にポーリングまたは callback で結果を受け取ります。

違い

grok-imagine-image-2-0 の比較

VS GROK-IMAGINE-EDIT-IMAGE

テキストから画像生成、セグメンテーションマップ、対象を絞った画像編集

1枚のソース画像からプロンプトガイドのスタイル転送と構成編集

VS GROK-IMAGINE-IMAGE-TO-VIDEO

テキストから画像生成、セグメンテーションマップ、対象を絞った画像編集

入力画像がフレーム1になり、モーション+カメラでアニメート

VS GROK-IMAGINE-TEXT-TO-IMAGE

テキストから画像生成、セグメンテーションマップ、対象を絞った画像編集

Auroraモデル、5つのアスペクト比、リアリスティック/アーティスティック/アニメスタイル

ユースケース

このバリアントの用途

画像生成

テキスト prompt からビジュアルアセットを作成します。

編集

prompt に沿って既存画像を変換します。

バッチ制作

SDK で再現可能な生成を行います。

FAQ

grok-imagine-image-2-0 に関するよくある質問

grok-imagine-image-2-0 はどう選択しますか?

quickstart に表示されるモデル ID を渡してください。

料金は従量課金ですか?

はい。呼び出しまたは単位ごとの従量課金です。

今すぐ開始

今日から Grok Imagine を始める。