콘텐츠로 건너뛰기

Sam 3 · 3D Body

통합

모델 id sam-3/3d-body
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/sam-3/3d-body?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

이 요청: ≈$0.02 20 API 크레딧 이 페이지에서 실행

API 키 받기
Meta · 3D

첫 번째 결과가 여기에 표시됩니다

아래에서 요청을 작성하고 API 키로 실행하세요. 출력은 스토리지에 복사되며, 영구 보관하거나 7일 동안 무료로 보관할 수 있습니다.

요청 만들기

컨트롤은 모델 스키마에서 생성됩니다. 값을 변경하면 코드와 가격이 업데이트됩니다.

•필수 image_url
파일을 끌어다 놓거나

사람이 보이는 이미지 URL입니다.

고급 mask · export_meshes · include_3d_keypoints · include_mhr_params
mask_url
파일을 끌어다 놓거나

자동 사람 탐지를 대체하고 자동 경계 상자 계산에 사용할 데이터를 제공하는 선택적 이진 마스크 이미지 URL입니다. 사람은 흰색, 배경은 검은색으로 인코딩하세요.

POST /run/sam-3/3d-body?wait=20 견적 → $0.02
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/sam-3/3d-body?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

이 요청 실행

키는 이 브라우저에 유지됩니다. Doitong API로만 전송되며, 기억하기를 선택한 경우에만 localStorage에 저장됩니다. API 키 받기

Sam 3 · 3D Body 정보

한 이미지에 있는 사람들의 3D 인체 메시를 생성합니다. 사람은 자동으로 감지되며, `mask_url`에 이진 마스크(사람은 흰색)를 전달할 수도 있습니다. 토글로 사람별 .ply 내보내기, GLB의 3D 키포인트 마커, 메타데이터의 전체 MHR 파라미터 세트를 제어합니다. GLB, 메시, 메타데이터와 시각화 이미지를 반환합니다.

매개변수

표준 이름이나 네이티브 이름 중 하나만 보내세요. 표준 이름

이름유형 기본값허용됨 설명
image_url필수 image
유형url · image
사람이 보이는 이미지 URL입니다.
mask_url선택 사항 mask
유형url · image
자동 사람 탐지를 대체하고 자동 경계 상자 계산에 사용할 데이터를 제공하는 선택적 이진 마스크 이미지 URL입니다. 사람은 흰색, 배경은 검은색으로 인코딩하세요.
export_meshes선택 사항
유형boolean
기본값true
사람마다 별도의 .ply 메시 파일을 내보낼지 여부입니다.
include_3d_keypoints선택 사항
유형boolean
기본값true
시각화를 위해 GLB 메시에서 구형 3D 키포인트 마커를 추가할지 여부입니다.
include_mhr_params선택 사항
유형boolean
기본값true
각 사람의 응답 메타데이터에 완전한 MHR (Meta Human Representation) 데이터 또는 카메라 매개변수와 키포인트만 (`false`) 포함할지 여부입니다. 완전한 데이터에는 표정과 형태, 포즈와 원시 포즈, 관절 좌표와 전역 회전, 패킹된 모델 매개변수가 포함됩니다.
필수 표준 이름, 사용 가능

파일 매개변수에는 공개 https:// URL, 최대 10 MB의 data: URI 또는 업로드의 file_url을 사용할 수 있습니다. 파일

출력

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "sam-3/3d-body",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 20,
    "usd": "0.02",
    "charged": 20,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "model_glb": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "visualization": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "meshes": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200
      }
    ],
    "metadata": {
      "num_people": 1,
      "people": [
        {
          "person_id": 1,
          "bbox": [],
          "focal_length": 1.0,
          "pred_cam_t": [],
          "keypoints_2d": [],
          "keypoints_3d": [],
          "shape_params": [],
          "body_pose_params": [],
          "hand_pose_params": [],
          "global_rot": [],
          "pred_global_rots": [],
          "scale_params": [],
          "expr_params": [],
          "pred_joint_coords": [],
          "mhr_model_params": [],
          "pred_pose_raw": []
        }
      ],
      "keypoint_names": [
        "string"
      ]
    }
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
파일 보관 방식 선택모든 outputs[].url은 스토리지에 저장된 복사본입니다. 계정 설정 또는 ?storage=에 따라 영구 보관(GB-월 단위 과금)하거나 7일 동안 무료로 보관합니다.
모든 모델에서 동일한 구조이미지, 동영상, 오디오 모두 type, url, content_type, width, height 및 duration을 사용합니다. output은 모델 자체의 결과 객체입니다.
출력 필드
model_glb
object {url, content_type, file_name, file_size}선택적으로 3D 키포인트 마커를 포함하는 GLB 형식의 3D 신체 메시입니다.
visualization
object {url, content_type, file_name, file_size}원본 이미지, 키포인트, 메시 및 측면 뷰를 보여주는 합성 시각화입니다.
meshes
array of object {url, content_type, file_name, file_size} | null탐지된 사람마다 별도로 반환되는 .ply 메시 파일입니다. export_meshes가 True인 경우 반환됩니다.
metadata
object {num_people, people, keypoint_names}카메라 매개변수와 키포인트를 포함하는 구조화된 메타데이터입니다.

더 많은 모델: 이미지를 3D로

AI 에이전트용: 이 페이지의 Markdown 버전: https://doitong.com/ko/developers/models/sam-3/3d-body.md. 모든 모델 및 가이드: https://doitong.com/developers/llms.txt