靈活的參數
可設定 6 個已記錄的參數,包括 mask_url, output_count, reference_image_urls, rendering_speed, source_image_url。
Inpaint while preserving the referenced character identity
curl -X POST https://runapi.ai/api/v1/ideogram_v3/edit_image \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ideogram-v3-character-edit",
"image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
"prompt": "Create a movie poster for 'The Last Frontier' with the title in bold serif at the top, a space station in the background."
}'
import { IdeogramV3Client } from "@runapi.ai/ideogram-v3";
const client = new IdeogramV3Client();
const result = await client.editImage.run({
model: "ideogram-v3-character-edit",
image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
prompt: "Create a movie poster for 'The Last Frontier' with the title in bold serif at the top, a space station in the background.",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/ideogram_v3/edit_image",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"ideogram-v3-character-edit","image_url":"https://cdn.runapi.ai/public/samples/image.jpg","prompt":"Create a movie poster for 'The Last Frontier' with the title in bold serif at the top, a space station in the background."}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/ideogram_v3/edit_image");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'ideogram-v3-character-edit',
'image_url' => 'https://cdn.runapi.ai/public/samples/image.jpg',
'prompt' => 'Create a movie poster for \'The Last Frontier\' with the title in bold serif at the top, a space station in the background.',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.editImage().run({"model":"ideogram-v3-character-edit","image_url":"https://cdn.runapi.ai/public/samples/image.jpg","prompt":"Create a movie poster for 'The Last Frontier' with the title in bold serif at the top, a space station in the background."});
task.waitForResult();
require "runapi/ideogram_v3"
client = RunApi::IdeogramV3::Client.new
result = client.edit_image.run(
model: "ideogram-v3-character-edit",
image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
prompt: "Create a movie poster for 'The Last Frontier' with the title in bold serif at the top, a space station in the background."
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.editImage.Run({"model":"ideogram-v3-character-edit","image_url":"https://cdn.runapi.ai/public/samples/image.jpg","prompt":"Create a movie poster for 'The Last Frontier' with the title in bold serif at the top, a space station in the background."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model ideogram-v3-character-edit \
--endpoint edit_image \
--wait
7 個版本可用
選擇任意模型,數秒內即可開始生成。
選擇任意模型,數秒內即可開始生成。
| 提供者 | Ideogram |
| 模型 ID | ideogram-v3-character-edit |
| 模態 | Image |
| 任務類型 | Asynchronous |
| API 端點 | /api/v1/ideogram_v3/edit_image |
| 計費單位 | call |
| 輸入參數 | mask_url, output_count, reference_image_urls, rendering_speed, source_image_url, style |
| 目錄狀態 | 可正常運作 |
免費註冊後,在控制台建立 ideogram-v3-character-edit 的 API 金鑰。
向 /api/v1/ideogram_v3/edit_image 發送 POST 請求,並傳入 ideogram-v3-character-edit 模型 ID 和參數。
輪詢工作或按照回呼取得已完成的 ideogram-v3-character-edit 結果。
可設定 6 個已記錄的參數,包括 mask_url, output_count, reference_image_urls, rendering_speed, source_image_url。
開放 1 個公開 endpoint:edit_image。
按 call 計量,無需訂閱。
style暫無描述。 (auto, realistic, fiction)
mask_url暫無描述。
output_count暫無描述。 (1, 2, 3, 4)
rendering_speed暫無描述。 (turbo, balanced, quality)
source_image_url暫無描述。
reference_image_urls暫無描述。
自動生成適合電商 catalog、但冇 studio 攝影的 lifestyle 產品相。
在落實最終美術之前,快速構思場景同角色。
大規模生成獨特封面圖同插畫,適合 blog post 同文章。
傳入 quickstart 顯示嘅 model ID。
每個 key 的 rate limit 會按使用層級而定。請查看定價頁了解最新限制。
可以——variant 只係一個旗標。只要更改 model 參數就可以切換。
在可用 streaming 的情況下,RunAPI 會端到端串流。
可以在公開 GitHub repo 開 issue,或者電郵支援團隊。