Peke ki ngā ihirangi

Gemini 3.1 Flash Image Preview

Whakauru

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

Tēnei tono: $ 0.08 80 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Google Kuputuhi ki te Atahanga Putanga 4KTeretae atu ki 4K

He tuhi-ki-te-whakaahua Gemini 3.1 Flash Image me te putanga 0.5K ki te 4K, ngā ōwehenga tino whānui, te rapu tukutuku me te whakaaro

I hangaia ki Doitong

Ngā mahi tūmatanui i hangaia ki Gemini 3.1 Flash Image Preview e te hapori Doitong. Whakamahia anō he tono mā te pāwhiri kotahi.

Ngā mahi tūmatanui kua whakaaturia: 16
Strong rule: style --- 3D Pixar ---. Молодая девушка около 22 лет с яркими, выразительными карими...

Strong rule: style --- 3D Pixar ---. Молодая девушка около 22 лет с яркими, выразительными карими глазами и копной каштановых вьющихся волос, собранных в небрежный пучок. На ней стильные очки в тонкой золотистой оправе и уютный оверсайз-худи пастельно-фиолетового цвета. Лицо отражает...

Art style: Cinematic Realistic. Крупный план Джулса, который с философским видом накалывает кусок...

Art style: Cinematic Realistic. Крупный план Джулса, который с философским видом накалывает кусок блина на вилку. Он смотрит на Винни с легким снисхождением. Винни на заднем плане выглядит взбешенным, его лицо искажено от злости. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FINAL STYLE ENFORCEMENT...

Art style: 3D Pixar. Мальчик раскрывает упаковку и находит внутри красивую книгу с историями о пр...

Art style: 3D Pixar. Мальчик раскрывает упаковку и находит внутри красивую книгу с историями о приключениях. Мама сидит рядом и улыбается. Мягкий свет, радость и уют. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FINAL STYLE ENFORCEMENT (this is the authoritative rendering directive — it overrides any...

Art style: 3D Pixar. Стойка ресепшн в дорогом отеле. Соня в униформе натянуто улыбается раздражен...

Art style: 3D Pixar. Стойка ресепшн в дорогом отеле. Соня в униформе натянуто улыбается раздраженному гостю. Рядом стоит ее коллега с сочувствующим видом. Стиль Pixar, обстановка строгая и деловая, освещение холодное. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FINAL STYLE ENFORCEMENT (this is the...

Art style: 3D Pixar. Взрослый персонаж опускается на одно колено перед ребенком в центре загромож...

Art style: 3D Pixar. Взрослый персонаж опускается на одно колено перед ребенком в центре загроможденной комнаты. Она мягко касается плеча девочки, глядя ей прямо в глаза с доброй улыбкой. Вокруг них разбросаны плюшевые медведи и детали конструктора. Камера на уровне глаз персонажей, создавая...

Art style: 3D stylized animation. Девушка со светлыми волосами в черном платье стоит у красной ко...

Art style: 3D stylized animation. Девушка со светлыми волосами в черном платье стоит у красной ковровой дорожки. Ее глаза широко раскрыты от удивления, рот слегка приоткрыт. Теплое освещение падает на ее лицо. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FINAL STYLE ENFORCEMENT (this is the...

Art style: 3D Pixar, cinematic lighting, glossy materials. Оникс и Жемчужина с маленькой белой со...

Art style: 3D Pixar, cinematic lighting, glossy materials. Оникс и Жемчужина с маленькой белой собачкой на поводке стоят на улице перед очень богатым, современным особняком с большими окнами. Вечернее освещение, теплый свет из окон дома. 3D Pixar стиль, высокая детализация....

Art style: 3D Pixar. A cinematic close-up of a 3-year-old boy named Maxim looking guilty and clut...

Art style: 3D Pixar. A cinematic close-up of a 3-year-old boy named Maxim looking guilty and clutching his stomach, large expressive eyes filled with regret, soft warm indoor lighting with a shallow depth of field. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FINAL STYLE ENFORCEMENT (this is the...

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 88 / 50000

Tohutohu kupu hei whakaputa atahanga.

resolution taunoa 1K

Taumira mō te atahanga putanga.

taunoa auto

Kōwhiria tōtika te āwehenga āhuatanga o te atahanga kua whakaputaina, tae atu ki ngā kōwhiringa tino rerekē 4:1, 1:4, 8:1, 1:8, ka kōwhiri rānei i te "auto" mō te kōwhiringa mā te tauira i runga i te tohutohu.

num_images taunoa 1

Te tatau atahanga e tonoa ana mō te whakaputanga.

Arā atu system_prompt · output_format · safety_tolerance · thinking_level · seed · limit_generations
0 / 50000

He aratohu persona me te kāhua putanga mō te tono katoa, ka tukuna ki Gemini hei tohutohu pūnaha, ki ngā kaiwhakarato OpenAI-hototahi rānei hei karere pūnaha. Kāore he mea e tukuna mō tēnei tohutohu ina wātea-kore te uara.

output_format taunoa png

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

safety_tolerance taunoa 4

Tautuhia te manawanui moderation ihirangi i waenga i te taumata iti rawa o te aukati, 6, me te taumata tino kaha, 1, e aukati ana i te nuinga o ngā ihirangi.

thinking_level

Kōwhiria te 'minimal', te 'high' rānei hei whakahohe i te whakaaro o te tauira ki taua taumata me te whakauru i ōna whakaaro ki te whakaputanga; ki te waiho kia kore e tautuhia, ka noho mono te whakaaro.

Uara kākano hei tīmata i te whakaputanga tau matapōkere.

POST /run/gemini-3.1-flash-image-preview?wait=20 utu → $ 0.08
# 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/gemini-3.1-flash-image-preview?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.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ō Gemini 3.1 Flash Image Preview

Ka whakaputa whakaahua mai i tētahi `prompt`, me `resolution` 0.5K, 1K, 2K, 4K rānei, me ngā ōwehenga tino whānui pērā i 8:1 me 1:8. Mā `system_prompt`, `enable_web_search` me `thinking_level` (minimal, high rānei) e ārahi te waihanga. Ka whakaputa i te 1 ki te 4 whakaahua hei PNG, JPEG, WebP 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
≤ 50,000 pūāhua≥ 3 pūāhua
Tohutohu kupu hei whakaputa atahanga.
num_imageskōwhiringa num_outputs
Momointeger
Taunoa1
1 – 4
Te tatau atahanga e tonoa ana mō te whakaputanga.
seedkōwhiringa
Momointeger | null
Uara kākano hei tīmata i te whakaputanga tau matapōkere.
aspect_ratiokōwhiringa
Momoenum
Taunoaauto
auto21:916:93:24:35:41:14:53:42:39:164:11:48:11:8
Kōwhiria tōtika te āwehenga āhuatanga o te atahanga kua whakaputaina, tae atu ki ngā kōwhiringa tino rerekē 4:1, 1:4, 8:1, 1:8, ka kōwhiri rānei i te "auto" mō te kōwhiringa mā te tauira i runga i te tohutohu.
output_formatkōwhiringa
Momoenum
Taunoapng
jpegpngwebp
Te hōputu kōnae mō te atahanga ka puta.
safety_tolerancekōwhiringa
Momoenum
Taunoa4
123456
Tautuhia te manawanui moderation ihirangi i waenga i te taumata iti rawa o te aukati, 6, me te taumata tino kaha, 1, e aukati ana i te nuinga o ngā ihirangi.
system_promptkōwhiringa
Momostring
Taunoa
≤ 50,000 pūāhua
He aratohu persona me te kāhua putanga mō te tono katoa, ka tukuna ki Gemini hei tohutohu pūnaha, ki ngā kaiwhakarato OpenAI-hototahi rānei hei karere pūnaha. Kāore he mea e tukuna mō tēnei tohutohu ina wātea-kore te uara.
resolutionkōwhiringa
Momoenum
Taunoa1K
0.5K1K2K4K
Taumira mō te atahanga putanga.
limit_generationskōwhiringa
Momoboolean
Taunoatrue
Tepe whakaputanga whakamātau ka pā pea ki te kounga ina whakahohea. Mā te `True` ka herea ia wāhanga prompting ki te 1 whakaputanga, ka whakakapi i ngā tohutohu tatau-atahanga o te tohutohu, ka wareware hoki ki ngā atahanga takawaenga nā te tauira i whakaputa.
thinking_levelkōwhiringa
Momoenum
minimalhigh
Kōwhiria te 'minimal', te 'high' rānei hei whakahohe i te whakaaro o te tauira ki taua taumata me te whakauru i ōna whakaaro ki te whakaputanga; ki te waiho kia kore e tautuhia, ka noho mono te whakaaro.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "gemini-3.1-flash-image-preview",
  "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": 80,
    "usd": "0.08",
    "charged": 80,
    "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",
        "content_type": "image/jpeg",
        "file_name": "0-output.jpeg",
        "file_size": 1843200,
        "width": 1024,
        "height": 768
      }
    ],
    "description": "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, content_type, file_name, file_size, width, height}Ngā atahanga i whakaputaina e te tauira.
description
stringWhakamāramatanga e whai ana i ngā atahanga kua whakaputaina.

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