Peke ki ngā ihirangi

Wan v2.2 A14B Text-to-Image A14B with LoRAs

Whakauru

id tauira wan/v2.2-a14b/text-to-image/lora
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/wan/v2.2-a14b/text-to-image/lora?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"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Tēnei tono: $ 0.05 50 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Alibaba · 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

Ngā tohutohu kuputuhi hei ārahi i te atahanga kua whakaputaina.

image_size taunoa square_hd

Ngā inenga o te atahanga kua whakaputaina.

Arā atu negative_prompt · acceleration · image_format · num_inference_steps · guidance_scale · guidance_scale_2 · shift · seed · enable_safety_checker · enable_output_safety_checker · enable_prompt_expansion · reverse_video · loras
taunoa

Te tohutohu tōraro e whakamahia ana i te whakaputa ataata.

acceleration taunoa regular

Te tautuhinga whakatere, ko 'regular' te kōwhiringa e taunakitia ana. Mā te whakanui i te whakatere ka heke te kounga hei whakapoto i te wā whakaputa.

image_format taunoa jpeg

Hōputu kōnae mō te atahanga ka puta.

taunoa 27

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

taunoa 3.5

Te kaha arataki classifier-free, ka whakawhiti i te ngaronga kounga pea mō te ū tata ake ki te tohutohu ina piki te tauine.

taunoa 4

Te tauine ārahi e whakahaere ana i te tino whai a te tauira i te tohutohu i tana wāhanga tuarua.

taunoa 2

Te tautuhinga neke atahanga, he awhe whakaaetia 1.0–10.0.

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.

taunoa []

Ngā taumaha LoRA ka whakamahia i te wā whakatauira.

POST /run/wan/v2.2-a14b/text-to-image/lora?wait=20 utu → $ 0.05
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/wan/v2.2-a14b/text-to-image/lora?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"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/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ō Wan v2.2 A14B Text-to-Image A14B with LoRAs

Ka whakaputa whakaahua mai i tētahi `prompt`, ka whakamahi hoki i ngā taumaha LoRA ritenga kua tukuna ki `loras`. Kei `image_size` ngā tatūkē tapawhā, tū whakarunga me te whenua, ā, ko `image_format` he png, jpeg rānei. Kei reira hoki `guidance_scale`, `guidance_scale_2`, `num_inference_steps` tae atu ki te 40 me tētahi `negative_prompt`.

Ngā tawhā

IngoaMomo TaunoaE whakaaetia ana Whakamārama
prompte hiahiatia ana
Momostring
Ngā tohutohu kuputuhi hei ārahi i te atahanga kua whakaputaina.
negative_promptkōwhiringa
Momostring
Taunoa
Te tohutohu tōraro e whakamahia ana i te whakaputa ataata.
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.
num_inference_stepskōwhiringa
Momointeger
Taunoa27
2 – 40
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
Taunoafalse
Te tirotiro haumaru tāuru i mua i te tukatuka, ā, ko ngā pūkete whai mana anake ka taea te whakaweto. Ka tirotirohia tonutia ngā tono kāore he mana; ki te whai mana, mā true e whakahohe te tirotiro.
enable_output_safety_checkerkōwhiringa
Momoboolean
Taunoafalse
Ka whakahaere i te tirotiro haumaru o te ataata kua whakaputaina; mā te tautuhi true e whakahohe te tirotiro i muri i te whakaputanga.
enable_prompt_expansionkōwhiringa
Momoboolean
Taunoafalse
Tukua he tauira reo nui kia whakarangatira i te tohutohu ki ngā taipitopito. Mā tēnei whakawhānuitanga e noho pūmau ai te tikanga o te tohutohu.
accelerationkōwhiringa
Momoenum
Taunoaregular
noneregular
Te tautuhinga whakatere, ko 'regular' te kōwhiringa e taunakitia ana. Mā te whakanui i te whakatere ka heke te kounga hei whakapoto i te wā whakaputa.
guidance_scalekōwhiringa
Momonumber
Taunoa3.5
1 – 10
Te kaha arataki classifier-free, ka whakawhiti i te ngaronga kounga pea mō te ū tata ake ki te tohutohu ina piki te tauine.
guidance_scale_2kōwhiringa
Momonumber
Taunoa4
1 – 10
Te tauine ārahi e whakahaere ana i te tino whai a te tauira i te tohutohu i tana wāhanga tuarua.
shiftkōwhiringa
Momonumber
Taunoa2
1 – 10
Te tautuhinga neke atahanga, he awhe whakaaetia 1.0–10.0.
loraskōwhiringa
Momoobject[]
Taunoa[]
Ngā taumaha LoRA ka whakamahia i te wā whakatauira.
loras[].pathe hiahiatia ana
Momostring
Wāhi o ngā taumaha LoRA, ka tauwhāitihia hei URL, hei ara rānei.
loras[].weight_namekōwhiringa
Momostring | null
Ingoa taumaha LoRA, e hiahiatia ana anake ina neke atu i te 1 te maha o ngā kōnae safetensors i tētahi pūranga Hugging Face. Ka whakamahia tēnei ingoa anake ina tautuhi a `path` i taua pūranga.
loras[].scalekōwhiringa
Momonumber
Taunoa1
0 – 4
Kaitauine whakarea ka whakamahia ki te taumaha LoRA i mua i te hanumi ki te tauira pūtake.
loras[].transformerkōwhiringa
Momoenum
Taunoahigh
highlowboth
Te wāhi ūnga Transformer mō te taumaha LoRA. Kōwhiria 'high' mō te transformer haruru-teitei, 'low' mō te transformer haruru-iti, 'both' rānei hei uta i te taumaha ki ngā transformer e rua.
reverse_videokōwhiringa
Momoboolean
Taunoafalse
Pana whakamuri ataata; mā true e whakamuri te purei.
image_sizekōwhiringa
Momoobject
Taunoasquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Ngā inenga o te atahanga kua whakaputaina.
image_formatkōwhiringa
Momoenum
Taunoajpeg
pngjpeg
Hōputu kōnae mō te atahanga ka puta.
e hiahiatia ana

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan/v2.2-a14b/text-to-image/lora",
  "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": 50,
    "usd": "0.05",
    "charged": 50,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "image": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    },
    "seed": 42
  },
  "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/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
image
object {url, content_type, file_name, file_size}Kōnae atahanga i whakaputaina.
seed
integerTe uara kākano i whakamahia i te whakaputanga.

Ētahi atu tauira: Kuputuhi ki te Atahanga

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