Sam 3
/v1/runSam 3 3d Objects by Meta - convert 2D images into 3D models with AI. Generate textured 3D assets from single photos for games, AR/VR, e-commerce, and digital content creation.
Request body
Submit an async generation request. The model field selects the model; other fields are model-specific input parameters.
Model identifier. Set to meta/sam-3/3d-objects.
Default: meta/sam-3/3d-objects
Text prompt for auto-segmentation when no masks provided (e.g., 'chair', 'lamp')
Default: car
URL of the image to reconstruct in 3D
Point prompts for auto-segmentation when no masks provided
Default:
Detection confidence threshold (0.1-1.0). Lower = more detections but less precise. If not set, uses the model's default.
Range: 0.1 to 1
Box prompts for auto-segmentation when no masks provided. Multiple boxes supported - each produces a separate object mask for 3D reconstruction.
Default:
Optional URL to external pointmap/depth data (NPY or NPZ format) for improved 3D reconstruction depth estimation
If True, exports GLB with baked texture and UVs instead of vertex colors.
Default: false
Optional list of mask URLs (one per object). If not provided, use prompt/point_prompts/box_prompts to auto-segment, or entire image will be used.
Random seed for reproducibility
Response Schema
The submit endpoint returns a run response. If its status is pending or running, poll GET /v1/run/{id} with the returned opaque ID until it reaches a terminal state.
Opaque SandBase run identifier. Use it exactly as returned; no prefix is guaranteed.
Current public run status.
Allowed values: pending, running, completed, failed, timeout
Public SandBase model name used for this run.
Present only for completed runs. Each object is capability-specific; inspect the selected model schema for its fields.
Present only for failed or timeout runs. Contains a public error type and sanitized message.
Stable public error category.
Sanitized error message safe to show to clients.
Usage details when available.
Model capabilities
Capabilities declared by the model registry.
Default: image-to-3d
Execution mode declared by the model registry.
Default: async