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 an accepted generation task. Poll the result endpoint with the returned id for terminal outputs or errors.
Error message if the task failed. Empty on success.
Unique identifier for the generation task.
Model ID used for the prediction.
Array of generated content. Empty when status is not completed.
Status of the task: pending, running, completed, failed, or timeout.
Allowed values: pending, running, completed, failed, timeout
Model capabilities
Capabilities declared by the model registry.
Default: image-to-3d
Execution mode declared by the model registry.
Default: async

