Peke ki ngā ihirangi

Uso

Whakauru

id tauira uso
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/uso?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input_image_urls": [
      "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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Tēnei tono: $ 0.10 100 whiwhinga API · ≈ ₽ 10.55 Whakahaerehia ki tēnei whārangi

Tikina he kī API
ByteDance Whakatika Atahanga #image-to-image

He whakaputa atahanga i runga i te kāhua me te kaupapa, mai i tētahi atahanga ihirangi me tētahi, e rua rānei, ngā atahanga kāhua

ByteDance · 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.

taunoa

Kuputuhi tohutohu whakaputa; waiho kia kau hei mahi whakawhiti kāhua anake.

•e hiahiatia ana
Whakataka he kōnae,

Rārangi URL atahanga i tēnei raupapa: [content_image, style_image, extra_style_image].

image_size taunoa square_hd

Ngā inenga o te atahanga kua whakaputaina.

num_images taunoa 1

Tatau atahanga ka whakaputaina ngātahi.

Arā atu negative_prompt · output_format · num_inference_steps · guidance_scale · seed · keep_size · enable_safety_checker
taunoa

Ihirangi atahanga kāore e hiahiatia ana hei whakakore, tae atu ki ngā huānga, ngā kāhua me ngā mea hanga.

output_format taunoa png

Hōputu o te atahanga putanga: ka pupuri PNG i te pūataata, ā, ka iti ake ngā kōnae a JPEG.

taunoa 28

Te maha o ngā tukurua whakaiti-noise, ka hokona te wā whakaputa roa ake mō te kounga pai ake pea ina piki te maha.

taunoa 4

Whakahaere ū ki te tohutohu: whakanuia tēnei uara kia tino whai te putanga i te tohutohu.

Kākano e whakahaere ana i te matapōkeretanga whakaputa. Mā te whakamahi anō i te kākano ka puta he putanga pūmau, ka taea te whakaputa anō.

POST /run/uso?wait=20 utu → $ 0.10
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/uso?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input_image_urls": [
      "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.ru/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ō Uso

Ka tango i `input_image_urls` i te raupapa atahanga ihirangi, atahanga kāhua, me te atahanga kāhua tāpiri ā-kōwhiringa. Ka noho kau te aki mō te whakawhiti kāhua parakore, ā, ka aukati `negative_prompt` i ngā huānga kāore e hiahiatia. Mā `keep_size` e pupuri te whakatakotoranga me ngā rahinga o te atahanga ihirangi. Ka whakaputa 1 ki te 4 atahanga ia oma, me ngā hīkoi 1 ki te 50 me te putanga PNG, JPEG 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
promptkōwhiringa
Momostring
Taunoa
Kuputuhi tohutohu whakaputa; waiho kia kau hei mahi whakawhiti kāhua anake.
input_image_urlse hiahiatia ana
Momourl[] · image
Rārangi URL atahanga i tēnei raupapa: [content_image, style_image, extra_style_image].
image_sizekōwhiringa
Momoobject
Taunoasquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Ngā inenga o te atahanga kua whakaputaina.
negative_promptkōwhiringa
Momostring
Taunoa
Ihirangi atahanga kāore e hiahiatia ana hei whakakore, tae atu ki ngā huānga, ngā kāhua me ngā mea hanga.
num_inference_stepskōwhiringa
Momointeger
Taunoa28
1 – 50
Te maha o ngā tukurua whakaiti-noise, ka hokona te wā whakaputa roa ake mō te kounga pai ake pea ina piki te maha.
guidance_scalekōwhiringa
Momonumber
Taunoa4
1 – 10
Whakahaere ū ki te tohutohu: whakanuia tēnei uara kia tino whai te putanga i te tohutohu.
keep_sizekōwhiringa
Momoboolean
Taunoafalse
Pupuritia te rahinga me te whakatakotoranga o te atahanga ihirangi i te tukatuka, he kōwhiringa whaihua mō te whakawhiti kāhua.
num_imageskōwhiringa num_outputs
Momointeger
Taunoa1
1 – 4
Tatau atahanga ka whakaputaina ngātahi.
seedkōwhiringa
Momointeger | null
Kākano e whakahaere ana i te matapōkeretanga whakaputa. Mā te whakamahi anō i te kākano ka puta he putanga pūmau, ka taea te whakaputa anō.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Ka whakakā i te kimi me te tātari ihirangi NSFW.
output_formatkōwhiringa
Momoenum
Taunoapng
jpegpng
Hōputu o te atahanga putanga: ka pupuri PNG i te pūataata, ā, ka iti ake ngā kōnae a JPEG.
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": "uso",
  "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": 100,
    "usd": "0.10",
    "charged": 100,
    "refunded": 0
  },
  "input": {
    "input_image_urls": [
      "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",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "string",
    "timings": {}
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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 i whakaputaina e whai ana i te whakarite kāhua, te whakarite kaupapa, e rua rānei.
seed
integerUara kākano i whakamahia i te whakaputanga.
has_nsfw_concepts
array of booleanNgā putanga mō ia atahanga mai i te kimi NSFW i ngā atahanga i whakaputaina.
prompt
stringTe tohutohu i whakamahia i te whakaputanga.
timings
objectNgā inenga wā mahi kua wāwāhia ki ia wāhanga.

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