Peke ki ngā ihirangi

PATINA · Material · Extract

Whakauru

id tauira patina/material/extract
# 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/patina/material/extract?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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"

Ngā kōnae pēnei i te tauira: $ 0.17 170 whiwhinga API ka inea ō kōnae i mua i te whakahaere Whakahaerehia ki tēnei whārangi

Tikina he kī API
Open model Whakatika Atahanga #material#pbr#extraction

Ka tango i tētahi kakano tāera-mai me ngā mahere PBR mai i tētahi atahanga pūtake, ka ārahina e tētahi tohutohu e whakaingoa ana i te mata

Open model · Atahanga

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

Te whakaahuatanga o te kakano e hiahiatia ana hei tango mai i te atahanga.

•e hiahiatia ana image_url
Whakataka he kōnae,

Te URL atahanga pūtake mō te tango kakano.

image_size taunoa square_hd

Ngā rahinga pika o te kakano ka puta.

upscale_factor taunoa 0

Te whakarea whakanuinga kore-puta o SeedVR e pā ana ki ngā mahere PBR kua matapaetia, engari ka waiho te kakano pūtake ki tōna taumira taketake. Kōwhiria 2 mō te taumira takirua, 4 mō te taumira whakarua, 0 rānei hei mono i te whakanuinga.

num_images taunoa 1

Te tatau atahanga kakano hei waihanga.

Arā atu tiling_mode · output_format · num_inference_steps · tile_size · tile_stride · strength · seed · enable_prompt_expansion · enable_safety_checker · maps
tiling_mode taunoa both

Te ahunga tāera: ko 'both' mō te tāera ki ngā ahunga katoa, ko 'horizontal', ko 'vertical' rānei.

output_format taunoa png

Te hōputu kōnae atahanga mō ngā kakano putanga me ngā mahere PBR.

taunoa 8

Te tatau hipanga denoising i whakamahia hei whakaputa kakano.

taunoa 128

Te rahi tāera i te wāhi latent, ko 64 te tohu mō 512px, ā, ko 128 te tohu mō 1024px. I ia tuaka tāera, mā te rahinga o te atahanga kua whakaputaina te rohe mōrahi aunoa.

taunoa 64

Tautuhia te tawhiti i waenga i ngā tāera wāhi latent; mā te taupoki aunoa e aukati kia neke ake i te haurua o te rahi tāera whaihua.

taunoa 0.6

Te kaha panoni ka whakamahia ki tētahi atahanga i tukuna mā image_url anake; kāore e whakamahia ki te kore.

Kākano matapōkere e taea ai te whakahoki anō i te whakaputanga.

taunoa ["basecolor","normal"...

Ngā mahere PBR kua kōwhiria mō te matapae, ko te taunoa ka kōwhiria te rima katoa. Ki te kore e kōwhiria tētahi, ka pekehia katoatia te whakatau tata PBR.

POST /run/patina/material/extract?wait=20 utu → $ 0.17
# 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/patina/material/extract?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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"

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ō PATINA · Material · Extract

Ka tango i tētahi atahanga tāuru me tētahi tohutohu e whakaahua ana i te mata hei tango, ā, ka whakahoki i tētahi kakano tāera-mai me ngā mahere PBR kua matapaetia. Mā `maps` e kōwhiri ko ēhea o basecolor, normal, roughness, metalness me height hei whakaputa. Kei roto ko `tiling_mode`, `strength` mai i te 0 ki te 1, `upscale_factor` o 0, 2, 4 rānei, me te 1 ki te 4 putanga.

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
prompte hiahiatia ana
Momostring
Te whakaahuatanga o te kakano e hiahiatia ana hei tango mai i te atahanga.
image_sizekōwhiringa
Momoobject
Taunoasquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Ngā rahinga pika o te kakano ka puta.
num_inference_stepskōwhiringa
Momointeger
Taunoa8
1 – 8
Te tatau hipanga denoising i whakamahia hei whakaputa kakano.
seedkōwhiringa
Momointeger | null
Kākano matapōkere e taea ai te whakahoki anō i te whakaputanga.
num_imageskōwhiringa num_outputs
Momointeger
Taunoa1
1 – 4
Te tatau atahanga kakano hei waihanga.
enable_prompt_expansionkōwhiringa
Momoboolean
Taunoatrue
Ka whakahohe i te whakawhānui tohutohu e hāngai ana ki te LLM hei tāpiri taipitopito.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Ka whakahohe i te tirotiro haumaru o ngā atahanga kua whakaputaina.
tiling_modekōwhiringa
Momoenum
Taunoaboth
bothhorizontalvertical
Te ahunga tāera: ko 'both' mō te tāera ki ngā ahunga katoa, ko 'horizontal', ko 'vertical' rānei.
tile_sizekōwhiringa
Momointeger
Taunoa128
32 – 256
Te rahi tāera i te wāhi latent, ko 64 te tohu mō 512px, ā, ko 128 te tohu mō 1024px. I ia tuaka tāera, mā te rahinga o te atahanga kua whakaputaina te rohe mōrahi aunoa.
tile_stridekōwhiringa
Momointeger
Taunoa64
16 – 128
Tautuhia te tawhiti i waenga i ngā tāera wāhi latent; mā te taupoki aunoa e aukati kia neke ake i te haurua o te rahi tāera whaihua.
image_urle hiahiatia ana image
Momourl · image
Te URL atahanga pūtake mō te tango kakano.
strengthkōwhiringa
Momonumber
Taunoa0.6
≤ 1> 0
Te kaha panoni ka whakamahia ki tētahi atahanga i tukuna mā image_url anake; kāore e whakamahia ki te kore.
mapskōwhiringa
Momoenum[]
Taunoa["basecolor","normal","roughness","metalness","height"]
Ngā mahere PBR kua kōwhiria mō te matapae, ko te taunoa ka kōwhiria te rima katoa. Ki te kore e kōwhiria tētahi, ka pekehia katoatia te whakatau tata PBR.
upscale_factorkōwhiringa
Momoenum
Taunoa0
024
Te whakarea whakanuinga kore-puta o SeedVR e pā ana ki ngā mahere PBR kua matapaetia, engari ka waiho te kakano pūtake ki tōna taumira taketake. Kōwhiria 2 mō te taumira takirua, 4 mō te taumira whakarua, 0 rānei hei mono i te whakanuinga.
output_formatkōwhiringa
Momoenum
Taunoapng
jpegpngwebp
Te hōputu kōnae atahanga mō ngā kakano putanga me ngā mahere PBR.
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": "patina/material/extract",
  "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": 170,
    "usd": "0.17",
    "charged": 170,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "images": [
      {
        "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
      }
    ],
    "seed": 42,
    "prompt": "string",
    "timings": {}
  },
  "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"
  }
}
Ō 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
images
array of anyKei ngā atahanga putanga ngā mahere rauemi PBR i matapaetia e PATINA, i te taha o ngā kakano tāera i hangaia e z-image.
seed
integerTe kākano i whakamahia ina waihangatia ngā kakano.
prompt
stringTe tohutohu whakaputa-kakano, tae atu ki ngā whakawhānuitanga i whakamahia.
timings
objectTe wā kua wāwāhia mō te tukanga katoa, kua inehia ki te hēkona.

Ētahi atu tauira: Whakatika Atahanga

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