Peke ki ngā ihirangi

RIFE

Whakauru

id tauira rife
# 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/rife?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
Open model Atahanga ki te Ataata #interpolation

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

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 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 · output_format · num_frames · fps · include_start · include_end
output_type taunoa images

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

output_format taunoa jpeg

Te kōwhiringa hōputu atahanga, ka whakamahia anake ina ko 'images' 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/rife?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/rife?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ō RIFE

Ka whakaputa anga takawaenga i waenga i `start_image_url` me `end_image_url`. Tautuhia `num_frames` mai i te 1 ki te 64 mō te maha o ngā anga hei waihanga, ā, kōwhiria `output_type` hei atahanga, hei ataata rānei. He `fps` mai i te 1 ki te 60 mō te putanga ataata; mō te putanga atahanga, ko png, ko jpeg rānei. Ka taea te whakauru kōwhiringa i ngā atahanga tīmatanga me te mutunga ki te hua.

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.
output_formatkōwhiringa
Momoenum
Taunoajpeg
pngjpeg
Te kōwhiringa hōputu atahanga, ka whakamahia anake ina ko 'images' 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.
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": "rife",
  "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
    }
  },
  "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} | 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/rife.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt