MaxAPI Docs
  1. Luma video
MaxAPI Docs
  • Quick Start
  • OpenAI API
    • About OpenAI Compatible API
    • Chat
      • Chat Completion
    • Images
      • Create Image
    • Audio
      • Text To Speech API
  • Midjourney Open API
    • About Midjourney and Prices
    • Submit Imagine Task
      POST
    • Submit Action Task(All associated button actions UPSCALE; VARIATION; REROLL; ZOOM, etc.)
      POST
    • Submit Blend Task
      POST
    • Submit Modal Task
      POST
    • Submit Describe Task
      POST
    • Submit Shorten Task
      POST
    • Submit FaceSwap Task
      POST
    • Upload Files to Discord
      POST
    • Specify ID Query Task
      GET
    • Specify ID Query Task (fetch)
      GET
    • Specify the ID List Query Task
      GET
    • Obtain the seed of the Task Image
      GET
  • Luma video
    • Luma Task Creation
      POST
    • Luma Expand Video
      POST
    • Luma Query Task
      GET
    • Luma Download video
      GET
  • Suno Music
    • Generate music
      POST
    • Query task
      GET
  • Anthropic Claude
    • Claude Chat Completion
      POST
  • Flux API
    • Create Image
  1. Luma video

Luma Task Creation

Developing
Main URLs
https://api.maxapi.ai
Main URLs
https://api.maxapi.ai
POST
https://api.maxapi.ai
/luma/generations

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
user_prompt
string 
required
prompt content
Example:
cat dance
aspect_ratio
string 
optional
aspect ratio
Example:
16:9
expand_prompt
string 
optional
prompt optimization
Example:
true
image_url
string 
optional
reference image, supports third-party image addresses, base64
image_end_url
string 
optional
keyframes, supporting third-party image addresses and base64
notify_hook
string 
optional
callback address: https://xxxxxxx
Example
{
  "user_prompt": "cat dance",
  "aspect_ratio": "16:9",
  "expand_prompt": "true",
  "image_url": "http://dummyimage.com/400x400",
  "image_end_url": "http://dummyimage.com/400x400",
  "notify_hook": "enim"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.maxapi.ai/luma/generations' \
--header 'Content-Type: application/json' \
--data-raw '{
    "user_prompt": "cat dance",
    "aspect_ratio": "16:9",
    "expand_prompt": "true",
    "image_url": "http://dummyimage.com/400x400",
    "image_end_url": "http://dummyimage.com/400x400",
    "notify_hook": "enim"
}'

Responses

🟢201Created
application/json
Body
object {0}
Example
{
  "id": "9d4b7516-77e5-481a-b015-48313946f33b",
  "prompt": "cat dance",
  "state": "pending",
  "created_at": "2024-07-19T07:35:13.498660Z",
  "video": null,
  "liked": null,
  "estimate_wait_seconds": null
}
Previous
Obtain the seed of the Task Image
Next
Luma Expand Video
Built with