Leum chun t-susbaint

FLUX.1 [dev]

Amalaich

ID a’ mhodail flux/dev
# 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/flux/dev?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A lighthouse keeper'\''s cottage on a windswept cliff at blue hour, warm light glowing from small square windows, waves breaking far below, long-exposure sea mist, moody cinematic landscape photograph, 35mm, rich detail.",
    "num_outputs": 1
  }'

# 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"

An t-iarrtas seo: $0.025 25 creideasan API Ruith e air an duilleig seo

Faigh iuchair API
Black Forest Labs Teacsa gu Ìomhaigh #open-weights#realism#versatile

An FLUX le cuideaman fosgailte, nas gèire agus nas dìlse do bhrosnachaidhean fada na schnell.

Eisimpleirean

Toradh · ~31 s
A lighthouse keeper's cottage on a windswept cliff at blue hour, warm light glowing from small square windows, waves ...

PromptA lighthouse keeper's cottage on a windswept cliff at blue hour, warm light glowing from small square windows, waves breaking far below, long-exposure sea mist, moody cinematic landscape photograph, 35mm, rich detail.

1$0.025 · 25 creideasan API

Tog iarrtas

Tha na smachdan air an cruthachadh bho sgeama a’ mhodail. Bidh an còd agus a’ phrìs ag ùrachadh fhad ’s a dh’atharraicheas tu iad.

•riatanach

Prompt a stiùireas gineadh ìomhaighe.

image_size bun-roghainn landscape_4_3

Meudan na h-ìomhaigh ghineadh.

num_images

Àireamh nan ìomhaighean a chaidh iarraidh airson gineadh.

Adhartach output_format · acceleration · num_inference_steps · guidance_scale · seed
output_format bun-roghainn jpeg

Cruth faidhle na h-ìomhaigh a thig às.

acceleration bun-roghainn none

Luathachadh gineadh; bidh suidheachaidhean nas àirde a’ lùghdachadh na h-ùine a tha a dhìth airson toraidhean a ghineadh.

bun-roghainn 28

Àireamh nan ceumannan co-dhùnaidh ri ruith.

bun-roghainn 3.5

Neart gèilleadh ris a’ phrompt airson taghadh ìomhaigh, air a chur an cèill mar CFG (Classifier Free Guidance).

Sìol airson ìomhaighean ath-riochdachail: cruthaichidh prompt agus sìol co-ionann an aon ìomhaigh nuair nach eil tionndadh a’ mhodail air atharrachadh.

POST /run/flux/dev?wait=20 tuairmse → $0.025
# 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/flux/dev?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A lighthouse keeper'\''s cottage on a windswept cliff at blue hour, warm light glowing from small square windows, waves breaking far below, long-exposure sea mist, moody cinematic landscape photograph, 35mm, rich detail.",
    "num_outputs": 1
  }'

# 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"

Ruith an t-iarrtas seo

Fuirichidh an iuchair agad sa bhrobhsair seo: thèid a cur chun Doitong API a-mhàin agus a sàbhaladh (localStorage) a-mhàin ma chuireas tu comharra ri Cuimhnich. Faigh iuchair API

Mu FLUX.1 [dev]

Am modail FLUX de 12 billean paramadair le sgeideal samplachaidh slàn (28 ceumannan gu bunaiteach, atharrachadh bho 1 gu 50) agus sgèile stiùiridh a ghabhas gleusadh. Leanaidh e brosnachaidhean mionaideach agus nì e làmhan, aghaidhean agus teacsa goirid nas fheàrr na an tionndadh schnell aig cosgais nas àirde. Meudan ro-shuidhichte no gnàthaichte, suas ri ceithir ìomhaighean gach iarrtas, toradh JPEG no PNG.

Paramadairean

Cuir an t-ainm canonical no an t-ainm dùthchasach, chan e an dà chuid. Ainmean canonical

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
promptriatanach
Seòrsastring
Prompt a stiùireas gineadh ìomhaighe.
image_sizeroghainneil
Seòrsaobject
Bun-roghainnlandscape_4_3
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Meudan na h-ìomhaigh ghineadh.
num_inference_stepsroghainneil
Seòrsainteger
Bun-roghainn28
1 – 50
Àireamh nan ceumannan co-dhùnaidh ri ruith.
seedroghainneil
Seòrsainteger | null
Sìol airson ìomhaighean ath-riochdachail: cruthaichidh prompt agus sìol co-ionann an aon ìomhaigh nuair nach eil tionndadh a’ mhodail air atharrachadh.
guidance_scaleroghainneil
Seòrsanumber
Bun-roghainn3.5
1 – 20
Neart gèilleadh ris a’ phrompt airson taghadh ìomhaigh, air a chur an cèill mar CFG (Classifier Free Guidance).
num_imagesroghainneil num_outputs
Seòrsainteger
Bun-roghainn1
1 – 4
Àireamh nan ìomhaighean a chaidh iarraidh airson gineadh.
output_formatroghainneil
Seòrsaenum
Bun-roghainnjpeg
jpegpng
Cruth faidhle na h-ìomhaigh a thig às.
accelerationroghainneil
Seòrsaenum
Bun-roghainnnone
noneregularhigh
Luathachadh gineadh; bidh suidheachaidhean nas àirde a’ lùghdachadh na h-ùine a tha a dhìth airson toraidhean a ghineadh.
riatanach Ainm canonical, gabhar ris cuideachd

Toradh

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flux/dev",
  "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": 25,
    "usd": "0.025",
    "charged": 25,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field, telephoto lens",
    "image_size": "landscape_4_3",
    "num_outputs": 1
  },
  "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"
      }
    ],
    "timings": {},
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "prompt": "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://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Na faidhlichean agad, do roghainnTha gach outputs[].url na lethbhreac air an stòradh againn: air a chumail gu bràth (air a phàigheadh gach GB-mìos) no 7 latha an-asgaidh, a rèir suidheachadh a’ chunntais agad no ?storage=.
An aon chruth air gach modailtype, url, content_type, width, height agus duration, airson dealbhan, bhidio agus fuaim le chèile. ’S e output nì toraidh a’ mhodail fhèin.
Raointean toraidh
images
array of object {url, width, height, content_type}Fiosrachadh faidhle airson nan ìomhaighean gineadh.
timings
object
seed
integerSìol gineadh ìomhaighe, a’ gabhail a-steach an luach a chaidh a thaghadh air thuaiream ma chaidh sìol fhàgail às an in-chur; air dhòigh eile, bidh e ag ath-aithris an luach a chaidh a solar.
has_nsfw_concepts
array of booleanA’ comharrachadh a bheil bun-bheachdan NSFW a’ nochdadh anns na h-ìomhaighean a chaidh a ghineadh.
prompt
stringPrompt a chaidh a chleachdadh rè gineadh ìomhaighe.

Barrachd mhodalan: Teacsa gu Ìomhaigh

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/flux/dev.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt