seedinteger
The same seed and the same input given to the same version of the model will output the same image every time.
sandbase-ai/cat-vtonCatVTON is a virtual try-on model. It dresses the person in a photo with a garment from a second image, with controls for the covered body area, guidance, steps, and aspect ratio.
Coba model ini
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
CatVTON virtual try-on: dress the person in human_image_url with the garment in garment_image_url.
| Field | Type | Default | Notes |
|---|---|---|---|
aspect_ratio | 21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16 | — | Output frame shape. |
guidance_scale | number 0–20 | 2.5 | How strictly to follow the garment. |
num_inference_steps | integer 1–50 | 30 | More steps add detail and time. |
seed | integer | random | Fix it to compare prompt changes. |
cloth_type | upper / lower / overall / inner / outer | — | Which body area the garment covers. |
garment_image_url | image URL | — | Photo of the garment. |
human_image_url | image URL | — | Photo of the person. |
$0.00125 per image.
| Request | Price |
|---|---|
| One image | $0.0013 |
Failed runs are not charged.
Mulai membangun
Kirim model ini melalui 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": "sandbase-ai/cat-vton",
"cloth_type": "upper",
"guidance_scale": 2.5,
"human_image_url": "https://static.sandbase.ai/examples/bfl/flux-2/virtual-tryon/input_images_0.png",
"garment_image_url": "https://static.sandbase.ai/examples/bfl/flux-2/virtual-tryon/input_images_1.png",
"num_inference_steps": 30
}
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"Buat SandBase API key dan atur di environment server Anda. Semua permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key di server. Jangan tampilkan di kode browser atau commit ke repository.
POST ke /v1/run dengan ID model ini dan inputnya. Contoh permintaan di atas mencakup pengiriman dan polling.
Gunakan run ID yang dikembalikan untuk polling sampai status completed, failed, atau timeout. Baca output hanya setelah completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Kirim URL file yang dapat diakses publik di field image, video, atau audio model. Format dan batas yang didukung ditampilkan di samping setiap input Playground.
Gunakan kontrol upload atau replace pada field gambar yang didukung di Playground. Field URL video menerima video driving yang di-host; ini tidak berarti dukungan upload video.
seedintegerThe same seed and the same input given to the same version of the model will output the same image every time.
cloth_typestringType of the Cloth to be tried on. Options: upper: Upper body cloth lower: Lower body cloth overall: Full body cloth inner: Inner cloth, like T-shirt inside a jacket outer: Outer cloth, like a jacket over a T-shirt
Nilai yang mungkin: "upper", "lower", "overall", "inner", "outer"
aspect_ratiostringThe aspect ratio of the generated image.
Nilai yang mungkin: "21:9", "16:9", "3:2", "4:3", "5:4", "1:1", "4:5", "3:4", "2:3", "9:16"
guidance_scalenumberThe CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you.
Default: 2.5
Minimum: 0
Maksimum: 20
human_image_urlstringUrl for the human image.
garment_image_urlstringUrl to the garment image.
num_inference_stepsintegerThe number of inference steps to perform.
Default: 30
Minimum: 1
Maksimum: 50
{
"model": "sandbase-ai/cat-vton",
"cloth_type": "upper",
"guidance_scale": 2.5,
"human_image_url": "https://static.sandbase.ai/examples/bfl/flux-2/virtual-tryon/input_images_0.png",
"garment_image_url": "https://static.sandbase.ai/examples/bfl/flux-2/virtual-tryon/input_images_1.png",
"num_inference_steps": 30
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
Belum ada contoh output yang dipublikasikan. Gunakan Playground → Result → JSON setelah run selesai untuk melihat respons Anda.