Peke ki ngā ihirangi

MAGI-1 (Distilled) · Image to Video

Whakauru

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

Ngā kōnae pēnei i te tauira: $ 0.32 320 whiwhinga API · ≈ ₽ 34.43 ka inea ō kōnae i mua i te whakahaere Whakahaerehia ki tēnei whārangi

Tikina he kī API
Sand AI Atahanga ki te Ataata Teretae atu ki 720p #image-to-video

Ka whakakorikori i tētahi whakaahua tū hei anga tuatahi o tētahi ataata 96 ki te 192 anga, ka aratakina e tētahi tono

Sand AI · 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

Ngā tohutohu kuputuhi hei ārahi i te whakaputanga ataata.

•e hiahiatia ana image_url
Whakataka he kōnae,

URL e whakarato ana i te atahanga tīmatanga o te ataata; ka whakarerekēhia tōna rahi, ka tapahia hoki tōna pokapū mēnā e tika ana kia uru ki te ōwehenga āhuatanga kua tīpakohia.

resolution taunoa 720p

Taumira ataata putanga, 480p, 720p rānei.

num_inference_steps taunoa 16

Te tatau kaupae tīpako, ka whakawhiti i te wā tukatuka roa mō te kounga pai ake ina piki te tatau.

aspect_ratio taunoa auto

Ngā taurite o te ataata kua whakaputaina, ka kōwhiria aunoatia mai i te atahanga tāuru ina tautuhia ki 'auto'.

taunoa 96

Tau anga putanga, he iti rawa 96, he nui rawa 192.

Arā atu seed · enable_safety_checker

Te kākano e taea ai te tārua o te whakaputanga. Mā te tautuhi ki None e kōwhiri matapōkeretia ai he kākano.

POST /run/magi-distilled/image-to-video?wait=20 utu → $ 0.32
# 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/magi-distilled/image-to-video?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.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ō MAGI-1 (Distilled) · Image to Video

Ka whakamahi i `image_url` hei anga tuatahi me tētahi `prompt` e hiahiatia ana hei whakaahua i te nekeneke. Ka whakarahi, ka tapahi pokapū hoki ngā whakaahua kāore e ōrite ana ki te ōwehenga āhuatanga kua kōwhiria. Ko `num_frames` mai i te 96 ki te 192, ko `resolution` he 480p, 720p rānei, ā, ko `num_inference_steps` he 4, 8, 16, 32 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
Ngā tohutohu kuputuhi hei ārahi i te whakaputanga ataata.
image_urle hiahiatia ana image
Momourl · image
URL e whakarato ana i te atahanga tīmatanga o te ataata; ka whakarerekēhia tōna rahi, ka tapahia hoki tōna pokapū mēnā e tika ana kia uru ki te ōwehenga āhuatanga kua tīpakohia.
num_frameskōwhiringa
Momointeger | null
Taunoa96
96 – 192
Tau anga putanga, he iti rawa 96, he nui rawa 192.
seedkōwhiringa
Momointeger | null
Te kākano e taea ai te tārua o te whakaputanga. Mā te tautuhi ki None e kōwhiri matapōkeretia ai he kākano.
resolutionkōwhiringa
Momoenum
Taunoa720p
480p720p
Taumira ataata putanga, 480p, 720p rānei.
num_inference_stepskōwhiringa
Momoenum
Taunoa16
481632
Te tatau kaupae tīpako, ka whakawhiti i te wā tukatuka roa mō te kounga pai ake ina piki te tatau.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Whakakā/whakaweto tirotiro haumaru, me whakamana pūkete te tautuhinga whakaweto. Ki te kore taua whakamana, ka tirohia ia tono ahakoa te tautuhinga; mā true e whakakā te kaitirotiro.
aspect_ratiokōwhiringa
Momoenum
Taunoaauto
auto16:99:161:1
Ngā taurite o te ataata kua whakaputaina, ka kōwhiria aunoatia mai i te atahanga tāuru ina tautuhia ki 'auto'.
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": "magi-distilled/image-to-video",
  "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": 320,
    "usd": "0.32",
    "charged": 320,
    "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": {
    "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
  },
  "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.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
video
object {url, content_type, file_name, file_size}Te kōnae ataata i whakaputaina.
seed
integerTe uara kākano i whakamahia i te whakaputanga.

Ētahi atu tauira: Atahanga ki te Ataata

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