Peke ki ngā ihirangi

Ernie Image Turbo

Whakauru

id tauira ernie-image/turbo
# 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/ernie-image/turbo?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://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Tēnei tono: ≈$ 0.01 10 whiwhinga API · ≈ ₽ 1.07 Whakahaerehia ki tēnei whārangi

Tikina he kī API
Baidu Kuputuhi ki te Atahanga Putanga 4KTere

He momo tere ake o Ernie Image, kua whakaritea mō te 8 pea ngā hipanga tango-hā me te arataki iti

Baidu · 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

Tohutohu whakaputa atahanga e whakaae ana ki te kuputuhi Ingarihi, Hainamana, Hapanihi rānei.

taunoa square_hd

Ngā inenga o te atahanga kua whakaputaina.

num_images taunoa 1

Te maha o ngā atahanga hei whakaputa.

Arā atu negative_prompt · output_format · acceleration · num_inference_steps · guidance_scale · seed · enable_prompt_expansion · enable_safety_checker
taunoa

Tohutohu tōraro e whakaahua ana i ngā ihirangi hei aukati i te atahanga.

output_format taunoa jpeg

Hōputu mō te atahanga ka puta.

acceleration taunoa regular

Tautuhinga whakatere mō te whakaputa atahanga.

taunoa 8

Tatau kaupae tango haruru. Kua whakaritea te tauira Turbo mō ngā kaupae 8.

taunoa 1

Te kaha o te arataki kore-whakarōpū.

Kākano hei whakahaere i te matapōkeretanga mō ngā putanga ka taea te tārua.

POST /run/ernie-image/turbo?wait=20 utu → $ 0.01
# 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/ernie-image/turbo?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://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ō Ernie Image Turbo

He putanga turbo o Ernie Image mō te tuhi-ki-te-atahanga, me ngā tohutohu Ingarihi, Hainamana, Hapanihi rānei. Ko te taunoa he 8 `num_inference_steps` (te mōrahi 20) me `guidance_scale` 1. Ka tautoko hoki i `negative_prompt`, ngā tatūkē `image_size`, kia 4 ngā atahanga mō ia karanga, te whakawhānui tohutohu hei kōwhiringa, 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
Tohutohu whakaputa atahanga e whakaae ana ki te kuputuhi Ingarihi, Hainamana, Hapanihi rānei.
negative_promptkōwhiringa
Momostring
Taunoa
Tohutohu tōraro e whakaahua ana i ngā ihirangi hei aukati i te atahanga.
image_sizekōwhiringa
Momoobject
Taunoasquare_hd
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9square_uhdportrait_3_2landscape_3_2portrait_hdlandscape_hd
Ngā inenga o te atahanga kua whakaputaina.
num_inference_stepskōwhiringa
Momointeger
Taunoa8
1 – 20
Tatau kaupae tango haruru. Kua whakaritea te tauira Turbo mō ngā kaupae 8.
guidance_scalekōwhiringa
Momonumber
Taunoa1
1 – 20
Te kaha o te arataki kore-whakarōpū.
seedkōwhiringa
Momointeger | null
Kākano hei whakahaere i te matapōkeretanga mō ngā putanga ka taea te tārua.
num_imageskōwhiringa num_outputs
Momointeger
Taunoa1
1 – 4
Te maha o ngā atahanga hei whakaputa.
enable_prompt_expansionkōwhiringa
Momoboolean
Taunoatrue
Ka whakahaere i te whakarei tohutohu e hāngai ana ki te LLM, e tāpiri taipitopito ana ki ngā putanga ina whakakāngia.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
Te tirotiro NSFW mō ngā atahanga kua whakaputaina, ka taea e ngā pūkete whai mana anake te mono. He mea here tonu ngā tirotiro mō ngā tono kāore he mana pēnei.
output_formatkōwhiringa
Momoenum
Taunoajpeg
jpegpng
Hōputu mō te atahanga ka puta.
accelerationkōwhiringa
Momoenum
Taunoaregular
noneregularhigh
Tautuhinga whakatere mō te whakaputa atahanga.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ernie-image/turbo",
  "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": 10,
    "usd": "0.01",
    "charged": 10,
    "refunded": 0
  },
  "input": {
    "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",
        "width": 1024,
        "height": 768,
        "content_type": "image/jpeg"
      }
    ],
    "seed": 42,
    "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, width, height, content_type}Kohinga atahanga kua whakaputaina.
seed
integerKākano i whakamahia i te whakaputanga.
prompt
stringTe tohutohu e whakamahia ana i te whakaputanga atahanga.
timings
objectRaraunga wā.

Ē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/ernie-image/turbo.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt