imagestringzorunlu
Photo of the subject, as an image URL or base64 data URI (JPG, PNG or WebP).
meshy/creative-lab/keycapTurns a photo into a full-color custom mechanical keyboard keycap (Cherry MX 1u by default).
Modeli deneyin
PNG, JPEG, WebP veya GIF · en fazla 20 MiB
Sırada ne yapmak istersiniz?
Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
{
"image": "https://static.sandbase.ai/examples/6052dcf3-2984-44bb-af04-06a5ba10a3b2/input/da5f1801-1b40-4a13-8c22-ae1e7d913256.jpg"
}{
"image": "https://static.sandbase.ai/examples/bb1f2353-100c-43da-a470-0c3f28072ed3/input/23e96edc-5a44-4951-b4bb-cff69484fc63.jpg"
}Turns a photo into a full-color custom mechanical keyboard keycap (Cherry MX 1u by default).
| Field | Type | Default | Notes |
|---|---|---|---|
image | string, required | — | Photo of the subject, as an image URL or base64 data URI (JPG, PNG or WebP). |
url: Keycap GLB.obj_zip: OBJ package.concept_image: Design image.$2.48 per keycap (design + 3D build).
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": "meshy/creative-lab/keycap",
"image": "https://v3b.fal.media/files/b/zebra/3osHJDI8IZ2wl6sGtEUeB_image.png"
}
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.
imagestringzorunluPhoto of the subject, as an image URL or base64 data URI (JPG, PNG or WebP).
{
"model": "meshy/creative-lab/keycap",
"image": "https://v3b.fal.media/files/b/zebra/3osHJDI8IZ2wl6sGtEUeB_image.png"
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
[
{
"concept_image": "https://static.sandbase.ai/examples/6052dcf3-2984-44bb-af04-06a5ba10a3b2/output/7e656504-fcb4-4d94-b498-401fc412546d.jpg",
"obj_zip": "https://static.sandbase.ai/examples/6052dcf3-2984-44bb-af04-06a5ba10a3b2/output/017aead4-95a8-41ff-a91e-6dca144d68cd.zip",
"url": "https://static.sandbase.ai/examples/6052dcf3-2984-44bb-af04-06a5ba10a3b2/output/4e404d1d-9839-4ba2-8d19-a7bfbb770be6.glb"
}
]