POST
/
api
/
v1
/
modify
/
generate
Generate Luma Modify Video
curl --request POST \
  --url https://api.kie.ai/api/v1/modify/generate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "A futuristic cityscape at night with towering glass spires reaching into a starry sky",
  "videoUrl": "https://example.com/input-video.mp4",
  "callBackUrl": "https://your-callback-url.com/luma-callback",
  "watermark": "your-watermark-id"
}'
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "774d9a7dd608a0e49293903095e45a4c"
  }
}

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

Supported Formats: MP4, MOV, AVI
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
Use the callback mechanism or polling to track progress rather than waiting synchronously.

Authorizations

Authorization
string
header
required

All APIs require authentication via Bearer Token.

Get API Key:

  1. 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

application/json

Response

200
application/json

Request successful

The response is of type object.