Saltar al cuntegna

Marigold Depth Estimation

Integrar

ID dal model imageutils/marigold-depth
# 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/imageutils/marigold-depth?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"

Questa dumonda: ≈$0,014 14 credits API Lantschar sin questa pagina

Obtegna ina clav API
Utility Modificaziun da maletgs #depth#utility

Estimescha chartas da profunditad cun Marigold, cun pass da denoisings, grondezza d’ensemble e resoluziun d’elavuraziun ajustablas

Utility · Maletg

Tes emprim resultat vegn qua

Construis ina dumonda sutvart e l'exequescha cun tia clav API. Outputs vegnan copiads en nossa memorisaziun, conservads per adina u 7 dis gratuitamain.

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

•obligatori image_url
Trametta in datoteca u

URL dal maletg d'input.

Avanzà num_inference_steps · ensemble_size · processing_res
standard 10

Il dumber da pass per reducir il ramur baratta la sveltezza d'inferenz cun la precisiun; `10` è il standard.

standard 10

Dumber da samples per la media: dapli predicziuns megliereschan la precisiun, a cust da la sveltezza d'inferenz. Il standard è `10`.

standard 0

Limit da la resoluziun d'elavuraziun, cun `0` che tscherna la grondezza da la maletg d'input empè d'in limit separat. Il standard è `0`.

POST /run/imageutils/marigold-depth?wait=20 calculaziun → $0,014
# 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/imageutils/marigold-depth?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"

Executar questa dumonda

Tia clav resta en quest browser: ella vegn tramessa mo al Doitong API e memorisada (localStorage) mo sch'ella scheccas Tiar a memoria. Obtegnair ina clav API

Davart Marigold Depth Estimation

Generescha ina charta da profunditad d’in maletg d’entrada cun il metod Marigold. `num_inference_steps` e `ensemble_size` varieschan mintgin da 2 to 50 (default 10 mintgin); valurs pli autas dattan resultats pli exacts, ma l’execuziun è pli lenta. `processing_res` va fin a 2048, e 0 utilisescha la grondezza dal maletg d’entrada.

Parameters

Invia u il num canonic u il num nativ, betg omaduas. Nums canonics

NumTip StandardPermess Descripziun
image_urlobligatori image
Tipurl · image
URL dal maletg d'input.
num_inference_stepsopziunal
Tipinteger
Standard10
2 – 50
Il dumber da pass per reducir il ramur baratta la sveltezza d'inferenz cun la precisiun; `10` è il standard.
ensemble_sizeopziunal
Tipinteger
Standard10
2 – 50
Dumber da samples per la media: dapli predicziuns megliereschan la precisiun, a cust da la sveltezza d'inferenz. Il standard è `10`.
processing_resopziunal
Tipinteger
Standard0
0 – 2 048
Limit da la resoluziun d'elavuraziun, cun `0` che tscherna la grondezza da la maletg d'input empè d'in limit separat. Il standard è `0`.
obligatori Num canonic, er acceptà

Ils parameters da datotecas acceptan ina URL publica https://, ina URI data: fin a 10 MB u il file_url d'ina chargiada. Datotecas

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "imageutils/marigold-depth",
  "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": 14,
    "usd": "0.014",
    "charged": 14,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "image": {
      "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,
      "width": 1024,
      "height": 768
    }
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "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"
  }
}
Tias datotecas, tia decisiunMintga outputs[].url è ina copia en nossa memorisaziun: conservada per adina (pajà per GB-mes) u 7 dis gratuitamain, tenor la configuraziun dal conto u ?storage=.
La medema structura per mintga modeltype, url, content_type, width, height e duration, tant per maletgs sco per video e audio. output è l'object da resultat dal model sez.
Champs da l'output
image
object {url, content_type, file_name, file_size, width, height}Output da la carta da profunditad.

Dapli models: Modificaziun da maletgs

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/imageutils/marigold-depth.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt