အကြောင်းအရာသို့ ကျော်ရန်

Luma Ray 3.2 Image to Video

ပေါင်းစည်းရန်

မော်ဒယ် id luma/agent/ray/v3.2/image-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/image-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"

ဤတောင်းဆိုချက်: ၀.၁၅ $ ၁၅၀ API ခရက်ဒစ် · ≈ ၁၆.၁၀ ₽ ဤစာမျက်နှာတွင် လုပ်ဆောင်ရန်

API ကီး ရယူရန်
Luma AI ပုံမှ ဗီဒီယို Lipsync၅–၁၀ s1080p အထိ #stylized#transform

အဆုံးဖရိမ် သို့မဟုတ် အများဆုံး အဓိကဖရိမ် 64 ခု၊ လှည့်ပတ်ဖွင့်ခြင်းနှင့် ရွေးချယ်နိုင်သော HDR/EXR ထွက်ရလဒ်ပါ Ray 3.2 ပုံမှဗီဒီယို

Luma AI · ဗီဒီယို

သင့်ပထမဆုံးရလဒ် ဤနေရာတွင် ပေါ်လာမည်

အောက်တွင် တောင်းဆိုချက်တစ်ခု တည်ဆောက်ပြီး သင့် API ကီးဖြင့် လုပ်ဆောင်ပါ။ ထွက်ရလဒ်များကို ကျွန်ုပ်တို့၏ သိုလှောင်မှုသို့ ကူးယူပြီး အမြဲတမ်း သို့မဟုတ် ၇ ရက် အခမဲ့ သိမ်းထားသည်။

တောင်းဆိုမှုတစ်ခု တည်ဆောက်ရန်

ထိန်းချုပ်မှုများကို မော်ဒယ် schema မှ အလိုအလျောက်ဖန်တီးသည်။ ၎င်းတို့ကို ပြောင်းလဲသည်နှင့် code နှင့် စျေးနှုန်းတို့လည်း ပြောင်းလဲမည်။

•လိုအပ်သည် 88 / 6000

ဖန်တီးမည့် scene သို့မဟုတ် လှုပ်ရှားမှု၏ စာသားဖော်ပြချက်။

duration ၅ s

ဖန်တီးထားသောဗီဒီယို အလျား။ image_url / end_image_url anchor တစ်ခုတည်းသည် 10s ကို မပံ့ပိုးနိုင်ပါ။ ထိုအလျားအတွက် keyframes / keyframe_indexes မှတစ်ဆင့် keyframe များစွာ ပေးပို့ရသည်။

aspect_ratio မူလ 16:9

ရလဒ်ဗီဒီယို၏ aspect ratio။

resolution မူလ 540p

ထွက်ရလဒ်ဗီဒီယို၏ ရုပ်ထွက်အရည်အသွေး။

အဆင့်မြင့် image · end_image · loop · enable_safety_checker · keyframes · keyframe_indexes
image_url
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ်

image_url မှတစ်ဆင့် ပေးပို့သည့် first-frame ပုံ URL။ ရွေးချယ်နိုင်သော end_image_url ကို တွဲဖက်အသုံးပြုနိုင်သည်။ ဤ anchoring mode တွင် keyframes မပါဝင်ပါ။ mode တစ်ခုကိုသာ ရွေးပါ။

end_image_url
ဖိုင်ကို ဆွဲချပါ၊ သို့မဟုတ်

image_url မှ end_image_url သို့ interpolation ပြုလုပ်နိုင်စေသော ရွေးချယ်နိုင်သည့် last-frame ပုံ URL။ keyframes အသုံးပြုခြင်း၏ အခြားရွေးချယ်စရာဖြစ်သည်။

ပုံ URL 1–64 ခုကို multi-keyframe image-to-video လမ်းညွှန်များအဖြစ် ပေးပို့ပြီး ၎င်းတို့၏ အနေအထားကို သတ်မှတ်သည့် အလျားတူ keyframe_indexes စာရင်းနှင့် တွဲပါ။ keyframes အသုံးပြုပါက HDR နှင့် 10s ဖန်တီးမှုကို ရရှိသော်လည်း image_url, end_image_url နှင့် loop ကို အသုံးပြု၍ မရပါ။

keyframes နှင့် တွဲဖက်ထားသော anchor အနေအထားများ။ entry [i] သည် ထွက်ရလဒ်ထဲရှိ keyframes[i] ၏ တည်နေရာကို သတ်မှတ်ပြီး array နှစ်ခု၏ အလျားတူရမည်။ အနေအထားများသည် မတူညီရမည်၊ အနုတ်မဖြစ်ရပါ။ duration × 24fps သည် 5s အတွက် 0–120 နှင့် 10s အတွက် 0–240 အပိုင်းအခြားကို ပေးသည်။

POST /run/luma/agent/ray/v3.2/image-to-video?wait=20 ကုန်ကျစရိတ် → ၀.၁၅ $
# 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/image-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"

ဤတောင်းဆိုချက်ကို လုပ်ဆောင်ရန်

သင့် key သည် ဤဘရောက်ဇာထဲတွင်သာ ရှိမည်ဖြစ်ပြီး Doitong API သို့သာ ပို့မည်။ Remember ကို အမှန်ခြစ်ထားမှသာ (localStorage) တွင် သိမ်းမည်။ API ကီး ရယူရန်

Luma Ray 3.2 Image to Video အကြောင်း

`image_url` ကို ပထမဖရိမ်အဖြစ် အန်နီမေးရှင်းပြုလုပ်ပြီး ရွေးချယ်နိုင်သော `end_image_url` ဖြင့် အသုံးပြုနိုင်သည်၊ သို့မဟုတ် `keyframe_indexes` (1 မှ 64 အထိ) ပါ `keyframes` ကို အသုံးပြုနိုင်သည်။ အချိုးအစားများမှာ 3:4 မှ 21:9 အထိ၊ ရုပ်ထွက်အရည်အသွေးမှာ 540p၊ 720p သို့မဟုတ် 1080p ဖြစ်ပြီး `duration` သည် 5s သို့မဟုတ် 10s ဖြစ်သည်။ 10s အတွက် အဓိကဖရိမ် လိုအပ်သည်။ သတ်မှတ်ထားသော အခြေအနေများအောက်တွင် `loop`၊ `hdr` နှင့် `exr_export` ကို အသုံးပြုနိုင်သည်။ ပရောမ့်အရှည်မှာ စာလုံး 6000 အထိ ဖြစ်သည်။

ပါရာမီတာများ

စံအမည် သို့မဟုတ် မူရင်းအမည် တစ်ခုခုကိုသာ ပို့ပါ၊ နှစ်ခုလုံး မပို့ပါနှင့်။ စံအမည်များ

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
promptလိုအပ်သည်
အမျိုးအစားstring
စာလုံး ၆,၀၀၀ လုံးထက် မပိုပါ
ဖန်တီးမည့် scene သို့မဟုတ် လှုပ်ရှားမှု၏ စာသားဖော်ပြချက်။
image_urlရွေးချယ်နိုင်သည် image
အမျိုးအစားurl · image
image_url မှတစ်ဆင့် ပေးပို့သည့် first-frame ပုံ URL။ ရွေးချယ်နိုင်သော end_image_url ကို တွဲဖက်အသုံးပြုနိုင်သည်။ ဤ anchoring mode တွင် keyframes မပါဝင်ပါ။ mode တစ်ခုကိုသာ ရွေးပါ။
end_image_urlရွေးချယ်နိုင်သည် end_image
အမျိုးအစားurl · image
image_url မှ end_image_url သို့ interpolation ပြုလုပ်နိုင်စေသော ရွေးချယ်နိုင်သည့် last-frame ပုံ URL။ keyframes အသုံးပြုခြင်း၏ အခြားရွေးချယ်စရာဖြစ်သည်။
aspect_ratioရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုး16:9
3:44:31:19:1616:921:9
ရလဒ်ဗီဒီယို၏ aspect ratio။
resolutionရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုး540p
540p720p1080p
ထွက်ရလဒ်ဗီဒီယို၏ ရုပ်ထွက်အရည်အသွေး။
durationရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုး5s
5s10s
ဖန်တီးထားသောဗီဒီယို အလျား။ image_url / end_image_url anchor တစ်ခုတည်းသည် 10s ကို မပံ့ပိုးနိုင်ပါ။ ထိုအလျားအတွက် keyframes / keyframe_indexes မှတစ်ဆင့် keyframe များစွာ ပေးပို့ရသည်။
loopရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
အဆက်မပြတ် loop ဖန်တီးမှု။ standard-dynamic-range ထွက်ရလဒ်အတွက်သာ ကန့်သတ်ထားပြီး end ဖရိမ် သို့မဟုတ် keyframes တစ်ခုခု သတ်မှတ်ပါက ဤရွေးချယ်မှုကို အသုံးမပြုနိုင်ပါ။
hdrရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
MP4 ထွက်ရလဒ်အတွက် HDR encoding။ HDR ဝင်ရောက်ခွင့်ရှိသော account များတွင် 720p သို့မဟုတ် 1080p ဖြင့် ရရှိနိုင်သည်။ ၎င်းကို အသုံးပြုရန် looping ကို ပိတ်ထားရမည်။
exr_exportရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
MP4 နှင့်အတူ ပူးတွဲထုတ်ပေးသည့် EXR export။ HDR ဝင်ရောက်ခွင့်နှင့် hdr=true နှစ်ခုလုံးရှိမှသာ ရရှိနိုင်သည်။
keyframesရွေးချယ်နိုင်သည်
အမျိုးအစားstring[]
အကြောင်းအရာ ၆၄ ခုထက် မပိုပါ
ပုံ URL 1–64 ခုကို multi-keyframe image-to-video လမ်းညွှန်များအဖြစ် ပေးပို့ပြီး ၎င်းတို့၏ အနေအထားကို သတ်မှတ်သည့် အလျားတူ keyframe_indexes စာရင်းနှင့် တွဲပါ။ keyframes အသုံးပြုပါက HDR နှင့် 10s ဖန်တီးမှုကို ရရှိသော်လည်း image_url, end_image_url နှင့် loop ကို အသုံးပြု၍ မရပါ။
keyframe_indexesရွေးချယ်နိုင်သည်
အမျိုးအစားinteger[]
အကြောင်းအရာ ၆၄ ခုထက် မပိုပါ
keyframes နှင့် တွဲဖက်ထားသော anchor အနေအထားများ။ entry [i] သည် ထွက်ရလဒ်ထဲရှိ keyframes[i] ၏ တည်နေရာကို သတ်မှတ်ပြီး array နှစ်ခု၏ အလျားတူရမည်။ အနေအထားများသည် မတူညီရမည်၊ အနုတ်မဖြစ်ရပါ။ duration × 24fps သည် 5s အတွက် 0–120 နှင့် 10s အတွက် 0–240 အပိုင်းအခြားကို ပေးသည်။
enable_safety_checkerရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးtrue
caller က ခွင့်ပြုချက်ရှိပါက false သတ်မှတ်ခြင်းဖြင့် စစ်ဆေးမှုကို လျှော့ချနိုင်သည်။
လိုအပ်သည် စံအမည်၊ ထို့အပြင် လက်ခံသည်

ဖိုင်ပါရာမီတာများသည် အများပြည်သူသုံး https:// URL၊ 10 MB အထိ data: URI သို့မဟုတ် အပ်လုဒ်လုပ်ထားသောဖိုင်၏ file_url ကို လက်ခံသည်။ ဖိုင်များ

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "luma/agent/ray/v3.2/image-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": 150,
    "usd": "0.15",
    "charged": 150,
    "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"
  }
}
သင့်ဖိုင်များ၊ သင့်ရွေးချယ်မှုoutputs[].url တိုင်းသည် ကျွန်ုပ်တို့၏ သိုလှောင်မှုရှိ မိတ္တူဖြစ်သည်- အမြဲတမ်း (GB-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
video
object {url, content_type, file_name, file_size}မော်ဒယ်မှ ထုတ်လုပ်ထားသော ဗီဒီယို။
exr_file
object {url, content_type, file_name, file_size} | nullLuma export ပုံစံဖြင့် EXR sidecar- EXR ဖိုင်တစ်ခု သို့မဟုတ် ZIP archive တစ်ခု။ exr_export သည် true ဖြစ်သောအခါ ဖန်တီးသည်။

နောက်ထပ် မော်ဒယ်များ: ပုံမှ ဗီဒီယို

AI အေးဂျင့်များအတွက်- ဤစာမျက်နှာ၏ Markdown ကို ဤနေရာတွင် ရရှိနိုင်သည် https://doitong.com/my/developers/models/luma/agent/ray/v3.2/image-to-video.md. မော်ဒယ်များနှင့် လမ်းညွှန်များအားလုံး: https://doitong.com/developers/llms.txt