Peke ki ngā ihirangi

Lightx · Relight

Whakauru

id tauira lightx/relight
# 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/lightx/relight?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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: $ 0.49 490 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 Ngā tāuru tohutoro #video-to-video

He whakarerekē rama ataata nā te aki, te tāpare tohutoro, te whakaahua HDR, te whakaahua papamuri 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.

Tohutohu kuputuhi kōwhiringa; ka tapanga aunoa a Light-X i te ataata ina kāore he tohutohu.

•e hiahiatia ana video_url
Whakataka he kōnae,

URL o te ataata tāuru.

Arā atu relit_cond_type · relit_cond_img_url · ref_id · seed · enable_safety_checker · relight_parameters
relit_cond_type taunoa ic

Momo tikanga e whakamahia ana mō te whakarama anō.

URL atahanga tikanga e hiahiatia ana e ngā tautuhinga 'ref', 'hdr', me 'bg' o relight_condition_type; i te aratau 'bg', ka whakarato i te papamuri.

taunoa 0

Tohutoro whakarama anō i tīpakohia mā te tau anga, me te tatau anga whakaputaina hei rohe mutunga kore-whakauru. Ko taua tatau he 49 te taunoa.

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.

Tautuhinga whakarama anō e whakawhirinaki ana ki relight_condition_type: mā 'ic' e hiahia, mā 'bg' e waiho, ā, me whai URL atahanga papamuri.

POST /run/lightx/relight?wait=20 utu → $ 0.49
# 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/lightx/relight?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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ō Lightx · Relight

Ka whakarerekē i te rama o tētahi ataata tāuru. Mā `relit_cond_type` e kōwhiri te here: ic (ka whakamahi i `relight_parameters`), ref, hdr, bg rānei; ko ngā mea whakamutunga e toru me whai whakaahua here i `relit_cond_img_url`. Mā `ref_id` (0 ki te 48) e kōwhiri te tāpare tohutoro mō te aratau ref. He kōwhiringa te `prompt` kuputuhi, ā, ka tāuru aunoa te tapanga ki te ataata ki te waiho.

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
video_urle hiahiatia ana video
Momourl · video
URL o te ataata tāuru.
promptkōwhiringa
Momostring | null
Tohutohu kuputuhi kōwhiringa; ka tapanga aunoa a Light-X i te ataata ina kāore he tohutohu.
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.
relit_cond_typekōwhiringa
Momoenum
Taunoaic
icrefhdrbg
Momo tikanga e whakamahia ana mō te whakarama anō.
relight_parameterskōwhiringa
Momoobject
Tautuhinga whakarama anō e whakawhirinaki ana ki relight_condition_type: mā 'ic' e hiahia, mā 'bg' e waiho, ā, me whai URL atahanga papamuri.
relight_parameters.relight_prompte hiahiatia ana
Momostring
Tohutohu kuputuhi e tohu ana i ngā tikanga rama hei whakaputa.
relight_parameters.bg_sourcekōwhiringa
Momoenum
TaunoaLeft
LeftRightTopBottom
Aronga pūtake rama mō IC-light.
relight_parameters.cfgkōwhiringa
Momonumber
Taunoa2
1 – 10
Tauine arataki classifier-free i whakamahia i te whakarama anō.
relight_parameters.use_sky_maskkōwhiringa
Momoboolean
Taunoafalse
Whakakā kopare rangi mō ngā tirohanga o waho.
relit_cond_img_urlkōwhiringa
Momostring | null
URL atahanga tikanga e hiahiatia ana e ngā tautuhinga 'ref', 'hdr', me 'bg' o relight_condition_type; i te aratau 'bg', ka whakarato i te papamuri.
ref_idkōwhiringa
Momointeger
Taunoa0
0 – 48
Tohutoro whakarama anō i tīpakohia mā te tau anga, me te tatau anga whakaputaina hei rohe mutunga kore-whakauru. Ko taua tatau he 49 te taunoa.
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": "lightx/relight",
  "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": 490,
    "usd": "0.49",
    "charged": 490,
    "refunded": 0
  },
  "input": {
    "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,
    "input_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
    },
    "viz_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
integerTe uara kākano i whakamahia i te whakaputanga.
input_video
object {url, content_type, file_name, file_size} | nullAtaata tāuru kua whakaritea, kua tukatukahia rānei, ka whakahokia pea ina whakaputaina e te paipa.
viz_video
object {url, content_type, file_name, file_size} | nullAtaata tirohanga, patuiro rānei, ka whakahokia pea ina whakaputaina e te paipa.

Ētahi atu tauira: Ataata ki te Ataata

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