imagestring必須
Input image; the subject should stand out from a clean background.
tripo3d/tripo/edit-multiviewTripo Edit Multiview generates front, left, back and right views from one image and applies text edits to chosen views, keeping the views consistent.
モデルを試す
PNG、JPEG、WebP、GIF · 最大 20 MiB
0 / 4 items
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Tripo Edit Multiview generates front, left, back and right views from one image and applies text edits to chosen views, keeping the views consistent.
| Field | Type | Default | Notes |
|---|---|---|---|
image | string, required | — | Input image; the subject should stand out from a clean background. |
prompts | array, required | — | 1 to 4 edits, one per view: {"view": "front |
url: Front view (edited if requested).left_view: Left view.back_view: Back view.right_view: Right view.$0.10 for the four views plus $0.05 per edited view. Failed runs are not charged.
開発を始める
このモデルをSandBase Unified Run API経由で送信します。
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "tripo3d/tripo/edit-multiview",
"image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png",
"prompts": [
[
{
"view": "front",
"prompt": "make the horn bright red"
}
]
]
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"SandBaseのAPIキーを作成し、サーバー環境に設定してください。すべてのリクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開したり、リポジトリにコミットしたりしないでください。
このモデルIDと入力を使って /v1/run にPOSTしてください。上のリクエスト例には送信とポーリングが含まれています。
返されたrun IDを使って、ステータスがcompleted、failed、timeoutになるまでポーリングしてください。出力はcompleted後にのみ読み取ってください。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"モデルのimage、video、またはaudioフィールドに、公開アクセス可能なファイルURLを指定してください。対応形式と制限は各Playground入力の横に表示されます。
Playgroundの対応する画像フィールドでアップロードまたは置換を使用してください。video URLフィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
imagestring必須Input image; the subject should stand out from a clean background.
promptsarray必須1 to 4 edits, one per view: {"view": "front|left|back|right", "prompt": "..."} (prompt up to 1,024 characters).
{
"model": "tripo3d/tripo/edit-multiview",
"image": "https://static.sandbase.ai/examples/tripo3d/tripo-h3.1/image-to-3d/input_image_0.png",
"prompts": [
[
{
"view": "front",
"prompt": "make the horn bright red"
}
]
]
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
まだ例の出力は公開されていません。完了したrunのレスポンスを確認するには、Playground → Result → JSON を使用してください。