falImage to jsonComing soon

fal-ai/vggt-1b

fal-ai/vggt-1b is an image to json tool from fal that runs in the background and returns structured JSON. Coming soon: listed with its price, not yet open to runs.

This tool is listed but not yet available to run.

Price pending

Pricing

Price pending.

Limits

Runs
In the background
Returns
json
Longest queue wait
3600s
Run deadline
1800s
Largest inline input
1024 KB
Largest input file
500 MB
Largest output
4768 MB
Outputs per run
16

Input

FieldKindDefaultDescription
image_urlsURLs or files—Input images to reconstruct. Accepts JPEG, PNG, WEBP and the other formats Pillow decodes. Images are padded to a square and resized so the longest side is 518 pixels.
video_urlURL or file—Optional input video. Frames are sampled every `frame_sampling_rate`-th frame (the first and last frames are always included) and appended after `image_urls`.
frame_sampling_ratenumber (whole)
1 to 1000
24Sample every n-th frame of `video_url`. The first and last frames of the video are always included. Ignored when no video is given.
alpha_blend_ontoone of
keep, white, black, mean
whiteHow to handle images with an alpha channel. 'white'/'black' composite onto that background, 'mean' composites onto the ImageNet mean RGB, and 'keep' discards alpha and keeps the original pixel values.
export_prediction_datatrue or falsetrueReturn one JSON file per frame with the raw model outputs (camera pose encoding, depth, depth confidence, mask).
export_depth_mapstrue or falsetrueReturn one 16-bit grayscale PNG depth raster per frame. Pixel values map linearly from `depth_range` onto 0-65535.
export_point_cloudtrue or falsetrueReturn a GLB scene holding the fused coloured point cloud plus a cone mesh per estimated camera.
array_encodingone of
base64, list
base64How arrays are encoded inside the prediction JSON files. 'base64' emits {data, shape, dtype} objects; 'list' emits nested JSON lists, which are far larger.
exclude_keyslist—Keys to omit from each prediction JSON file.
confidence_percentilenumber
0 to 100
50Drop this percentage of the lowest-confidence points before building the point cloud. 0 keeps every point.
max_pointsnumber (whole)
1000 to 5000000
250000Upper bound on the number of points written to the GLB. Points above the default 250,000-point budget are evenly subsampled to limit GLB serialization and upload latency.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/vggt-1b",
    "input": {}
  }'