typestring
person: chibi sprite; other: bead-art icon.
Mặc định: "other"
Giá trị có thể dùng: "person", "other"
meshy/creative-lab/fidget-pixelTurns a photo into a multi-color pixel-art fidget board, returned as a 3MF.
Thử model
PNG, JPEG, WebP hoặc GIF · tối đa 20 MiB
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Turns a photo into a multi-color pixel-art fidget board, returned as a 3MF.
| Field | Type | Default | Notes |
|---|---|---|---|
image | string, required | — | Photo of the subject, as an image URL or base64 data URI (JPG, PNG or WebP). |
type | person / other | "other" | person: chibi sprite; other: bead-art icon. |
shape | square / hex | "square" | Footprint of each piece. |
grid_size | 16 / 32 | 32 | Cells per side. |
color_count | integer 2–16 | 8 | Number of colors. |
url: Multi-color 3MF.concept_image: Pixel-art image.$1.44 per object (concept image + 3D build).
Bắt đầu xây dựng
Gửi model này qua 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": "meshy/creative-lab/fidget-pixel",
"type": "other",
"image": "https://v3b.fal.media/files/b/zebra/3osHJDI8IZ2wl6sGtEUeB_image.png",
"shape": "square",
"grid_size": 32,
"color_count": 8
}
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"Tạo một SandBase API key và đặt nó trong môi trường máy chủ của bạn. Tất cả request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key trên máy chủ. Không hiển thị trong mã trình duyệt hoặc commit vào repository.
POST tới /v1/run với model ID này và các đầu vào của nó. Ví dụ request ở trên bao gồm cả bước gửi và polling.
Dùng run ID được trả về để poll cho đến khi trạng thái là completed, failed hoặc timeout. Chỉ đọc đầu ra sau khi completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Cung cấp một URL tệp có thể truy cập công khai trong trường image, video hoặc audio của model. Các định dạng và giới hạn được hỗ trợ hiển thị bên cạnh từng input trong Playground.
Dùng điều khiển upload hoặc replace trên các trường image được hỗ trợ trong Playground. Trường URL video chấp nhận một video driving được host; điều này không đồng nghĩa hỗ trợ tải lên video.
typestringperson: chibi sprite; other: bead-art icon.
Mặc định: "other"
Giá trị có thể dùng: "person", "other"
imagestringbắt buộcPhoto of the subject, as an image URL or base64 data URI (JPG, PNG or WebP).
shapestringFootprint of each piece.
Mặc định: "square"
Giá trị có thể dùng: "square", "hex"
grid_sizeintegerCells per side.
Mặc định: 32
Giá trị có thể dùng: 16, 32
color_countintegerNumber of colors.
Mặc định: 8
Tối thiểu: 2
Tối đa: 16
{
"model": "meshy/creative-lab/fidget-pixel",
"type": "other",
"image": "https://v3b.fal.media/files/b/zebra/3osHJDI8IZ2wl6sGtEUeB_image.png",
"shape": "square",
"grid_size": 32,
"color_count": 8
}Một run đã hoàn tất sẽ hiển thị kết quả trong output. Phần sau là ví dụ đã lưu của model, không phải một lần tạo mới.
Chưa có đầu ra ví dụ nào được công bố. Dùng Playground → Result → JSON sau khi run hoàn tất để xem phản hồi của bạn.