Dža ko lil

Sam 3 · 3D Body

Integriruj

Modelosko 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"

Kava mangipen: ≈$0.02 20 API krediti Phir les kate

Lel API klidin
Meta · 3D

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul image_url
Čhiv jekh fajl, vaj

Kipo URL savo sikavel manušen.

Lučhe mask · export_meshes · include_3d_keypoints · include_mhr_params
mask_url
Čhiv jekh fajl, vaj

Opcionalno binary maskako kipo URL savo paruvavel automatikane manušikane detekcijasa thaj del e dative vaško automatikano bounding-box ginavipe. E manušen kodirinen parne, e fondo kale rangosa.

POST /run/sam-3/3d-body?wait=20 hesab → $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"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Sam 3 · 3D Body

Kerel 3D tělo-mreže andar o manuša ande jekh slika. O manuša si detektirime avtomatikane, vaj šaj bičhaves binarno maska ande `mask_url` (parno perdal o manuš). Togla kontrolinen eksportos perdal sako manuš, 3D keypoint-markera ando GLB, thaj o pherdo MHR parametro-set ande metadata. Del jekh GLB, mreže, metadata thaj jekh vizualizacija-slika.

Parametra

Bičhalav vaj e kanonikano nav vaj e native nav, na duj. Kanonikane nava

NavTip standardnoMuklo Vakeripe
image_urltrubul image
Tipurl · image
Kipo URL savo sikavel manušen.
mask_urlopcionalno mask
Tipurl · image
Opcionalno binary maskako kipo URL savo paruvavel automatikane manušikane detekcijasa thaj del e dative vaško automatikano bounding-box ginavipe. E manušen kodirinen parne, e fondo kale rangosa.
export_meshesopcionalno
Tipboolean
standardnotrue
Te eksportiril li pes separo .ply mesh fajlo vaško sako manuš.
include_3d_keypointsopcionalno
Tipboolean
standardnotrue
Te thovel li pes sferikane 3D keypoint markerora ando GLB mesh vaško vizualizacija.
include_mhr_paramsopcionalno
Tipboolean
standardnotrue
Te si li sako manušesko rezultatosko metadato pherdo MHR (Meta Human Representation) dative vaj numa kamera-parametron thaj keypointon (`false`). Pherde dative si ekspresija thaj forma, poza thaj raw poza, joint koordinata thaj globalne rotacije, plus phandle model-parametra.
trubul Kanonikano nav, vi akceptime

Fajloske parametra lel jekh publikano https:// URL, jekh data: URI dži 10 MB, vaj e file_url uploadoski. Fajlura

Rezultato

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"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
model_glb
object {url, content_type, file_name, file_size}GLB-formatosko 3D kotorako mesh, opcionalne markeronça vaške 3D keypointora.
visualization
object {url, content_type, file_name, file_size}Kompozitno vizualizacija savi sikavel o originalno kipo, keypointora, mesh thaj rigatuno dikhipe.
meshes
array of object {url, content_type, file_name, file_size} | nullSeparatne .ply mesh fajlora vaško sako detektirimo manuš, irime kana export_meshes si True.
metadata
object {num_people, people, keypoint_names}Strukturirime metadato savo si kamera-parametra thaj keypointora.

Bute modeli: Kip ko 3D

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/sam-3/3d-body.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt