Neidio i'r cynnwys

Luma Uni-1 Text to Image Max

Integreiddio

ID y model luma/agent/uni-1/v1/max
# 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/luma/agent/uni-1/v1/max?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"

Y cais hwn: $0.102 102 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API
Luma AI Testun i Ddelwedd Mewnbynnau cyfeirio #realism#typography#stylized

Haen ffyddlondeb uchaf Uni-1 testun-i-ddelwedd gyda theipograffeg, arddull manga a hyd at 9 delwedd gyfeiriol

Luma AI · Delwedd

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol 88 / 6000

Disgrifiad testun o'r allbwn delwedd dymunol.

aspect_ratio

Cymhareb lled-i-uchder y ddelwedd allbwn.

Uwch images · style · output_format · enable_web_search · enable_safety_checker
reference_image_urls
Gollyngwch ffeil, neu · hyd at 9

Rhestr URL dewisol ar gyfer delweddau cyfeirio sy'n arwain cynhyrchu.

style rhagosodedig auto

Arddull weledol a gymhwysir i'r ddelwedd a gynhyrchir.

output_format

Fformat a ddefnyddir i amgodio'r ddelwedd a gynhyrchir.

POST /run/luma/agent/uni-1/v1/max?wait=20 dyfynbris → $0.102
# 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/luma/agent/uni-1/v1/max?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"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â Luma Uni-1 Text to Image Max

Haen ansawdd uwch teulu Uni-1, sy'n cynhyrchu un ddelwedd o `prompt` hyd at 6000 nod. Dewiswch ymhlith naw cymhareb agwedd o 3:1 i 1:3, arddull auto neu manga, ac allbwn png neu jpeg. Gellir pasio hyd at 9 delwedd yn `reference_image_urls`, ac mae `enable_web_search` yn gadael i'r model ymgynghori â'r we am gyfeiriadau.

Paramedrau

Anfonwch naill ai'r enw canonaidd neu'r enw brodorol, nid y ddau. Enwau canonaidd

EnwMath RhagosodedigCaniateir Disgrifiad
promptgofynnol
Mathstring
≤ 6,000 nod
Disgrifiad testun o'r allbwn delwedd dymunol.
aspect_ratiodewisol
Mathenum
3:12:116:93:21:12:39:161:21:3
Cymhareb lled-i-uchder y ddelwedd allbwn.
styledewisol
Mathenum
Rhagosodedigauto
automanga
Arddull weledol a gymhwysir i'r ddelwedd a gynhyrchir.
output_formatdewisol
Mathenum
pngjpeg
Fformat a ddefnyddir i amgodio'r ddelwedd a gynhyrchir.
reference_image_urlsdewisol images
Mathurl[] · image
≤ 9 eitem
Rhestr URL dewisol ar gyfer delweddau cyfeirio sy'n arwain cynhyrchu.
enable_safety_checkerdewisol
Mathboolean
Rhagosodedigtrue
Gellir llacio'r sgrinio drwy osod false, ar yr amod bod y galwr wedi'i awdurdodi.
gofynnol Enw canonaidd, derbyniol hefyd

Mae paramedrau ffeil yn derbyn URL cyhoeddus https://, URI data: hyd at 10 MB, neu file_url uwchlwythiad. Ffeiliau

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "luma/agent/uni-1/v1/max",
  "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": 102,
    "usd": "0.102",
    "charged": 102,
    "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
      }
    ]
  },
  "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"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
images
array of object {url, content_type, file_name, file_size}Delwedd neu ddelweddau a gynhyrchir drwy gynhyrchu.

Mwy o fodelau: Testun i Ddelwedd

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/luma/agent/uni-1/v1/max.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt