Peke ki ngā ihirangi

IC-Light-v2 for Image Relighting

Whakauru

id tauira iclight-v2
# 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/iclight-v2?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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Tēnei tono: ≈$ 0.40 400 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Open model Whakatika Atahanga #relighting#editing

Ka whakahou rama i tētahi whakaahua, ka whakarerekē hoki i tōna papamuri i runga i tētahi whakaahuatanga kuputuhi

Open model · Atahanga

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

Te tohutohu e ārahi ana i te whakaputanga atahanga.

•e hiahiatia ana image_url
Whakataka he kōnae,

URL ki te atahanga ka whakahoungia te rama.

image_size

Ngā inenga o te atahanga kua whakaputaina.

num_images taunoa 1

Te tatau atahanga e tonoa ana mō te whakaputanga.

Arā atu negative_prompt · mask_image_url · initial_latent · output_format · background_threshold · num_inference_steps · cfg · lowres_denoise · highres_denoise · hr_downscale · guidance_scale · seed · enable_hr_fix · enable_safety_checker
taunoa

Tohutohu tōraro e tohu ana i ngā ihirangi atahanga kāore e hiahiatia ana.

Whakataka he kōnae,

URL kanohi mō te atahanga whakatauira ic-light.

initial_latent taunoa None

Ngā tikanga rama kua tukuna ki te tauira.

output_format taunoa jpeg

Te hōputu kōnae mō te atahanga ka puta.

taunoa 0.67

Paepae tango-papamuri kua tawhito, kāore he pānga ki ngā putanga o nāianei. Ko te whanonga i whakaarotia he whakakoi i ngā kanohi ki ngā tautuhinga teitei ake.

taunoa 28

Tau o ngā hipanga whakatauira hei whakahaere.

taunoa 1

Tauine arataki classifier-free tūturu e whakamahia ana i te whakaputanga.

taunoa 0.98

Te kaha e whakamahia ana i te tukunga taumira-iti.

taunoa 0.95

Te kaha e whakamahia ana i te tukunga taumira-teitei; ka whai pānga anake ina he True enable_hr_fix.

taunoa 0.5
taunoa 5

Te kaha ū ki te tohutohu mō te kōwhiringa atahanga, kua whakaaturia hei CFG (Classifier Free Guidance).

Kākano mō ngā atahanga ka taea te whakahoki anō: mā te tohutohu me te kākano ōrite ka puta he atahanga ōrite ina kāore te putanga tauira i whakarerekēhia.

POST /run/iclight-v2?wait=20 utu → $ 0.40
# 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/iclight-v2?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.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ō IC-Light-v2 for Image Relighting

Ka tango whakaahua pūtake (`image_url`) me tētahi `prompt` e whakaahua ana i te rama me te papamuri e hiahia ana. Ka taea e `initial_latent` te whakarite i te ahunga rama (Left, Right, Top, Bottom), ā, mā te `mask_image_url` kōwhiringa e ārahi te hua. Kei roto `enable_hr_fix` mō te tukanga taumira teitei, ngā putanga 1-4 mā `num_images`, me te putanga jpeg, png 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
Te tohutohu e ārahi ana i te whakaputanga atahanga.
negative_promptkōwhiringa
Momostring
Taunoa
Tohutohu tōraro e tohu ana i ngā ihirangi atahanga kāore e hiahiatia ana.
image_urle hiahiatia ana image
Momourl · image
URL ki te atahanga ka whakahoungia te rama.
mask_image_urlkōwhiringa
Momourl · image
URL kanohi mō te atahanga whakatauira ic-light.
background_thresholdkōwhiringa
Momonumber
Taunoa0.67
0.01 – 1
Paepae tango-papamuri kua tawhito, kāore he pānga ki ngā putanga o nāianei. Ko te whanonga i whakaarotia he whakakoi i ngā kanohi ki ngā tautuhinga teitei ake.
image_sizekōwhiringa
Momoobject
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Ngā inenga o te atahanga kua whakaputaina.
num_inference_stepskōwhiringa
Momointeger
Taunoa28
1 – 50
Tau o ngā hipanga whakatauira hei whakahaere.
seedkōwhiringa
Momointeger | null
Kākano mō ngā atahanga ka taea te whakahoki anō: mā te tohutohu me te kākano ōrite ka puta he atahanga ōrite ina kāore te putanga tauira i whakarerekēhia.
initial_latentkōwhiringa
Momoenum
TaunoaNone
NoneLeftRightTopBottom
Ngā tikanga rama kua tukuna ki te tauira.
enable_hr_fixkōwhiringa
Momoboolean
Taunoafalse
Whakahohe ai i te HR fix.
num_imageskōwhiringa num_outputs
Momointeger
Taunoa1
1 – 4
Te tatau atahanga e tonoa ana mō te whakaputanga.
cfgkōwhiringa
Momonumber
Taunoa1
0.01 – 5
Tauine arataki classifier-free tūturu e whakamahia ana i te whakaputanga.
lowres_denoisekōwhiringa
Momonumber
Taunoa0.98
0.01 – 1
Te kaha e whakamahia ana i te tukunga taumira-iti.
highres_denoisekōwhiringa
Momonumber
Taunoa0.95
0.01 – 1
Te kaha e whakamahia ana i te tukunga taumira-teitei; ka whai pānga anake ina he True enable_hr_fix.
hr_downscalekōwhiringa
Momonumber
Taunoa0.5
0.01 – 1
guidance_scalekōwhiringa
Momonumber
Taunoa5
0 – 20
Te kaha ū ki te tohutohu mō te kōwhiringa atahanga, kua whakaaturia hei CFG (Classifier Free Guidance).
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.
output_formatkōwhiringa
Momoenum
Taunoajpeg
jpegpng
Te hōputu kōnae mō te atahanga ka puta.
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": "iclight-v2",
  "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": 400,
    "usd": "0.40",
    "charged": 400,
    "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": {
    "images": [
      {
        "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
        "width": 1024,
        "height": 768,
        "content_type": "image/jpeg"
      }
    ],
    "timings": {},
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "string"
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "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, width, height, content_type}Pārongo kōnae mō ngā atahanga kua whakaputaina.
timings
object
seed
integerKākano whakaputa atahanga, tae atu ki te uara i kōwhiria matapōkeretia mēnā kāore i tukuna he kākano ki te tāuru; ki te kore, ka tukurua te uara i tukuna.
has_nsfw_concepts
array of booleanKa tohu mēnā ka puta ngā ariā NSFW i ngā atahanga kua whakaputaina.
prompt
stringTe tohutohu e whakamahia ana i te whakaputanga atahanga.

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