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.
Modeli deneyin
PNG, JPEG, WebP veya GIF · en fazla 20 MiB
PNG, JPEG, WebP veya GIF · en fazla 20 MiB
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
Geliştirmeye başlayın
Bu modeli SandBase Unified Run API üzerinden gönderin.
# 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"Bir SandBase API anahtarı oluşturun ve sunucu ortamınıza ayarlayın. Tüm istekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın veya bir depoya commit etmeyin.
Bu model kimliği ve girdileriyle /v1/run adresine POST gönderin. Yukarıdaki istek örneği gönderme ve yoklamayı içerir.
Durum completed, failed veya timeout olana kadar verilen run ID ile yoklama yapın. Çıktıyı yalnızca completed olduktan sonra okuyun.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Modelin image, video veya audio alanına herkese açık erişilebilir bir dosya URL'si verin. Desteklenen formatlar ve sınırlar her Playground girişinin yanında gösterilir.
Playground'daki desteklenen image alanlarında yükleme veya değiştirme kontrolünü kullanın. Video URL alanları barındırılan bir sürüş videosu kabul eder; video yükleme desteği anlamına gelmez.
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
Olası değerler: "upper", "lower", "overall", "inner", "outer"
aspect_ratiostringThe aspect ratio of the generated image.
Olası değerler: "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.
Varsayılan: 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.
Varsayılan: 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
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
Henüz örnek çıktı yayınlanmadı. Yanıtınızı incelemek için Playground → Result → JSON'u, tamamlanan bir run sonrasında kullanın.