เข้าสู่ระบบ
Luma AIวิดีโอ APIเริ่มต้น $0.042

Luma API

Luma API on WaveSpeedAI — Ray 3.2 text-to-video, image-to-video, video edit and video reframing, earlier Ray 2 and Ray 1.6 models, and Uni v1 and Photon image generation and editing, all through one REST API.

Use Luma's Ray 3.2 for cinematic text-to-video and image-to-video with controllable aspect ratio, resolution and duration, re-render or reframe existing footage with video edit and video reframing, and generate or edit images with Uni v1 and Photon. Ray 2 and Ray 1.6 stay available for earlier workflows.

ภาพรวม

เกี่ยวกับ Luma API

Luma ทำอะไรได้ อยู่ตรงไหนในกลุ่มโมเดลของ Luma AI และทำไมทีมต่างๆ จึงเลือกใช้

Luma คือโมเดลการสร้างวิดีโอจาก Luma AI ใช้งานได้ผ่าน REST API ของ WaveSpeedAI Luma API on WaveSpeedAI — Ray 3.2 text-to-video, image-to-video, video edit and video reframing, earlier Ray 2 and Ray 1.6 models, and Uni v1 and Photon image generation and editing, all through one REST API.

Use Luma's Ray 3.2 for cinematic text-to-video and image-to-video with controllable aspect ratio, resolution and duration, re-render or reframe existing footage with video edit and video reframing, and generate or edit images with Uni v1 and Photon. Ray 2 and Ray 1.6 stay available for earlier workflows.

กลุ่ม Luma บน WaveSpeedAI มี 6 REST endpoint ครอบคลุมเวิร์กโฟลว์ Video-To-Video, Image-To-Video, Text-To-Video, Image-To-Image, Text-To-Image แต่ละแบบมีราคา พารามิเตอร์ที่ปรับได้ และตัวอย่างผลลัพธ์ของตัวเอง เลือกแบบที่ตรงกับประเภทอินพุตและข้อจำกัดของงานจริง หรือเรียกหลายแบบด้วย API key เดียวเพื่อประกอบเป็นไปป์ไลน์หลายขั้นตอน

รัน Luma ผ่าน API key บัญชีเรียกเก็บเงิน และขีดจำกัดอัตราเดียวกับที่คุณใช้กับโมเดล AI กว่า 1,000 รายการอื่นบน WaveSpeedAI ไม่ต้องตั้งค่ากับผู้ให้บริการแยก ไม่ต้องใช้ SDK แยกตามผู้ให้บริการ และไม่ต้องจัดการขีดจำกัดอัตราแยกตามผู้ให้บริการ การเชื่อมต่อเดียวครอบคลุมทุกอย่างตั้งแต่ข้อความเป็นภาพและข้อความเป็นวิดีโอ ไปจนถึงการสังเคราะห์เสียง การสร้าง 3D การอัปสเกล และการแก้ไข

Endpoint

API endpoint ของ Luma ทั้งหมด

6 endpoint ของ Luma พร้อมใช้งานบน WaveSpeedAI แล้ว — เลือกแบบที่ตรงกับเวิร์กโฟลว์ของคุณ

video-to-videoRay 3.2 Video Edit — ตัวอย่างvideo-to-videoของ Luma จาก Luma AI

Ray 3.2 Video Edit

Luma Ray 3.2 Video Edit is a fast AI video-to-video editing model that re-renders an existing source video from a text prompt while preserving the original motion and timing. Ready-to-use REST inference API for video restyling, creative edits, product videos, advertising creatives, social media clips, visual storytelling, and professional video editing workflows with simple integration, no coldstarts, and affordable pricing.

เริ่มต้น $0.144
video-to-videoRay 3.2 Video Reframing — ตัวอย่างvideo-to-videoของ Luma จาก Luma AI

Ray 3.2 Video Reframing

Luma Ray 3.2 Video Reframing is a fast AI video reframing model that changes an existing video’s aspect ratio and fills the newly exposed canvas from a prompt while preserving the source footage. Ready-to-use REST inference API for aspect ratio conversion, social media resizing, cinematic reframing, video outpainting, creator content, advertising creatives, and professional video editing workflows with simple integration, no coldstarts, and affordable pricing.

เริ่มต้น $0.06
image-to-videoRay 3.2 Image To Video — ตัวอย่างimage-to-videoของ Luma จาก Luma AI

Ray 3.2 Image To Video

Luma Ray 3.2 Image to Video is a fast AI image-to-video generation model that animates a source image into cinematic video guided by a text prompt, with controllable aspect ratio, resolution, and duration. Ready-to-use REST inference API for image animation, cinematic clips, product videos, social media content, advertising creatives, visual storytelling, and professional image-to-video workflows with simple integration, no coldstarts, and affordable pricing.

เริ่มต้น $0.10
text-to-videoRay 3.2 Text To Video — ตัวอย่างtext-to-videoของ Luma จาก Luma AI

Ray 3.2 Text To Video

Luma Ray 3.2 Text to Video is a fast AI video generation model that creates cinematic videos from text prompts with controllable aspect ratio, resolution, and duration. Ready-to-use REST inference API for cinematic clips, storytelling videos, social media content, advertising creatives, product visuals, concept videos, and professional text-to-video workflows with simple integration, no coldstarts, and affordable pricing.

เริ่มต้น $0.10
image-to-imageUni v1 Edit — ตัวอย่างimage-to-imageของ Luma จาก Luma AI

Uni v1 Edit

Luma Uni v1 Edit is a fast AI image editing model that reworks source images from text instructions while preserving composition and supporting optional reference images. Ready-to-use REST inference API for photo editing, product image updates, creative retouching, marketing assets, brand visuals, style changes, and professional image editing workflows with simple integration, no coldstarts, and affordable pricing.

เริ่มต้น $0.042
text-to-imageUni v1 Text To Image — ตัวอย่างtext-to-imageของ Luma จาก Luma AI

Uni v1 Text To Image

Luma Uni v1 Text to Image is a fast AI image generation model that creates high-fidelity images from prompts with flexible aspect ratios, visual style control, and optional reference-image guidance. Ready-to-use REST inference API for creative design, marketing visuals, product mockups, brand assets, social media content, concept art, and professional text-to-image workflows with simple integration, no coldstarts, and affordable pricing.

เริ่มต้น $0.042

ตัวอย่าง

ดู Luma ทำงานจริง

ผลลัพธ์จริงที่สร้างโดย Luma API วางเมาส์บนวิดีโอเพื่อดูตัวอย่าง คลิกเพื่อเปิดตัวดูขนาดเต็ม

วิธีใช้

วิธีใช้ Luma API

สี่ขั้นตอนจากการสมัครไปจนถึงผลลัพธ์ที่เสร็จสมบูรณ์ ตัวอย่าง Python, Node.js และ cURL แบบเต็มอยู่ในส่วน API ด้านล่าง

  1. 01

    รับ API key

    สมัครบัญชี WaveSpeedAI แล้วคัดลอก API key จากแดชบอร์ด บัญชีใหม่มาพร้อมเครดิตเริ่มต้นฟรี เพียงพอให้ลองใช้ playground ได้หลายสิบครั้งก่อนเริ่มเรียกเก็บเงิน

  2. 02

    ส่ง prediction

    POST อินพุตของคุณเป็น JSON ไปที่ https://api.wavespeed.ai/api/v3/luma/ray-3.2/text-to-video endpoint จะส่ง prediction id กลับมาทันที การสร้างทำงานแบบอะซิงโครนัส คุณจึงไม่ต้องเปิดการเชื่อมต่อค้างไว้ระหว่างประมวลผล

  3. 03

    poll เพื่อรอให้เสร็จ

    GET https://api.wavespeed.ai/api/v3/predictions/{request_id}/result เมื่อสถานะเป็น completed ให้นำผลลัพธ์ไปใช้ เมื่อเป็น failed, cancelled, timeout หรือ deleted ให้หยุดพร้อมแจ้งข้อผิดพลาด และ poll ต่อไปสำหรับสถานะอื่นทั้งหมด

  4. 04

    อ่าน URL ของผลลัพธ์

    เมื่อสถานะเป็น "completed" ให้อ่าน URL จาก data.outputs[0] URL ชี้ไปยังสื่อที่สร้างขึ้นของคุณบน CDN ของ WaveSpeedAI ซึ่งเป็นภาพ วิดีโอ เสียง หรือไฟล์ 3D ตามแบบของ Luma ที่คุณเรียกใช้

กรณีการใช้งาน

สิ่งที่คุณสร้างได้ด้วย Luma

เวิร์กโฟลว์ทั่วไปที่นักพัฒนาและครีเอเตอร์ใช้ Luma API

01

Cinematic text-to-video

luma/ray-3.2/text-to-video generates cinematic videos from text prompts with controllable aspect ratio, resolution, duration and optional reference images.

text-to-videocinematic
02

Animate a still image

luma/ray-3.2/image-to-video animates a source image into video guided by a text prompt, with the same aspect ratio, resolution and duration controls.

image-to-video
03

Restyle footage and keep the motion

luma/ray-3.2/video-edit re-renders an existing source video from a text prompt while preserving the source motion and timing.

video-editrestyle
04

Reframe video to a new aspect ratio

luma/ray-3.2/video-reframing changes a video's aspect ratio and fills the newly exposed canvas from a prompt while preserving the source footage.

video-reframingaspect-ratio
05

Image generation and editing

luma/uni-v1/text-to-image generates images with aspect ratio, style, format and reference-image guidance; luma/uni-v1/edit transforms an input image from a text instruction while preserving composition.

text-to-imageimage-edit

เคล็ดลับ

เคล็ดลับการเขียนพรอมต์สำหรับ Luma

คำแนะนำเชิงปฏิบัติเพื่อให้ได้ผลลัพธ์ที่ดีขึ้นจาก Luma — มาจากรูปแบบที่ได้ผลกับโมเดลวิดีโอในไปป์ไลน์การผลิตจริง

  1. 01

    ระบุการเคลื่อนกล้องให้เฉพาะเจาะจง

    ใช้ศัพท์ภาพยนตร์ที่เป็นรูปธรรม — orbit, dolly-in, push-in, pan-left, crane shot, handheld follow พรอมต์ทั่วไปให้ช็อตนิ่งหรือการเลือกกล้องแบบสุ่ม ส่วนการเคลื่อนกล้องที่ระบุชื่อแมปไปยังเจตนาการเคลื่อนไหวในข้อมูลเทรนของโมเดลโดยตรงและช่วยยกระดับคุณภาพช็อตอย่างมาก

  2. 02

    ยึดตัวตนของตัวละครด้วยภาพอ้างอิง

    หากพรอมต์ของคุณขึ้นกับบุคคล ตัวละคร หรือสินค้าเฉพาะ ให้อัปโหลดภาพอ้างอิงควบคู่กับพรอมต์ หากไม่มีอ้างอิง ตัวตนจะเพี้ยนข้ามเฟรมและข้ามช็อต — ตัวละครเดียวกันดูเป็นคนละคนเล็กน้อยในแต่ละการสร้าง

  3. 03

    อธิบายแสงและช่วงเวลาของวัน

    คำบอกแสงอย่าง 'golden hour, soft warm directional light' หรือ 'overcast diffused light, slate-grey sky' ช่วยคุณภาพและความสม่ำเสมอได้มากกว่าตัวขยายคุณภาพแบบคลุมเครืออย่างมาก แสงเป็นหนึ่งในความรู้พื้นฐานที่โมเดลใช้กำกับแข็งแกร่งที่สุด

  4. 04

    ใช้ negative prompt เพื่อกดข้อผิดพลาดที่พบบ่อย

    negative ที่มีประโยชน์สำหรับวิดีโอ: 'frame flicker, motion blur, watermark, text artifacts, distorted hands, low resolution, jpeg compression' negative prompt ไม่มีค่าใช้จ่ายและลดอัตราการสร้างที่คุณต้องสุ่มใหม่ได้อย่างเห็นได้ชัด

  5. 05

    เลือกความยาวที่สั้นที่สุดที่จับจังหวะของคุณได้

    พรอมต์ส่วนใหญ่ทำงานได้ดีที่สุดที่ 5-8 วินาที คลิปที่ยาวขึ้นขยายความไม่สอดคล้องด้านเวลา (วัตถุเปลี่ยนรูป สภาพแวดล้อมเลื่อนไหล) หากต้องการซีเควนซ์ 20 วินาที ให้สร้างสามคลิป 6-8 วินาทีแล้วตัดต่อรวมกัน — คุณภาพยังสูงกว่าการสร้างยาวครั้งเดียว

  6. 06

    จับคู่อัตราส่วนภาพกับแพลตฟอร์มตั้งแต่ต้น

    9:16 สำหรับ TikTok / Reels / Shorts, 16:9 สำหรับฟีดแนวนอนและ YouTube, 1:1 สำหรับกริดโพสต์ โมเดลเทรนแตกต่างกันเล็กน้อยตามอัตราส่วนภาพ — การครอป 16:9 เป็น 9:16 ภายหลังสูญเสียทั้งความเที่ยงตรงและองค์ประกอบที่โมเดลตั้งใจ

ราคา

ราคา Luma API

คิดราคาตามผลลัพธ์ ค่าใช้จ่ายสุดท้ายขึ้นอยู่กับพารามิเตอร์ที่คุณตั้งใน playground ของแต่ละแบบ (ความละเอียด ความยาว จำนวนผลลัพธ์ ภาพอ้างอิง)

ราคาเริ่มต้น

$0.042

6 endpoint · Luma

เปิด Playground
Endpointประเภทราคาเริ่มต้น
luma/ray-3.2/video-editvideo-to-video$0.144
luma/ray-3.2/video-reframingvideo-to-video$0.06
luma/ray-3.2/image-to-videoimage-to-video$0.10
luma/ray-3.2/text-to-videotext-to-video$0.10
luma/uni-v1/editimage-to-image$0.042
luma/uni-v1/text-to-imagetext-to-image$0.042

API

เรียกใช้ Luma API

สมัครรับ API key ที่ wavespeed.ai/accesskey แล้วส่ง prediction ผ่าน REST playground สร้างตัวอย่างพร้อมวางได้สำหรับอินพุตทุกแบบ

POSThttps://api.wavespeed.ai/api/v3/luma/ray-3.2/text-to-video

# 1. Submit the prediction.
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
  -X POST "https://api.wavespeed.ai/api/v3/luma/ray-3.2/text-to-video" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{
    "prompt": "A cinematic shot of a city at sunset, soft golden light",
    "size": "16:9",
    "resolution": "540p",
    "duration": 5
}')

TASK=$(printf '%s' "$SUBMIT_RESPONSE" | jq 'if has("data") then .data else . end')
PREDICTION_ID=$(printf '%s' "$TASK" | jq -r '.id')
if [ -z "$PREDICTION_ID" ] || [ "$PREDICTION_ID" = "null" ]; then
  printf 'Submission response did not contain a prediction id
' >&2
  exit 1
fi
RESULT_URL="https://api.wavespeed.ai/api/v3/predictions/$PREDICTION_ID/result"

# 2. Poll until the prediction finishes.
while true; do
  RESPONSE=$(curl --silent --show-error --fail-with-body "$RESULT_URL" \
    -H "Authorization: Bearer $WAVESPEED_API_KEY")
  RESULT=$(printf '%s' "$RESPONSE" | jq 'if has("data") then .data else . end')
  STATUS=$(printf '%s' "$RESULT" | jq -r '.status')
  case "$STATUS" in
    completed) printf '%s\n' "$RESULT" | jq '.outputs'; break ;;
    failed|cancelled|timeout|deleted) printf '%s\n' "$RESULT" | jq . >&2; exit 1 ;;
    *) sleep 2 ;;
  esac
done

เปรียบเทียบ

Luma เทียบกับทางเลือกอื่น

เมื่อไรควรเลือก Luma แทนโมเดลที่คล้ายกันบน WaveSpeedAI

Luma เทียบกับ Kling 3.0

Kling 3.0 offers Standard, Pro and 4K tiers with native audio. Luma Ray 3.2 adds video edit and video reframing endpoints for working on existing footage.

Luma เทียบกับ Veo 3.1

Veo 3.1 is Google's video model with synchronized audio. Luma Ray 3.2 is a separate family with optional reference images and footage-level edit and reframing endpoints.

คำถามที่พบบ่อย

Luma API — คำถามที่พบบ่อย

ราคา สัญญาอนุญาต การเชื่อมต่อ — คำถามที่พบบ่อยเกี่ยวกับการรัน Luma บน WaveSpeedAI

Luma API คืออะไร

Luma คือโมเดลการสร้างวิดีโอของ Luma AI ที่เปิดให้ใช้เป็น REST API บน WaveSpeedAI Luma API on WaveSpeedAI — Ray 3.2 text-to-video, image-to-video, video edit and video reframing, earlier Ray 2 and Ray 1.6 models, and Uni v1 and Photon image generation and editing, all through one REST API. คุณเรียกใช้ผ่านโค้ดหรือลองใช้จาก playground ที่ลิงก์ไว้ด้านบนได้

เรียกใช้ Luma API อย่างไร

สมัครบัญชี WaveSpeedAI คัดลอก API key จาก /accesskey แล้ว POST ไปที่ https://api.wavespeed.ai/api/v3/luma/ray-3.2/text-to-video พร้อมอินพุตของคุณเป็น JSON endpoint จะส่ง prediction id กลับมา poll endpoint ผลลัพธ์โดยเริ่มประมาณทุก 2 วินาที เพิ่มช่วงเวลาสำหรับงานที่ใช้เวลานาน และหยุดเมื่อได้สถานะสิ้นสุดใดๆ ตัวอย่าง Python / Node.js / cURL ที่เหมาะกับงานจริงอยู่ด้านบน

Luma API มีค่าใช้จ่ายเท่าไร

Luma เริ่มต้นที่ $0.042 ค่าใช้จ่ายจริงขึ้นอยู่กับพารามิเตอร์ที่คุณตั้ง (ความละเอียด ความยาว จำนวนผลลัพธ์ ภาพอ้างอิง) ตัวอย่างค่าใช้จ่ายแบบเรียลไทม์ข้างปุ่ม Generate ใน playground แสดงราคาที่แน่นอนสำหรับอินพุตปัจจุบันของคุณ

Luma มีแบบไหนให้ใช้บ้าง

WaveSpeedAI มี endpoint Luma ที่ใช้งานได้ 6 รายการ: luma/ray-3.2/video-edit, luma/ray-3.2/video-reframing, luma/ray-3.2/image-to-video, luma/ray-3.2/text-to-video, luma/uni-v1/edit, luma/uni-v1/text-to-image แต่ละแบบมีหน้า playground และราคาของตัวเอง

ใช้ผลลัพธ์ของ Luma เชิงพาณิชย์ได้ไหม

สิทธิ์ในการใช้เชิงพาณิชย์เป็นไปตามสัญญาอนุญาตของโมเดล Luma AI โมเดลของ Luma AI ส่วนใหญ่อนุญาตให้ใช้ผลลัพธ์เชิงพาณิชย์ ดูสรุปสัญญาอนุญาตเฉพาะในหน้า playground ของแต่ละโมเดล และข้อกำหนดการใช้บริการของ WaveSpeedAI สำหรับเงื่อนไขระดับแพลตฟอร์ม

ทำไมต้องใช้ Luma บน WaveSpeedAI แทนการเชื่อมต่อตรง

API key เดียวและบัญชีเรียกเก็บเงินเดียวสำหรับ Luma และโมเดล AI อื่นกว่า 1,000 รายการจากผู้ให้บริการอื่น ไม่ต้องตั้งค่า SDK แยกตามผู้ให้บริการ ไม่ต้องจัดการขีดจำกัดอัตราแยกกัน และไม่ต้องเขียนโค้ดเชื่อมต่อใหม่ทุกครั้งที่เปลี่ยนผู้ให้บริการ โดยทั่วไปราคาเท่ากับหรือต่ำกว่า API ตรงของ Luma AI

เริ่มสร้างด้วย Luma บน WaveSpeedAI

รับเครดิตเริ่มต้นฟรีเมื่อสมัคร API key เดียวใช้ได้กับโมเดล AI กว่า 1,000 รายการจาก Luma AI และผู้ให้บริการอื่นทุกราย