Saltar al cuntegna

Luma Ray 3.2 Text to Video

Integrar

ID dal model luma/agent/ray/v3.2/text-to-video
# 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/luma/agent/ray/v3.2/text-to-video?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"

Questa dumonda: $0,50 500 credits API · ≈ ₽53,79 Lantschar sin questa pagina

Obtegna ina clav API
Luma AI Text a video Lipsync5–10 sfin a 1080p #stylized#transform

Ray 3.2 text-to-video cun clips da 5s u 10s, sis proporziuns d'aspect, loop ed HDR opziunal cun export EXR

Luma AI · Video

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 en text dal video da crear.

duration 5 s

Lunghezza dal video che vegn generà.

aspect_ratio standard 16:9

Relaziun d'aspect dal video final.

resolution standard 540p

Resoluziun dal video d'output.

Avanzà loop · enable_safety_checker
POST /run/luma/agent/ray/v3.2/text-to-video?wait=20 calculaziun → $0,50
# 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/luma/agent/ray/v3.2/text-to-video?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"

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 Ray 3.2 Text to Video

Generescha video d’in `prompt` da maximalmain 6000 caracters. `aspect_ratio` è da 3:4 fin 21:9, la resoluziun è 540p, 720p u 1080p, e `duration` è 5s u 10s. `loop` funcziuna mo per clips da 5s en il standard-range, entant che `hdr` basegna 720p u 1080p ed excluda 10s e loop. `exr_export` agiunta ina datoteca EXR sche HDR è activà.

Parameters

NumTip StandardPermess Descripziun
promptobligatori
Tipstring
≤ 6 000 caracters
Descripziun en text dal video da crear.
aspect_ratioopziunal
Tipenum
Standard16:9
3:44:31:19:1616:921:9
Relaziun d'aspect dal video final.
resolutionopziunal
Tipenum
Standard540p
540p720p1080p
Resoluziun dal video d'output.
durationopziunal
Tipenum
Standard5s
5s10s
Lunghezza dal video che vegn generà.
loopopziunal
Tipboolean
Standardfalse
Opziun da loop senza giunturas che pretenda tut quai che suonda: durada 5s, standard dynamic range e nagin frame final.
hdropziunal
Tipboolean
Standardfalse
Encodaziun HDR per output MP4 a 720p u 1080p, disponibla mo per contos cun access HDR. HDR na po betg vegnir utilisà cun ina durada da 10s u cun looping.
exr_exportopziunal
Tipboolean
Standardfalse
Export EXR supplementar accumpagnant il MP4, disponibel mo cun access HDR e hdr=true.
enable_safety_checkeropziunal
Tipboolean
Standardtrue
La controlla po vegnir schluccada cun definir false, premess che l'appelant saja autorisà.
obligatori

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "luma/agent/ray/v3.2/text-to-video",
  "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": 500,
    "usd": "0.50",
    "charged": 500,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "exr_file": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "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"
  }
}
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
video
object {url, content_type, file_name, file_size}Video producì dal model.
exr_file
object {url, content_type, file_name, file_size} | nullEXR lateral en la furma d'exports da Luma: u ina datoteca EXR u in archiv ZIP. El vegn generà cura che exr_export è true.

Dapli models: Text a video

Per agents AI: questa pagina sco Markdown è disponibla sut https://doitong.com/rm/developers/models/luma/agent/ray/v3.2/text-to-video.md. Tut ils models e las guidas: https://doitong.com/developers/llms.txt