Peke ki ngā ihirangi

Sam 3 · 3D Body

Whakauru

id tauira 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.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Tēnei tono: ≈$ 0.02 20 whiwhinga API · ≈ ₽ 2.11 Whakahaerehia ki tēnei whārangi

Tikina he kī API
Meta · 3D

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

•e hiahiatia ana image_url
Whakataka he kōnae,

URL atahanga e whakaatu ana i ngā tāngata.

Arā atu mask · export_meshes · include_3d_keypoints · include_mhr_params
mask_url
Whakataka he kōnae,

URL atahanga kanohi huna ā-rua kōwhiringa hei whakakapi i te rapunga tangata aunoa, me te whakarato raraunga mō te tātai pouaka here aunoa. Whakamahia te mā mō te tangata, te pango mō te papamuri.

POST /run/sam-3/3d-body?wait=20 utu → $ 0.02
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Sam 3 · 3D Body

Ka hanga mata tinana 3D mō ngā tāngata kei roto i tētahi whakaahua. Ka kitea aunoa ngā tāngata, ka taea rānei te tuku kopare ā-rua ki `mask_url` (he mā mō te tangata). Mā ngā whakakā e whakahaere te kaweake .ply mō ia tangata, ngā tohu wāhi matua 3D ki te GLB, me te huinga tawhā MHR katoa ki ngā raraunga whaitua. Ka whakahoki i tētahi GLB, ngā mata, ngā raraunga whaitua me tētahi whakaahua whakakitenga.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
image_urle hiahiatia ana image
Momourl · image
URL atahanga e whakaatu ana i ngā tāngata.
mask_urlkōwhiringa mask
Momourl · image
URL atahanga kanohi huna ā-rua kōwhiringa hei whakakapi i te rapunga tangata aunoa, me te whakarato raraunga mō te tātai pouaka here aunoa. Whakamahia te mā mō te tangata, te pango mō te papamuri.
export_mesheskōwhiringa
Momoboolean
Taunoatrue
Mēnā ka kaweake he kōnae mata .ply motuhake mō ia tangata.
include_3d_keypointskōwhiringa
Momoboolean
Taunoatrue
Mēnā ka tāpiri tohu ira matua 3D porowhita ki te mata GLB mō te whakaatu.
include_mhr_paramskōwhiringa
Momoboolean
Taunoatrue
Mēnā kei roto i ngā raraunga whakautu o ia tangata ngā raraunga MHR (Meta Human Representation) katoa, he kamera me ngā ira matua anake (`false`). Kei roto i ngā raraunga katoa te whakaaturanga me te āhua, te tūnga me te tūnga mata, ngā taunga hononga me ngā hurihanga whānui, tae atu ki ngā tawhā tauira kua pōkaihia.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
model_glb
object {url, content_type, file_name, file_size}Mata tinana 3D hōputu GLB, me ngā tohu mō ngā ira matua 3D ki te hiahia.
visualization
object {url, content_type, file_name, file_size}Whakaaturanga hanumi e whakaatu ana i te atahanga taketake, ngā ira matua, te mata me te tirohanga taha.
meshes
array of object {url, content_type, file_name, file_size} | nullNgā kōnae mata .ply motuhake mō ia tangata kua kitea, ka whakahokia ina True te export_meshes.
metadata
object {num_people, people, keypoint_names}Ngā raraunga hanganga kei roto ngā tawhā kamera me ngā ira matua.

Ētahi atu tauira: Atahanga ki te 3D

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/sam-3/3d-body.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt