Sam 3d Objects

Sam 3d Objects

Playground

Try it on WavespeedAI!

Advanced SAM 3D objects generation model for creating detailed 3D object models from images with text prompts and optional mask-based segmentation. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

Features

SAM 3D Objects (Image-to-3D with Optional Mask)

wavespeed-ai/sam-3d-objects is an advanced SAM-powered 3D object generation model that converts images into detailed 3D assets, with optional mask-based segmentation to isolate the target object for cleaner geometry and more stable reconstruction. Built for production with a ready-to-use REST inference API, best performance, no cold starts, and simple pay-per-run pricing.

🌟 Why it stands out

  • Mask-guided control (optional): isolate the object from cluttered backgrounds for cleaner 3D results.
  • Strong reconstruction stability: designed for consistent outputs in real production workflows.
  • Fast iteration loop: generate, tweak mask, re-run—ideal for asset refinement.
  • API-first: easy to integrate into 3D pipelines for ecommerce, games, and content tools.

⚙️ Capabilities

  • Image-to-3D object reconstruction
  • Optional mask-based segmentation for precise foreground extraction
  • Produces 3D assets suitable for downstream editing and refinement (format depends on endpoint configuration)
  • Works best for single-object images with clear outlines and minimal occlusion

💰 Pricing

  • $0.02 per run

✅ Best use cases

  • Rapid 3D asset creation for ecommerce visualization
  • Fast prototyping for games / XR / virtual worlds
  • Converting product photos into 3D models for catalogs and configurators
  • Segmentation-guided reconstruction when backgrounds are complex

🧠 Tips for best results

  • Use single, centered object images with good lighting and sharp edges.
  • If you provide a mask, ensure it matches the input image size and framing exactly.
  • Avoid heavy occlusions (hands covering objects, overlapping items) for best geometry.

More 3D Model Recommendations

Authentication

For authentication details, please refer to the Authentication Guide.

API Endpoints

Submit Task & Query Result


# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/sam-3d-objects" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{}'

# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
imagestringYes-Input image URL for 3D object generation.
promptstringNo-Text prompt to guide 3D object generation.
mask_imagesarrayNo--Optional array of mask image URLs for specific region processing.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction, the ID of the prediction to get
data.modelstringModel ID used for the prediction
data.outputsstringArray of URLs to the generated content (empty when status is not completed).
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2025 WaveSpeedAI. All rights reserved.