Peke ki ngā ihirangi

Scail 2

Whakauru

id tauira scail-2
# 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/scail-2?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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: $ 2.00 2,000 whiwhinga API ka inea ō kōnae i mua i te whakahaere Whakahaerehia ki tēnei whārangi

Tikina he kī API
Open model Ataata ki te Ataata tae atu ki 704p #stylized#transform

Ka whakakorikori i te atahanga pūāhua tohutoro mā te nekeneke mai i tētahi ataata taraiwa, ka whakakapi rānei i taua pūāhua ki te wāhi taketake

Open model · Ataata

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

Tohutohu e tohu ana i te ataata putanga e hiahiatia ana.

•e hiahiatia ana image_url
Whakataka he kōnae,

URL atahanga tohutoro kiripuaki e whakarato ana i te kiripuaki hei whakakorikori, hei whakakapi rānei i tētahi kaupapa; mā te ataata taraiwa e whakatau te whakakorikori, te whakakapi rānei.

•e hiahiatia ana video_url
Whakataka he kōnae,

Tukua he ataata taraiwa nekehanga mā te URL, me te tangata kotahi, te tangata maha, he kararehe rānei.

resolution taunoa 512p

Taumira putanga, ka whakatauria aunoa te ahunga mā te ōwehenga āhuatanga o te atahanga tohutoro. I te aronga whānui, ka noho 512p hei 896x512, ā, 704p hei 1280x704; mō te aronga poutū, ka noho hei 512x896 me 704x1280.

Arā atu mode · driving_type · subject_type · num_inference_steps · guidance_scale · shift · seed · enable_safety_checker
mode taunoa animation

Kōwhiria te whakamahinga o te kiripuaki tohutoro: `replacement` ka pupuri i te tirohanga taketake, engari ka whakakapi i te kiripuaki mō te kaupapa taraiwa; `animation` ka hoatu te nekehanga taraiwa ki te kiripuaki.

driving_type taunoa end_to_end

Nō te ataata taraiwa tonu te nekehanga whakakorikori, kua hunahia e SAM3 me `end_to_end`, te taunoa me te kōwhiringa e taunakitia ana mō te tino pakari. Hei kē, ka whakamahi `pose` i NLF/DWPose hei tā i tētahi kōiwi mārama mai i taua ataata, kia nui ake te mana mō ngā tāuru uaua.

subject_type taunoa human

Kōwhiringa kaupapa ataata taraiwa; mā `animal` e whirihora te tohutohu rapunga SAM3 mō ngā kaupapa ehara i te `human`.

taunoa 40

Te maha o ngā kaupae tauira diffusion. Mā te whakapiki ka pai ake te kounga, engari ka roa ake.

taunoa 5

Kaha arataki classifier-free, e taurite ana i te ū ki te tohutohu me te auahatanga.

taunoa 3

Nekehanga hōtaka haruru mō te taurite rerenga; ko te tautuhinga 3.0 e taunakitia ana ina whakamahi 512p.

Kākano whakaputanga kei roto i te whakautu, ahakoa i tukuna ā-ringatia, i kōwhiria matapōkeretia rānei nā te waiho kau o te tāuru.

POST /run/scail-2?wait=20 utu → $ 2.00
# 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/scail-2?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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ō Scail 2

Ka tango i tētahi `image_url` pūāhua tohutoro me tētahi `video_url` taraiwa e whakaatu ana i te tangata, i ngā tāngata maha, i tētahi kararehe rānei. I te aratau `animation`, ka mahi te pūāhua i te nekeneke taraiwa; i te aratau `replacement`, ka whakakapi i te kaupapa me te pupuri i te wāhi. Ko te taumira he 512p, 704p rānei, ā, ka kōwhiria te ahunga mai i te atahanga. Ka taea e `driving_type` te whakamahi taraiwa tika mutunga-ki-mutunga, i tētahi kōiwi tūnga mārama rānei.

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
Tohutohu e tohu ana i te ataata putanga e hiahiatia ana.
image_urle hiahiatia ana image
Momourl · image
URL atahanga tohutoro kiripuaki e whakarato ana i te kiripuaki hei whakakorikori, hei whakakapi rānei i tētahi kaupapa; mā te ataata taraiwa e whakatau te whakakorikori, te whakakapi rānei.
video_urle hiahiatia ana video
Momourl · video
Tukua he ataata taraiwa nekehanga mā te URL, me te tangata kotahi, te tangata maha, he kararehe rānei.
modekōwhiringa
Momoenum
Taunoaanimation
animationreplacement
Kōwhiria te whakamahinga o te kiripuaki tohutoro: `replacement` ka pupuri i te tirohanga taketake, engari ka whakakapi i te kiripuaki mō te kaupapa taraiwa; `animation` ka hoatu te nekehanga taraiwa ki te kiripuaki.
driving_typekōwhiringa
Momoenum
Taunoaend_to_end
end_to_endpose
Nō te ataata taraiwa tonu te nekehanga whakakorikori, kua hunahia e SAM3 me `end_to_end`, te taunoa me te kōwhiringa e taunakitia ana mō te tino pakari. Hei kē, ka whakamahi `pose` i NLF/DWPose hei tā i tētahi kōiwi mārama mai i taua ataata, kia nui ake te mana mō ngā tāuru uaua.
subject_typekōwhiringa
Momoenum
Taunoahuman
humananimal
Kōwhiringa kaupapa ataata taraiwa; mā `animal` e whirihora te tohutohu rapunga SAM3 mō ngā kaupapa ehara i te `human`.
resolutionkōwhiringa
Momoenum
Taunoa512p
512p704p
Taumira putanga, ka whakatauria aunoa te ahunga mā te ōwehenga āhuatanga o te atahanga tohutoro. I te aronga whānui, ka noho 512p hei 896x512, ā, 704p hei 1280x704; mō te aronga poutū, ka noho hei 512x896 me 704x1280.
num_inference_stepskōwhiringa
Momointeger
Taunoa40
2 – 50
Te maha o ngā kaupae tauira diffusion. Mā te whakapiki ka pai ake te kounga, engari ka roa ake.
guidance_scalekōwhiringa
Momonumber
Taunoa5
1 – 10
Kaha arataki classifier-free, e taurite ana i te ū ki te tohutohu me te auahatanga.
shiftkōwhiringa
Momonumber
Taunoa3
1 – 10
Nekehanga hōtaka haruru mō te taurite rerenga; ko te tautuhinga 3.0 e taunakitia ana ina whakamahi 512p.
seedkōwhiringa
Momointeger | null
Kākano whakaputanga kei roto i te whakautu, ahakoa i tukuna ā-ringatia, i kōwhiria matapōkeretia rānei nā te waiho kau o te tāuru.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Ka taea te whakangāwari i te tātari mā te tautuhi false, mēnā he mana tō te kaiwhakatuwhera.
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": "scail-2",
  "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": 2000,
    "usd": "2.00",
    "charged": 2000,
    "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",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "seed": 42,
    "preprocessing_video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "preprocessing_mask_video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "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
video
object {url, content_type, file_name, file_size}Te kōnae ataata i whakaputaina.
seed
integerKākano mō te whakaputanga ataata.
preprocessing_video
object {url, content_type, file_name, file_size} | nullAtaata rapurongoā kei roto te tāuru whakarite tūnga Stage-A i tukuna ki te tauira diffusion, ka wātea me `output_preprocessing=true` anake. Ka whakawhirinaki te ihirangi ki `driving_type`: ka whakamahi `end_to_end` i ngā whakaahua taraiwa kua hunahia e SAM3, ā, ka whakamahi `driving_type=pose` i te kōiwi nā NLF/DWPose i tā.
preprocessing_mask_video
object {url, content_type, file_name, file_size} | nullAtaata kanohi huna taraiwa Stage-A mō te rapurongoā, ka wātea me `output_preprocessing=true` anake.

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