Peke ki ngā ihirangi

FILM

Whakauru

id tauira film
# 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/film?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",
    "end_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"

Tae atu ki te $ 4.68 mō ia whakahaerenga ka utua mō te whakamahinga tūturu, ka whakahokia te toenga Whakahaerehia ki tēnei whārangi

Tikina he kī API
Google Atahanga ki te Ataata #interpolation

Ka tuitui i waenganui i tētahi atahanga tīmata me tētahi atahanga mutunga, ka whakaputa anga waenga hei atahanga, hei ataata rānei

Google · 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 start_image_url
Whakataka he kōnae,

Ko te atahanga tīmatanga o te whakapiri—ko te tuatahi o te takirua—ka tukuna mā te URL.

•e hiahiatia ana end_image_url
Whakataka he kōnae,

Ko te atahanga whakamutunga o te whakapiri—ko te tuarua o te takirua—ka tukuna mā te URL.

Arā atu output_type · image_format · video_quality · video_write_mode · num_frames · fps · include_start · include_end · enable_safety_checker
output_type taunoa images

Te kōwhiringa putanga i waenga i te ataata me ngā atahanga takitahi.

image_format taunoa jpeg

Te kōwhiringa hōputu atahanga, ka whakamahia anake ina ko 'images' te output_type.

video_quality taunoa high

Te kōwhiringa kounga ataata, ka whakamahia anake ina ko 'video' te output_type.

video_write_mode taunoa balanced

Te aratau tuhi ataata, ka whakamahia anake ina ko 'video' te output_type.

taunoa 1

Te maha o ngā anga takawaenga ka whakaputaina i waenga i ngā atahanga kua tukuna.

taunoa 8

Te tautuhinga tere anga ataata, ka inehia ki ngā anga ia hēkona, ā, ka whakamahia anake ina ko 'video' te output_type.

POST /run/film?wait=20 utu → $ 4.68
# 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/film?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",
    "end_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ō FILM

Ka whakaputa anga takawaenga i waenga i ngā pikitia e rua, `start_image_url` me `end_image_url`. Mā `num_frames` e tautuhi te maha, mai i te 1 ki te 64. Ko `output_type` he atahanga, he ataata rānei; mō te ataata, ka pā `fps` (1 ki te 60), `video_quality` me `video_write_mode`. Mā `include_start` me `include_end` e tāpiri ngā taketake.

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
start_image_urle hiahiatia ana image
Momourl · image
Ko te atahanga tīmatanga o te whakapiri—ko te tuatahi o te takirua—ka tukuna mā te URL.
end_image_urle hiahiatia ana end_image
Momourl · image
Ko te atahanga whakamutunga o te whakapiri—ko te tuarua o te takirua—ka tukuna mā te URL.
output_typekōwhiringa
Momoenum
Taunoaimages
imagesvideo
Te kōwhiringa putanga i waenga i te ataata me ngā atahanga takitahi.
image_formatkōwhiringa
Momoenum
Taunoajpeg
pngjpeg
Te kōwhiringa hōputu atahanga, ka whakamahia anake ina ko 'images' te output_type.
video_qualitykōwhiringa
Momoenum
Taunoahigh
lowmediumhighmaximum
Te kōwhiringa kounga ataata, ka whakamahia anake ina ko 'video' te output_type.
video_write_modekōwhiringa
Momoenum
Taunoabalanced
fastbalancedsmall
Te aratau tuhi ataata, ka whakamahia anake ina ko 'video' te output_type.
num_frameskōwhiringa
Momointeger
Taunoa1
1 – 64
Te maha o ngā anga takawaenga ka whakaputaina i waenga i ngā atahanga kua tukuna.
include_startkōwhiringa
Momoboolean
Taunoafalse
Ka whakahaere mēnā ka whai te putanga i te atahanga tīmatanga.
include_endkōwhiringa
Momoboolean
Taunoafalse
Ka whakahaere mēnā ka whai te putanga i te atahanga whakamutunga.
fpskōwhiringa
Momointeger
Taunoa8
1 – 60
Te tautuhinga tere anga ataata, ka inehia ki ngā anga ia hēkona, ā, ka whakamahia anake ina ko 'video' te output_type.
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": "film",
  "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": 4680,
    "usd": "4.68",
    "charged": 4680,
    "refunded": 0
  },
  "input": {
    "start_image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg",
    "end_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.mp4",
        "content_type": "video/mp4",
        "file_name": "0-output.mp4",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "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,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    }
  },
  "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
images
array of object {url, content_type, file_name, file_size, width, height}Ngā atahanga takitahi kei roto ngā anga kua whakaputaina.
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames} | nullTe kōnae ataata kua whakaputaina, ka whakahokia ina tautuhia te output_type ki 'video'.

Ē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/film.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt