パラメータ
prompt必須タイプ
text
値
text description
デフォルト
required
価格
—
Grok Imagine 2.0 region edit — 一時的に利用できません。
grok-imagine-2.0-ext:whiteこのモデルはカタログに最低価格のみ掲載されています。
Grok Imagine 2.0 region edit — 一時的に利用できません。
生成は非同期で実行されます。ジョブを作成し、完了するまでステータスをポーリングします。
Bearerヘッダーにキーを渡します。APIはjobIdステータスをポーリングするために使用します。
curl -sS https://getvibeapi.com/api/media/generate \
-H "Authorization: Bearer $GETVIBE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary '{"model":"grok-imagine-2.0-ext:white","prompt":"a beautiful landscape","opts":{"mode":"region_edit","image_url":"https://example.com/image_url.png","resolution":"1K"}}'const response = await fetch('https://getvibeapi.com/api/media/generate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.GETVIBE_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "grok-imagine-2.0-ext:white",
"prompt": "a beautiful landscape",
"opts": {
"mode": "region_edit",
"image_url": "https://example.com/image_url.png",
"resolution": "1K"
}
}),
});
if (!response.ok) throw new Error(`GetVibe API: ${response.status}`);
const { jobId } = await response.json();
console.log(jobId);GetVibe API経由でGrok Imagine 2.0 EXTにリクエストする際のパラメータ。
prompt必須image_urlmoderesolutionimage_file_idimage_base64| パラメータ | タイプ | 値 | デフォルト | 価格 |
|---|---|---|---|---|
prompt必須 | text | text description | required | — |
image_url | URL | Public image URL | — | — |
mode | option selection | Region edit (default) | Region edit | Included in the base price |
resolution | option selection | 1K (default) · 2K | 1K | Included in the base price |
image_file_id | text | Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…) | — | Included in the base price |
image_base64 | text | Alternative to image_url: the file inline, as base64 or a data: URI | — | Included in the base price |
リクエスト: POST https://getvibeapi.com/api/media/generate。価格はUSDです。
Grok Imagine 2.0 EXTの価格を確認中です。この契約について、プロバイダーは初回確定価格をまだ公開していません。価格が確定すると生成を利用できるようになります。
Grok Imagine 2.0 EXTの機械可読な契約には、リクエストスキーマ、操作、制限、ポーリング、レスポンスの例が含まれています。
# Grok Imagine 2.0 EXT
公開モデル: grok-imagine-2.0-ext:white
ジョブを作成: POST /api/media/generate
ステータスを確認: GET /api/media/jobs/{jobId}
## 入力パラメータ
- `prompt` (text): text description; デフォルト: required
- `image_url` (URL): Public image URL; デフォルト: —
- `mode` (option selection): Region edit (default); デフォルト: Region edit
- `resolution` (option selection): 1K (default) · 2K; デフォルト: 1K
- `image_file_id` (text): Alternative to image_url: the id of your own file from POST /v1/files (file-pv-…); デフォルト: —
- `image_base64` (text): Alternative to image_url: the file inline, as base64 or a data: URI; デフォルト: —
## 公開バリアント
- `grok-imagine-2.0-ext:white`: デフォルトGrok Imagine 2.0 EXTの料金はリクエスト時です。料金は現在の為替レートに基づいて動的に計算されます。
はい、APIは完全にOpenAI互換です。base_urlをhttps://getvibeapi.com/v1に変更してキーを設定するだけで、コードの他の部分はそのまま使えます。