ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Luma Ray 3.2 Reframe

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ id luma/agent/ray/v3.2/reframe
# 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/ray/v3.2/reframe?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "aspect_ratio": "3:4"
  }'

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

ਉਦਾਹਰਨ ਵਰਗੀਆਂ ਫ਼ਾਈਲਾਂ: $0.60 600 API ਕ੍ਰੈਡਿਟ ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ ਚਲਾਉਣ ਤੋਂ ਪਹਿਲਾਂ ਮਾਪੀਆਂ ਜਾਂਦੀਆਂ ਹਨ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Luma AI ਵੀਡੀਓ ਤੋਂ ਵੀਡੀਓ ਲਿਪਸਿੰਕ5–10 s1080p ਤੱਕ #stylized#transform#lipsync

10 ਸਕਿੰਟ ਤੱਕ ਦੀ ਮੌਜੂਦਾ ਵੀਡੀਓ ਨੂੰ ਨਵੇਂ ਆਸਪੈਕਟ ਰੇਸ਼ੋ ਵਿੱਚ ਰੀਫ੍ਰੇਮ ਕਰਦਾ ਹੈ ਅਤੇ ਪ੍ਰੌਂਪਟ ਤੋਂ ਵਾਧੂ ਕੈਨਵਸ ਦੀ ਆਊਟਪੇਂਟਿੰਗ ਕਰਦਾ ਹੈ

Luma AI · ਵੀਡੀਓ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ 88 / 6000

reframing ਦੌਰਾਨ target aspect ratio ਵਿੱਚ ਤਬਦੀਲੀ ਨਾਲ ਪ੍ਰਗਟ ਹੋਏ ਵਾਧੂ ਕੈਨਵਸ ਨੂੰ ਭਰਨ ਲਈ ਸਮੱਗਰੀ ਹਦਾਇਤਾਂ।

•ਲੋੜੀਂਦਾ video_url
ਫ਼ਾਈਲ ਛੱਡੋ, ਜਾਂ

Reframing source URL, ਜੋ 10 ਸਕਿੰਟ ਤੋਂ ਲੰਬੀਆਂ ਵੀਡੀਓਜ਼ ਤੱਕ ਸੀਮਿਤ ਹੈ।

duration

Reframed ਆਉਟਪੁੱਟ ਦੀ ਮਿਆਦ override: 5s ਜਾਂ 10s ਚੁਣੋ, ਜਾਂ source ਵੀਡੀਓ ਦੀ ਲੰਬਾਈ ਰੱਖਣ ਲਈ ਇਸਨੂੰ ਛੱਡ ਦਿਓ।

aspect_ratio •ਲੋੜੀਂਦਾ

reframed ਆਉਟਪੁੱਟ ਲਈ ਵਰਤਿਆ ਜਾਣ ਵਾਲਾ aspect ratio।

resolution ਡਿਫ਼ਾਲਟ 540p

reframing ਤੋਂ ਬਾਅਦ ਆਉਟਪੁੱਟ ਰੈਜ਼ੋਲਿਊਸ਼ਨ।

ਉੱਨਤ enable_safety_checker · source_position

ਆਉਟਪੁੱਟ ਕੈਨਵਸ ਦੇ ਅੰਦਰ source ਵੀਡੀਓ ਦੀ ਵਿਕਲਪਿਕ ਸਥਿਤੀ, normalized rectangle ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਨਿਰਧਾਰਤ ਕੀਤੀ ਜਾਂਦੀ ਹੈ।

POST /run/luma/agent/ray/v3.2/reframe?wait=20 ਕੋਟ → $0.60
# 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/ray/v3.2/reframe?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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "aspect_ratio": "3:4"
  }'

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

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Luma Ray 3.2 Reframe ਬਾਰੇ

`video_url` (10 ਸਕਿੰਟ ਜਾਂ ਘੱਟ), ਟਾਰਗੇਟ `aspect_ratio` ਅਤੇ ਨਵੇਂ ਖੁੱਲ੍ਹੇ ਖੇਤਰ ਵਿੱਚ ਕੀ ਪੇਂਟ ਕਰਨਾ ਹੈ, ਇਹ ਦੱਸਣ ਵਾਲਾ `prompt` ਲੈਂਦਾ ਹੈ। ਆਸਪੈਕਟ ਰੇਸ਼ੋ 3:4 ਤੋਂ 21:9 ਤੱਕ ਹੁੰਦੇ ਹਨ ਅਤੇ `resolution` 540p, 720p ਜਾਂ 1080p ਹੁੰਦੀ ਹੈ। `duration` ਪੂਰਵ-ਨਿਰਧਾਰਤ ਤੌਰ ’ਤੇ ਸਰੋਤ ਦੀ ਲੰਬਾਈ ਹੁੰਦੀ ਹੈ ਅਤੇ ਇਸਨੂੰ 5s ਜਾਂ 10s ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ। `source_position` ਨਵੇਂ ਕੈਨਵਸ ਵਿੱਚ ਮੂਲ ਫੁਟੇਜ ਦੀ ਸਥਿਤੀ ਰੱਖਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਕੈਨੋਨਿਕਲ ਨਾਮ ਜਾਂ ਨੇਟਿਵ ਨਾਮ ਵਿੱਚੋਂ ਕੋਈ ਇੱਕ ਭੇਜੋ, ਦੋਵੇਂ ਨਹੀਂ। ਕੈਨੋਨਿਕਲ ਨਾਮ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
≤ 6,000 ਅੱਖਰ
reframing ਦੌਰਾਨ target aspect ratio ਵਿੱਚ ਤਬਦੀਲੀ ਨਾਲ ਪ੍ਰਗਟ ਹੋਏ ਵਾਧੂ ਕੈਨਵਸ ਨੂੰ ਭਰਨ ਲਈ ਸਮੱਗਰੀ ਹਦਾਇਤਾਂ।
video_urlਲੋੜੀਂਦਾ video
ਕਿਸਮurl · video
Reframing source URL, ਜੋ 10 ਸਕਿੰਟ ਤੋਂ ਲੰਬੀਆਂ ਵੀਡੀਓਜ਼ ਤੱਕ ਸੀਮਿਤ ਹੈ।
aspect_ratioਲੋੜੀਂਦਾ
ਕਿਸਮenum
3:44:31:19:1616:921:9
reframed ਆਉਟਪੁੱਟ ਲਈ ਵਰਤਿਆ ਜਾਣ ਵਾਲਾ aspect ratio।
resolutionਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟ540p
540p720p1080p
reframing ਤੋਂ ਬਾਅਦ ਆਉਟਪੁੱਟ ਰੈਜ਼ੋਲਿਊਸ਼ਨ।
durationਵਿਕਲਪਿਕ
ਕਿਸਮenum
5s10s
Reframed ਆਉਟਪੁੱਟ ਦੀ ਮਿਆਦ override: 5s ਜਾਂ 10s ਚੁਣੋ, ਜਾਂ source ਵੀਡੀਓ ਦੀ ਲੰਬਾਈ ਰੱਖਣ ਲਈ ਇਸਨੂੰ ਛੱਡ ਦਿਓ।
source_positionਵਿਕਲਪਿਕ
ਕਿਸਮobject
ਆਉਟਪੁੱਟ ਕੈਨਵਸ ਦੇ ਅੰਦਰ source ਵੀਡੀਓ ਦੀ ਵਿਕਲਪਿਕ ਸਥਿਤੀ, normalized rectangle ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਨਿਰਧਾਰਤ ਕੀਤੀ ਜਾਂਦੀ ਹੈ।
source_position.x_normਲੋੜੀਂਦਾ
ਕਿਸਮnumber
-2 – 2
ਹੋਰੀਜ਼ਾਂਟਲ source-rectangle ਕੋਆਰਡੀਨੇਟ, ਇਸਦੇ ਖੱਬੇ-ਕਿਨਾਰੇ ਦੀ ਸਥਿਤੀ ਨੂੰ ਆਉਟਪੁੱਟ ਚੌੜਾਈ ਨਾਲ ਵੰਡ ਕੇ ਗਿਣਿਆ ਜਾਂਦਾ ਹੈ।
source_position.y_normਲੋੜੀਂਦਾ
ਕਿਸਮnumber
-2 – 2
ਵਰਟੀਕਲ source-rectangle ਕੋਆਰਡੀਨੇਟ, ਇਸਦੇ ਉੱਪਰਲੇ-ਕਿਨਾਰੇ ਦੀ ਸਥਿਤੀ ਨੂੰ ਆਉਟਪੁੱਟ ਉਚਾਈ ਨਾਲ ਵੰਡ ਕੇ ਗਿਣਿਆ ਜਾਂਦਾ ਹੈ।
source_position.w_normਲੋੜੀਂਦਾ
ਕਿਸਮnumber
≤ 2, > 0
Source rectangle ਦੀ ਚੌੜਾਈ, ਆਉਟਪੁੱਟ ਚੌੜਾਈ ਦੇ ਸਬੰਧ ਵਿੱਚ ਦਰਸਾਈ ਜਾਂਦੀ ਹੈ।
source_position.h_normਲੋੜੀਂਦਾ
ਕਿਸਮnumber
≤ 2, > 0
Source rectangle ਦੀ ਉਚਾਈ, ਆਉਟਪੁੱਟ ਉਚਾਈ ਦੇ ਸਬੰਧ ਵਿੱਚ ਦਰਸਾਈ ਜਾਂਦੀ ਹੈ।
enable_safety_checkerਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
false ਸੈੱਟ ਕਰਕੇ ਸਕ੍ਰੀਨਿੰਗ ਨੂੰ ਢਿੱਲਾ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ, ਜੇ ਕਾਲਰ ਅਧਿਕਾਰਤ ਹੋਵੇ।
ਲੋੜੀਂਦਾ ਕੈਨੋਨਿਕਲ ਨਾਮ, ਇਹ ਵੀ ਸਵੀਕਾਰਿਆ ਜਾਂਦਾ ਹੈ

ਫ਼ਾਈਲ ਪੈਰਾਮੀਟਰ ਜਨਤਕ https:// URL, 10 MB ਤੱਕ ਦਾ data: URI, ਜਾਂ ਅੱਪਲੋਡ ਦੇ file_url ਨੂੰ ਸਵੀਕਾਰਦੇ ਹਨ। ਫ਼ਾਈਲਾਂ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "luma/agent/ray/v3.2/reframe",
  "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": 600,
    "usd": "0.60",
    "charged": 600,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "aspect_ratio": "3:4"
  },
  "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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
video
object {url, content_type, file_name, file_size}ਮਾਡਲ ਵੱਲੋਂ ਤਿਆਰ ਕੀਤੀ ਵੀਡੀਓ।
exr_file
object {url, content_type, file_name, file_size} | nullLuma exports ਦੇ ਰੂਪ ਵਿੱਚ EXR sidecar: ਜਾਂ ਤਾਂ ਇੱਕ EXR ਫ਼ਾਈਲ ਜਾਂ ZIP ਆਰਕਾਈਵ। ਇਹ exr_export true ਹੋਣ 'ਤੇ ਸਿਰਜਿਆ ਜਾਂਦਾ ਹੈ।

ਹੋਰ ਮਾਡਲ: ਵੀਡੀਓ ਤੋਂ ਵੀਡੀਓ

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/luma/agent/ray/v3.2/reframe.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt