Peke ki ngā ihirangi

Uno

Whakauru

id tauira uno
# 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/uno?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"
    ],
    "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://api.doitong.com/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
ByteDance Whakatika Atahanga #image-to-image

He whakaputa atahanga mā ngā tohutoro maha, ka hanumi i ngā atahanga tāuru me tētahi aki kuputuhi

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.

•e hiahiatia ana

Te tohutohu e ārahi ana i te whakaputanga atahanga.

•e hiahiatia ana
Whakataka he kōnae,

Ngā URL mō ngā atahanga i whakamahia i te whakaputanga atahanga.

image_size taunoa square_hd

Ngā rahinga o te atahanga putanga, ka kōwhiria mai i ngā tatūkē, ka tautuhia rānei hei whānui me te teitei ritenga. Me taea ngā rahinga ritenga e rua te whakawehe ki te 8.

num_images taunoa 1

Te tatau atahanga e tonoa ana mō te whakaputanga.

Arā atu output_format · num_inference_steps · guidance_scale · seed · enable_safety_checker
output_format taunoa jpeg

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

taunoa 28

Tau o ngā hipanga whakatauira hei whakahaere.

taunoa 3.5

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

Kākano whakaputanga: mā none e kōwhiri matapōkere, engari mā te uara kua tukuna e taea ai te whakaputanga whakahoki.

POST /run/uno?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://api.doitong.com/v1/run/uno?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"
    ],
    "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://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ō Uno

Ka whakaputa atahanga hou mai i tētahi aki me tētahi, neke atu rānei, ngā atahanga tohutoro i `input_image_urls`. Ka whakamahi `image_size` i ngā tatūkē mai i te tapawhā ki te whakaahua 16:9 poutū, whakapae hoki, ā, ka whakaputa `num_images` i ngā hua 1 ki te 4. Ko te awhe `num_inference_steps` 1 ki te 50, ā, ko `guidance_scale` 1 ki te 20. He JPEG, PNG rānei te putanga, me tētahi kākano hei tukurua i ngā 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
input_image_urlse hiahiatia ana
Momourl[] · image
Ngā URL mō ngā atahanga i whakamahia i te whakaputanga atahanga.
image_sizekōwhiringa
Momoobject
Taunoasquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Ngā rahinga o te atahanga putanga, ka kōwhiria mai i ngā tatūkē, ka tautuhia rānei hei whānui me te teitei ritenga. Me taea ngā rahinga ritenga e rua te whakawehe ki te 8.
prompte hiahiatia ana
Momostring
Te tohutohu e ārahi ana i te whakaputanga atahanga.
seedkōwhiringa
Momointeger | null
Kākano whakaputanga: mā none e kōwhiri matapōkere, engari mā te uara kua tukuna e taea ai te whakaputanga whakahoki.
num_imageskōwhiringa num_outputs
Momointeger
Taunoa1
1 – 4
Te tatau atahanga e tonoa ana mō te whakaputanga.
num_inference_stepskōwhiringa
Momointeger
Taunoa28
1 – 50
Tau o ngā hipanga whakatauira hei whakahaere.
guidance_scalekōwhiringa
Momonumber
Taunoa3.5
1 – 20
Te kaha ū ki te tohutohu mō te kōwhiringa atahanga, kua whakaaturia hei CFG (Classifier Free Guidance).
output_formatkōwhiringa
Momoenum
Taunoajpeg
jpegpng
Te hōputu kōnae mō te atahanga ka puta.
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.
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": "uno",
  "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": {
    "input_image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ],
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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
      }
    ],
    "timings": {},
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "The figurine is in the crystal ball"
  },
  "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, content_type, file_name, file_size, width, height}Ngā URL atahanga i 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
stringTohutohu kua tukuna mō te whakaputa atahanga.

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