imagestringwymagane
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.
Wypróbuj model
PNG, JPEG, WebP lub GIF · maksymalnie 20 MiB
0 / 4 items
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Zacznij tworzyć
Prześlij ten model przez 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"Utwórz klucz API SandBase i ustaw go w środowisku serwera. Wszystkie żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym ani nie commituj do repozytorium.
Wyślij POST do /v1/run z tym identyfikatorem modelu i jego danymi wejściowymi. Powyższy przykład żądania obejmuje wysyłanie i odpytywanie statusu.
Użyj zwróconego ID uruchomienia, aby odpytywać status do momentu completion, failed lub timeout. Odczytaj wynik dopiero po completion.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Przekaż publicznie dostępny URL pliku w polu image, video lub audio modelu. Obsługiwane formaty i limity są pokazane obok każdego pola wejściowego w Playground.
Użyj kontrolki upload lub replace w obsługiwanych polach image w Playground. Pola URL wideo akceptują hostowany film źródłowy; nie oznacza to obsługi przesyłania wideo.
imagestringwymaganeInput image; the subject should stand out from a clean background.
promptsarraywymagane1 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"
}
]
]
}Zakończone uruchomienie udostępnia swój wynik w output. Poniżej znajduje się zapisany przykład modelu, a nie nowa generacja.
Nie opublikowano jeszcze przykładowego output. Użyj Playground → Result → JSON po zakończonym uruchomieniu, aby sprawdzić odpowiedź.