models/Luma Labs/Luma Ray 2 Modify
LL
Luma Labs

Luma Ray 2 Modify

video
Compare

Ray2 Modify is a video generative model capable of restyling or retexturing the entire shot, from turning live-action into CG or stylized animation, to changing wardrobe, props, or the overall aesthetic and swap environments or time periods, giving you control over background, location, or even weather.

MODALITIES
video
PER SECOND
$0.350

Luma Ray 2 Modify (luma-labs/luma-dream-machine-ray-2-modify) is a video model from Luma Labs. Pricing via AIgateway: $0.350 per second. Call it via https://api.aigateway.sh/v1/videos/generations — set model="luma-labs/luma-dream-machine-ray-2-modify".

model · luma-labs/luma-dream-machine-ray-2-modify

Use this model

model: luma-labs/luma-dream-machine-ray-2-modify
curl https://api.aigateway.sh/v1/videos/generations \
  -H "Authorization: Bearer $AIGATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"luma-labs/luma-dream-machine-ray-2-modify","prompt":"a slow drone shot over a mountain lake","duration":5}'
API schema

Call Luma Ray 2 Modify from any OpenAI SDK

POST https://api.aigateway.sh/v1/videos/generations·Content-Type: application/json·Auth: Bearer sk-aig-...

Request body

json
{
  "model": "luma-labs/luma-dream-machine-ray-2-modify",
  "prompt": "A drone shot of a mountain lake at golden hour",
  "duration": 5,  // seconds
  "aspect_ratio": "16:9"
}
// optional "image_url" to animate a seed image

// Response is an async job — poll /v1/jobs/<id> until status === "completed".

Response

json
{
  "id": "job_abc123",
  "status": "queued",        // queued | processing | completed | failed
  "model": "luma-labs/luma-dream-machine-ray-2-modify",
  "created": 1776947082
}

// After completion:
{
  "id": "job_abc123",
  "status": "completed",
  "result": {
    "url": "https://media.aigateway.sh/video/abc123.mp4",
    "duration": 5,
    "resolution": "1920x1080"
  }
}

Quickstart

# See docs at https://aigateway.sh/docs

Errors

401authentication_errorInvalid or missing API key
402insufficient_creditsWallet empty (PAYG only)
404not_foundUnknown model or endpoint
429rate_limit_errorOver per-minute limit — see Retry-After header
500server_errorUpstream provider failed (retryable)
503service_unavailableUpstream saturated (retryable)
Full docs →API reference →OpenAPI spec →llms.txt →

Frequently asked questions

What is Luma Ray 2 Modify?
Ray2 Modify is a video generative model capable of restyling or retexturing the entire shot, from turning live-action into CG or stylized animation, to changing wardrobe, props, or the overall aesthetic and swap environments or time periods, giving you control over background, location, or even weather. It is a video model from Luma Labs, accessible via AIgateway's OpenAI-compatible API at slug luma-labs/luma-dream-machine-ray-2-modify.
How much does Luma Ray 2 Modify cost via AIgateway?
Pass-through pricing. See the pricing panel on this page for exact rates.
How do I call Luma Ray 2 Modify from my code?
Point the OpenAI SDK at https://api.aigateway.sh/v1 with your AIgateway key and set model to "luma-labs/luma-dream-machine-ray-2-modify". The request and response shapes match OpenAI exactly.
Does Luma Ray 2 Modify support streaming, tool calling, vision, and JSON mode?
Streaming — no. Tool calling — no. Vision — no. JSON mode — no. Prompt caching — no.
Can I bring my own Luma Labs API key (BYOK)?
Yes. Attach a Luma Labs key in your AIgateway dashboard and this model flips to pass-through — you pay Luma Labs directly and AIgateway adds no platform fee on those calls.