Advanced SAM 3D body generation model for creating detailed 3D human body models from images with optional mask-based segmentation. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Idle
$0.02per run·~50 / $1






SAM 3D Body (wavespeed-ai/sam-3d-body) generates a 3D human body asset from a single input image, with an optional mask to isolate the body region. It’s designed for practical pipelines where you want fast, repeatable 3D body reconstruction from photos and screenshots.
You provide the source image (and optionally a mask image). The API returns output URL(s) for the generated 3D result.
mask_image for cleaner results when the background is busy.image, plus optional mask_image)—easy to plug into automation.created / processing / completed / failed) and output URLs when finished.This model is image-conditioned and does not accept a text prompt. Your “instruction” is primarily the image content (and optional mask_image).
Input
image must be a publicly accessible URL when calling the REST API.Optional mask
mask_image should match the same framing and dimensions as image.
Use the mask when:
the background is cluttered,
multiple people appear,
the body boundary is ambiguous (similar colors, low contrast).
mask_image
image (commonly a binary or high-contrast foreground mask).After you finish configuring the parameters, click Run, preview the result, and iterate if needed.
$0.02 per run
mask_image as a control knob. If the output includes background artifacts or misses body parts, add a mask and re-run.Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/wavespeed-ai/sam-3d-body with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Sam 3d Body below.
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/sam-3d-body" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WAVESPEED_API_KEY" \
-d '{
"image": "https://example.com/your-input.jpg"
}'
# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
-H "Authorization: Bearer $WAVESPEED_API_KEY"
# When status is "completed", read the output from data.outputs[0].// npm install wavespeed
const WaveSpeed = require('wavespeed');
const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env
const result = await client.run("wavespeed-ai/sam-3d-body", {
"image": "https://example.com/your-input.jpg"
});
console.log(result.outputs[0]); // → URL of the generated output# pip install wavespeed
import wavespeed
output = wavespeed.run(
"wavespeed-ai/sam-3d-body",
{
"image": "https://example.com/your-input.jpg"
}
)
print(output["outputs"][0]) # → URL of the generated outputSam 3d Body is a WaveSpeedAI model for 3D asset generation from images, exposed as a REST API on WaveSpeedAI. Advanced SAM 3D body generation model for creating detailed 3D human body models from images with optional mask-based segmentation. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/wavespeed-ai/sam-3d-body.
Sam 3d Body starts at $0.020 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
Key inputs: `image`, `mask_image`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/wavespeed-ai/sam-3d-body.
Average end-to-end generation time on WaveSpeedAI is around 15 seconds per request — measured across recent runs. Queue time scales with global demand; live status is visible in the prediction record.
Commercial usage rights depend on the model's license, set by its provider (WaveSpeedAI). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.