Important Notes
- Generated videos will be processed asynchronously
- Use the returned taskId to track generation progress
- Callback URL is recommended for production use to receive automatic notifications when generation completes
- Original video URL must be publicly accessible
- Watermark parameter is optional for branding purposes
Video Requirements
Maximum File Size: 500MB
Maximum Duration: 10 seconds
Accessibility: Video URL must be publicly accessible
Processing Time
Video modification is a compute-intensive process that typically takes:- Simple modifications: 2-5 minutes
- Complex transformations: 5-15 minutes
- High-resolution videos: 10-20 minutes
Authorizations
All APIs require authentication via Bearer Token.
Get API Key:
- Visit API Key Management Page to get your API Key
Usage: Add to request header: Authorization: Bearer YOUR_API_KEY
Note:
- Keep your API Key secure and do not share it with others
- If you suspect your API Key has been compromised, reset it immediately in the management page
Body
Text prompt describing the desired video modifications. Required field that specifies how the input video should be modified.
- Should be detailed and specific about the desired changes
- Describe the visual elements you want to add or modify
- IMPORTANT: Only English language is supported
"A futuristic cityscape at night with towering glass spires reaching into a starry sky. Neon lights in blue and purple illuminate the buildings while flying vehicles glide silently between the structures."
URL of the input video for modification. Required field.
- Must be a valid video URL
- Video must be accessible to the API server
- Supported formats: MP4, MOV, AVI
- Maximum file size: 500MB
- Maximum duration: 10 seconds
"https://example.com/input-video.mp4"
The URL to receive video generation task completion updates. Optional but recommended for production use.
- System will POST task status and results to this URL when video generation completes
- Callback includes generated video URLs and task information
- Your callback endpoint should accept POST requests with JSON payload containing video results
- For detailed callback format and implementation guide, see Luma Modify Video Callbacks
- Alternatively, use the Get Luma Modify Details endpoint to poll task status
"https://your-callback-url.com/luma-callback"
Watermark identifier to add to the generated video.
- Optional parameter
- If provided, a watermark will be added to the output video
- Can be used for branding or identification purposes
"your-watermark-id"
Response
Request successful
Response status code
- 200: Success - Request has been processed successfully
- 401: Unauthorized - Authentication credentials are missing or invalid
- 402: Insufficient Credits - Account does not have enough credits to perform the operation
- 404: Not Found - The requested resource or endpoint does not exist
- 422: Validation Error - The request parameters failed validation checks The request parameters are incorrect, please check the parameters.
- 429: Rate Limited - Request limit has been exceeded for this resource
- 455: Service Unavailable - System is currently undergoing maintenance
- 500: Server Error - An unexpected error occurred while processing the request
- 501: Generation Failed - Video generation task failed
- 505: Feature Disabled - The requested feature is currently disabled
200
, 401
, 402
, 404
, 422
, 429
, 455
, 500
, 501
, 505
Error message when code != 200
"success"