MuseSpark
MuseSpark
Models

Sam 3D Body API guide

Sam 3D Body API: Reconstruct a 3D body asset from an image with Sam 3D Body. An optional mask can identify the intended body region.

This item is no longer listed in the published catalog. This historical guide is retained for existing integrations. Browse available models.

Model overview

Reconstruct a 3D body asset from an image with Sam 3D Body. An optional mask can identify the intended body region.

API integration

DocumentationValue
API invocation identifiersam-3d-body
IntegrationAsync task API

Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.

Request parameters

Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.

imagestringNon-nullRequired

Input image URL for 3D body generation or segmentation.

Media types: image/*.

mask_imagestringNon-nullOptional

Optional mask image URL for specific region processing.

Media types: image/*.

No parameters match. Clear the search or reset the filters.

Model rules

Dependencies

  • The optional mask must match the source image framing and dimensions. Use it to isolate the intended person when the background is cluttered or multiple people appear.

Reference media

  • This model reconstructs a human body from one image. Use a clear full-body subject with minimal occlusion, good lighting and visible limbs.

Model behavior

  • SAM 3D Body is image-conditioned; it has no text-prompt input. Change the source image or aligned mask to influence reconstruction.

Request examples

Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.

Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.

Standard request

curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
  -H "Authorization: Bearer $MUSESPARK_API_KEY" \
  -H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
  -H 'Content-Type: application/json' \
  -d '{
  "item_key": "sam-3d-body",
  "parameters": {
    "image": "YOUR_IMAGE"
  }
}'

Parameters used: image.

Output

Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.

Troubleshooting

For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.

If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.

The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.