Saltar al cuntegna

Luma Uni-1 Text to Image Max

Integrar

ID dal 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"

Questa dumonda: $0,102 102 credits API Lantschar sin questa pagina

Obtegna ina clav API
Luma AI Text a maletg Inputs da referenza #realism#typography#stylized

Stgalim da la pli auta fidelitad da Uni-1 text-to-image cun tipografia, stil manga e fin a 9 maletgs da referenza

Luma AI · Maletg

Tes emprim resultat vegn qua

Construis ina dumonda sutvart e l'exequescha cun tia clav API. Outputs vegnan copiads en nossa memorisaziun, conservads per adina u 7 dis gratuitamain.

Construir ina dumonda

Ils controls vegnan generads dal schema dal model. Il code e ​​il pretsch s'actualiseschan durant che ti als midas.

•obligatori 88 / 6000

Descripziun textuala dal maletg d'output giavischà.

aspect_ratio

Relaziun larghezza-altezza dal maletg d'output.

Avanzà images · style · output_format · enable_web_search · enable_safety_checker
reference_image_urls
Trametta in datoteca u · fin a 9

Glista facultativa d'URLs per maletgs da referenza che guidan la generaziun.

style standard auto

Stil visual applitgà al maletg generà.

output_format

Format utilisà per encodar il maletg generà.

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

Executar questa dumonda

Tia clav resta en quest browser: ella vegn tramessa mo al Doitong API e memorisada (localStorage) mo sch'ella scheccas Tiar a memoria. Obtegnair ina clav API

Davart Luma Uni-1 Text to Image Max

La varianta da pli auta qualitad da la famiglia Uni-1, che genera in singul maletg d'in `prompt` da maximalmain 6000 caracteristicas. Tscherna tranter nov proporziuns d'aspect da 3:1 fin 1:3, in stil auto u manga, ed output png u jpeg. Fin a 9 maletgs da referenza pon vegnir passads en `reference_image_urls`, e `enable_web_search` permetta al model da consultar il web per referenzas.

Parameters

Invia u il num canonic u il num nativ, betg omaduas. Nums canonics

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
≤ 6 000 caracters
Descripziun textuala dal maletg d'output giavischà.
aspect_ratioopziunal
Tipenum
3:12:116:93:21:12:39:161:21:3
Relaziun larghezza-altezza dal maletg d'output.
styleopziunal
Tipenum
Standardauto
automanga
Stil visual applitgà al maletg generà.
output_formatopziunal
Tipenum
pngjpeg
Format utilisà per encodar il maletg generà.
reference_image_urlsopziunal images
Tipurl[] · image
≤ 9 elements
Glista facultativa d'URLs per maletgs da referenza che guidan la generaziun.
enable_safety_checkeropziunal
Tipboolean
Standardtrue
La controlla po vegnir schluccada cun definir false, premess che l'appelant saja autorisà.
obligatori Num canonic, er acceptà

Ils parameters da datotecas acceptan ina URL publica https://, ina URI data: fin a 10 MB u il file_url d'ina chargiada. Datotecas

Output

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"
  }
}
Tias datotecas, tia decisiunMintga outputs[].url è ina copia en nossa memorisaziun: conservada per adina (pajà per GB-mes) u 7 dis gratuitamain, tenor la configuraziun dal conto u ?storage=.
La medema structura per mintga modeltype, url, content_type, width, height e duration, tant per maletgs sco per video e audio. output è l'object da resultat dal model sez.
Champs da l'output
images
array of object {url, content_type, file_name, file_size}Maletg u maletgs producids tras generaziun.

Dapli models: Text a maletg

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/luma/agent/uni-1/v1/max.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt