xAI

Grok Imagine edit image

圖像

根據一張或多張來源圖片進行 prompt 引導的風格轉換及構圖編輯

模型健康狀態 數據不足
curl -X POST https://runapi.ai/api/v1/grok_imagine/edit_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "grok-imagine-edit-image",
  "image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
  "prompt": "生成一段短片:一隻機械手將棋子放在棋盤上,戲劇性燈光,慢動作。"
}'
https://runapi.ai 1 endpoint
Playground

試用 Grok Imagine edit image

選擇任意模型,數秒內即可開始生成。

預計費用: $0.04 / 張圖片

登入以使用 RunAPI 生成內容。

登入以生成

登入後即可使用可用的語言模型開始生成。

規格

技術詳情

提供者 xAI
模型 ID grok-imagine-edit-image
模態 圖像
任務類型 Asynchronous
API 端點 /api/v1/grok_imagine/edit_image
計費單位 次請求
輸入參數 callback_url, enable_safety_checker, mask_indices, model, prompt, source_image_url, source_task_id
目錄狀態 可正常運作
使用方法

3 個步驟使用此模型

  1. 取得 API 金鑰

    免費註冊後,在控制台建立 grok-imagine-edit-image 的 API 金鑰。

  2. 發送請求

    向 /api/v1/grok_imagine/edit_image 發送 POST 請求,並傳入 grok-imagine-edit-image 模型 ID 和參數。

  3. 取得結果

    輪詢工作或按照回呼取得已完成的 grok-imagine-edit-image 結果。

此模型提供的功能

靈活的參數

可設定 5 個已記錄的參數,包括 enable_safety_checker, mask_indices, prompt, source_image_url, source_task_id。

Endpoint 涵蓋範圍

開放 1 個公開 endpoint:edit_image。

Webhook 推送

非同步任務接受回調 URL,用於接收完成通知。

按用量計費

按 次請求 計量,無需訂閱。

Grok Imagine edit image 收費

API endpoint
解析度
時長
價格
edit_image
暫不可用
次請求
$0.04 / 張圖片
API 參考

端點規格

端點
POST /api/v1/grok_imagine/edit_image
模型 ID
grok-imagine-edit-image
工作類型
edit_image
最長時長
暫無資料
解析度
暫無資料
長寬比
暫無資料
輸出格式
暫無資料
平均生成時間
暫無資料

請求參數

prompt

選填 value

Optional image editing instruction.

callback_url

選填 value

Webhook URL for terminal Task delivery.

mask_indices

選填 value

Not accepted by this model.

source_task_id

選填 value

Not accepted by this model.

source_image_url

必填 value

Public source image URL.

enable_safety_checker

選填 value

Enable content safety checks.

使用場景

產品攝影

自動生成適合電商 catalog、但冇 studio 攝影的 lifestyle 產品相。

遊戲及概念美術

在落實最終美術之前,快速構思場景同角色。

編輯插畫

大規模生成獨特封面圖同插畫,適合 blog post 同文章。

FAQ

關於 Grok Imagine edit image 的常見問題

點樣選擇 grok-imagine-edit-image?

傳入 quickstart 顯示嘅 model ID。

這個 variant 的 rate limit 係多少?

每個 key 的 rate limit 會按使用層級而定。請查看定價頁了解最新限制。

之後可以切換 variant 嗎?

可以——variant 只係一個旗標。只要更改 model 參數就可以切換。

支援 streaming 嗎?

在可用 streaming 的情況下,RunAPI 會端到端串流。

我應該在邊度回報品質問題?

可以在公開 GitHub repo 開 issue,或者電郵支援團隊。

正在與團隊一起建立?

我們可以協助企業設定、整合和技術問題。

聯絡我們