Grok Imagine Image 2.0 API
API 統合の前に Grok Imagine Image 2.0 を試す。
正式統合の前に、出力品質のテスト、クレジット消費の見積もり、サンプル生成ができます。
Create image task
Fixed to grok-imagine-image-2.0Optional. Add 1-3 images to switch to editing mode. Each input image is billed once per request.

クレジットを追加する前にテストコストを把握。
料金は解像度(1K/2K)× 品質(Low/Medium)のシンプルなマトリクスです。1 枚のサンプルコストから始めて、テスト予算を選びましょう。
First Test Cost
Text-to-Image - 1K - Low qualityOne 1K Low prompt-only image
About 333 tests with $10 in credits.
Start with the 1K Low tier for drafts, then switch to Medium or 2K for the final check. Input images add a per-image fee once per request.
Testing Budget Guide
Pick an amount based on how many tests you expect.Good for a first validation.
Good for prompt iteration.
Good before production integration.
Common Cost Examples
Estimated cost for one generated image. Multiply the output rate by n for multi-image requests; input image fees are charged once per request.
Model Pricing
| Item | Rule | Rate | Billing |
|---|---|---|---|
| 1K · Low | Fastest tier (~10s) for drafts and prompt iteration. | $0.030/image-25% 2.04 cr/image$0.040 公式価格 | Per output image |
| 1K · Medium (default) | Default tier with better detail; generation may take 10-75s. | $0.045/image-25% 3.06 cr/image$0.060 公式価格 | Per output image |
| 2K · Low | Higher resolution with the fast quality tier. | $0.045/image-25% 3.06 cr/image$0.060 公式価格 | Per output image |
| 2K · Medium | Highest tier for final quality checks. | $0.060/image-25% 4.08 cr/image$0.080 公式価格 | Per output image |
Optional Add-ons & Billing NotesInput image pricing and multi-image requests.
| Item | Rule | Rate | Billing |
|---|---|---|---|
| Input images | Applied to each input image in image_urls (max 3), charged once per request regardless of n. | $0.0075/image-25% 0.51 cr/image$0.010 公式価格 | Per input image |
| Multiple outputs (n) | n can be 1-10. The output rate is multiplied by n; failed tasks are not charged. | Output rate × n | Per request |
Grok Imagine Image 2.0 の画像生成・編集能力
Grok Imagine Image 2.0 は公式モデル ID grok-imagine-image-2.0 を使用し、1 つの API ルートでテキストからの画像生成と 1〜3 枚の参照画像編集に対応。13 種類のアスペクト比、1K/2K 出力、1 リクエスト最大 10 枚のバッチ生成を提供します。
Grok Imagine Image 2.0 のガイドと比較
Grok Imagine Image 2.0 のコア画像機能

1 つのプロンプトで商用ビジュアルを生成

参照画像で編集をディレクション

複数の参照画像から合成
Grok Imagine Image 2.0 API が適する画像ワークフロー
マーケティングビジュアルの生成
入力画像で編集
n でバッチ生成
ティアでコスト管理
画像 API の位置づけとモデル選択
| 特徴 | Grok Imagine Image 2.0 | Seedream 5.0 Pro | GPT Image |
|---|---|---|---|
| 開始価格 | 約 $0.030 / 枚 | 約 $0.034 / 枚から | トークンまたはティア制 |
| 出力ティア | Low/Medium × 1K/2K | 1K / 2K | 品質ティア |
| 参照入力 | 最大 3 枚 | 最大 10 枚 | 対応 |
| 1 リクエストの枚数 | 1〜10 枚 | 1 枚 | モデルによる |
| 最適な用途 | 高速反復、バッチ制作、参照編集 | 広告、商品クリエイティブ、画像編集 | OpenAI 画像ワークフロー |
モデル ID・参照画像・出力の制限
公式モデル ID と 2 つの画像モード
モデル ID は grok-imagine-image-2.0 です。プロンプトのみならテキストから画像生成、入力画像を 1〜3 枚追加すると同じ ID のまま画像編集モードに切り替わります。別の編集用モデル ID は不要です。
品質と解像度は独立
quality(low/medium)は生成の強度と速度を、resolution(1k/2k)は出力ピクセルを制御します。どちらも料金マトリクスに入り、4 つの組み合わせは基準価格の 1×/1.5×/1.5×/2× です。
入力料金は 1 回のみ
入力画像 1 枚ごとにリクエストあたり基準価格の 0.25× が加算され、n には依存しません。失敗したタスクは課金されません。
EvoLink 統一 API で Grok Imagine Image 2.0 を利用する理由
生成前にリアルタイムのコストを確認
タスク送信前に、解像度、品質、出力数、参照画像に基づく現在価格と推定クレジットを確認できます。
統一 API
1 つの API キーで Grok、Seedream、Nano Banana、GPT Image、動画、音声、LLM モデルを利用可能。
統一残高
1 つのコンソールでクレジット、支出、モデル使用量を管理。
タスク状態の追跡
画像タスクが送信済み、処理中、完了、失敗のどれかをいつでも確認。
安定した結果ホスティング
生成画像は EvoLink CDN に転送保存され、上流リンク失効後もアクセス可能。
Grok モデルファミリー



EvoLink の他の画像モデル




よくある質問
Grok Imagine Image 2.0 API の公式モデル ID は?
公式モデル ID は grok-imagine-image-2.0 です。テキストからの画像生成と 1〜3 枚の参照画像編集は同じ ID を使用し、別の編集モデルへの切り替えは不要です。
Grok Imagine Image 2.0 の料金は?
解像度 × 品質のマトリクスで課金されます。1K Low が基準価格、1K Medium と 2K Low は 1.5 倍、2K Medium は 2 倍です。出力料金は n 倍になり、入力画像 1 枚ごとにリクエストあたり基準価格の 0.25 倍が加算されます。
API 統合前に試せますか?
はい。Playground で出力品質のテスト、クレジットの見積もり、リクエスト JSON の確認ができます。
quality と resolution の違いは?
quality(low/medium)は生成の強度を制御します。low は約 10 秒、medium は 10〜75 秒でよりディテールが向上します。resolution(1k/2k)は出力ピクセルを制御します。互いに独立したパラメータで、どちらも価格に影響します。
画像編集はどう使いますか?
image_urls に 1〜3 個の画像 URL をプロンプトと共に渡します。モデルは自動的に編集モードに切り替わります。複数画像の場合は、プロンプト内で <IMAGE_0>、<IMAGE_1>、<IMAGE_2> として各画像を指定します。
n で複数枚生成できますか?
はい。1 リクエストで n は 1〜10 まで指定できます。出力料金は n 倍になりますが、入力画像料金はリクエストごとに 1 回のみです。
入力画像は課金されますか?
はい。image_urls の入力画像 1 枚ごとに基準価格の 0.25 倍が加算されます。リクエストごとに 1 回のみで、n には依存しません。公開 http(s) URL のみ受け付け、base64 アップロードは拒否されます。
カスタムピクセルサイズは指定できますか?
できません。size は 13 種のアスペクト比プリセットと auto のみ受け付けます。カスタムの幅 × 高さは非対応で、解像度は独立した 1k/2k パラメータで制御します。
生成に失敗したら?
失敗したタスクは課金されません。上流の拒否、コンテンツモデレーションによるブロック、タイムアウトを含め、事前確保された金額は全額返金されます。
チャージ後はどこへ?
Playground に戻ってテストを続けるか、API キーを作成して model に grok-imagine-image-2.0 を指定し /v1/images/generations を呼び出してください。
API Reference
Select endpoint
Authentication
All APIs require Bearer Token authentication.
Authorization:
Bearer YOUR_API_KEY/v1/images/generationsGenerate Image
Grok Imagine Image 2.0 is xAI's image generation and editing model — text-to-image and image editing share the same model name. Omit image_urls for text-to-image; pass 1-3 reference images and it automatically switches to image editing, no model change needed.
Asynchronous processing mode, use the returned task ID to .
Generated image links are valid for 24 hours, please save them promptly.
Request Parameters
modelstringRequiredDefault: grok-imagine-image-2.0Image generation model name. Text-to-image and image editing share this model name; the mode switches automatically depending on whether image_urls is provided.
| Value | Description |
|---|---|
| grok-imagine-image-2.0 | Grok Imagine Image 2.0 model |
grok-imagine-image-2.0promptstringRequiredPrompt describing the image you want to generate, or how to edit the reference images you provide.
Notes
- Multi-image reference syntax: use <IMAGE_0>, <IMAGE_1>, <IMAGE_2> in the prompt to refer to the 1st, 2nd and 3rd reference image respectively
- Indexes start at 0 and map one-to-one to the order of the image_urls array
- Example: Place the person from <IMAGE_0> into the scene of <IMAGE_1>
Cyberpunk Tokyo street at night, neon lights reflecting on the wet pavementimage_urlsarrayOptionalReference image URL list for image-to-image and image editing functions.
Notes
- Number of input images per request: 0~3 (omitted = text-to-image, 1~3 = image editing)
- Only publicly accessible http / https image URLs are supported; base64 and data URLs are not supported
- Supported file formats: .jpeg, .jpg, .png, .webp
- Image URLs must be directly accessible by the server, or directly download when accessed (typically ending with image file extensions such as .png, .jpg)
- In image editing scenarios the reference images incur an additional charge, counted once per request and not multiplied by n
["https://example.com/person.png", "https://example.com/scene.png"]sizestringOptionalDefault: autoAspect ratio of the generated image, defaults to auto.
| Value | Description |
|---|---|
| auto | The model decides the ratio itself; omitting this parameter is equivalent to auto (output is usually portrait) |
| 1:1 | Square |
| 4:3 / 3:4 | Classic landscape / portrait |
| 3:2 / 2:3 | Standard landscape / portrait |
| 16:9 / 9:16 | Widescreen / mobile portrait |
| 2:1 / 1:2 | Ultra-wide / ultra-tall |
| 19.5:9 / 9:19.5 | Full-screen phone landscape / portrait |
| 20:9 / 9:20 | Ultra-wide landscape / portrait |
Notes
- Values outside the 13 supported ratios are not supported; custom WIDTHxHEIGHT pixel sizes are not accepted
16:9resolutionstringOptionalDefault: 1KPixel tier of the output image, defaults to 1K; supports the 1K and 2K tiers.
| Value | Description |
|---|---|
| 1K | Standard resolution (default) |
| 2K | Higher resolution |
Notes
- This model does not support 4K
- Values are case-insensitive
1KqualitystringOptionalDefault: mediumGeneration quality tier, controls how deeply the model thinks, defaults to medium.
| Value | Description |
|---|---|
| low | Faster output, lower cost |
| medium | Better image quality and detail |
Notes
- This model only supports the low / medium tiers; other values such as high are not supported
- quality (quality tier) and resolution (pixel tier) are independent and can be combined freely
- Values are case-insensitive
mediumnintegerOptionalDefault: 1Number of images to generate, range 1~10, defaults to 1.
| Value | Description |
|---|---|
| 1-10 | Any integer between 1 and 10 |
Notes
- Each image is billed independently, cost grows linearly with n
- The additional charge for reference images is counted once per request and is not multiplied by n
- When the task completes, results returns n independent image links
1callback_urlstringOptionalHTTPS callback address after task completion.
Notes
- Triggered when task is completed, failed, or cancelled; sent after billing confirmation
- HTTPS only; callbacks to internal IP addresses are prohibited; max length 2048 chars
- Timeout: 10s, max 3 retries on failure (after 1s / 2s / 4s)
- Callback body format is consistent with the task query API response; a 2xx response is considered successful, other status codes trigger a retry
https://your-domain.com/webhooks/image-task-completed