彈性參數
可設定 1 個已記錄的參數,包括 source_image_url。
curl -X POST https://runapi.ai/api/v1/omnihuman/subject_detection \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "omnihuman-1.5-subject-detection",
"prompt": "根據這張人像和旁白音訊生成一段 720p 說話頭像影片,並使用主體遮罩讓說話者保持穩定分離。"
}'
import { OmnihumanClient } from "@runapi.ai/omnihuman";
const client = new OmnihumanClient();
const result = await client.subjectDetection.run({
model: "omnihuman-1.5-subject-detection",
prompt: "根據這張人像和旁白音訊生成一段 720p 說話頭像影片,並使用主體遮罩讓說話者保持穩定分離。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/omnihuman/subject_detection",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"omnihuman-1.5-subject-detection","prompt":"根據這張人像和旁白音訊生成一段 720p 說話頭像影片,並使用主體遮罩讓說話者保持穩定分離。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/omnihuman/subject_detection");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'omnihuman-1.5-subject-detection',
'prompt' => '根據這張人像和旁白音訊生成一段 720p 說話頭像影片,並使用主體遮罩讓說話者保持穩定分離。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.subjectDetection().run({"model":"omnihuman-1.5-subject-detection","prompt":"根據這張人像和旁白音訊生成一段 720p 說話頭像影片,並使用主體遮罩讓說話者保持穩定分離。"});
task.waitForResult();
require "runapi/omnihuman"
client = RunApi::Omnihuman::Client.new
result = client.subject_detection.run(
model: "omnihuman-1.5-subject-detection",
prompt: "根據這張人像和旁白音訊生成一段 720p 說話頭像影片,並使用主體遮罩讓說話者保持穩定分離。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.subjectDetection.Run({"model":"omnihuman-1.5-subject-detection","prompt":"根據這張人像和旁白音訊生成一段 720p 說話頭像影片,並使用主體遮罩讓說話者保持穩定分離。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model omnihuman-1.5-subject-detection \
--endpoint subject_detection \
--wait
3 個版本可用
選擇任一模型,幾秒內即可開始生成。
目前沒有可用的模型。
| 提供者 | Bytedance |
| 模型 ID | omnihuman-1.5-subject-detection |
| 模態 | 工具 |
| 任務類型 | Asynchronous |
| API 端點 | /api/v1/omnihuman/subject_detection |
| 計費單位 | 次呼叫 |
| 輸入參數 | source_image_url |
| 目錄狀態 | 可直接上線 |
免費註冊後,從控制台建立 omnihuman-1.5-subject-detection 的 API 金鑰。
向 /api/v1/omnihuman/subject_detection 傳送 POST 請求,並傳入 omnihuman-1.5-subject-detection 模型 ID 與參數。
輪詢工作或依照回呼取得已完成的 omnihuman-1.5-subject-detection 結果。
可設定 1 個已記錄的參數,包括 source_image_url。
公開 1 個公共 endpoint:subject_detection。
依 次呼叫 計量,無需訂閱。
source_image_url暫無描述。
將典藏照片放大到可印刷的高解析度,適用於型錄與手冊。
將 SD 影片修復並升級到 4K,用於型錄重發。
批次移除圖片背景,將數千位賣家的商品照格式一致化。
傳入 quickstart 顯示的 model ID。
每個金鑰的速率限制會依使用方案而調整。請查看定價頁面以了解目前限制。
可以——variant 只是旗標。只要變更 model 參數即可切換。
只要支援串流,RunAPI 就會端到端串流。
請在公開 GitHub repo 提交 issue,或寄信給支援。
不需要。你的 RunAPI API key 足以存取此 variant 及目錄中的所有其他模型,無需底層供應商帳戶。