xfusionai
  1. Luma video
xfusionai
  • 产品介绍
  • 模型价格
  • 快速开始
  • Azure语音服务
  • Azure翻译服务
  • Azure open AI
  • 常见问题
  • 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
    • Specify ID Query Task (fetch)
      GET
    • Specify the ID List Query Task
      GET
    • Obtain the seed of the Task Image
      GET
    • Specify ID Query Task
      GET
    • 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
    • Submit Action Task(All associated button actions UPSCALE; VARIATION; REROLL; ZOOM, etc.)
      POST
  • Luma video
    • Luma Task Creation
      POST
    • Luma Expand Video
      POST
    • Luma Query Task
      GET
    • Luma Download video
      GET
  • Suno Music
    • Generate music
    • Query task
  • Anthropic Claude
    • Claude Chat Completion
  • Flux API
    • Create Image
  1. Luma video

Luma Task Creation

开发中
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/luma/generations

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Body 参数application/json
user_prompt
string 
必需
prompt content
示例值:
cat dance
aspect_ratio
string 
可选
aspect ratio
示例值:
16:9
expand_prompt
string 
可选
prompt optimization
示例值:
true
image_url
string 
可选
reference image, supports third-party image addresses, base64
image_end_url
string 
可选
keyframes, supporting third-party image addresses and base64
notify_hook
string 
可选
callback address: https://xxxxxxx
示例
{
    "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"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/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"
}'

返回响应

🟢201Created
application/json
Body
object {0}
示例
{
    "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
}
修改于 2024-11-09 17:14:40
上一页
Submit Action Task(All associated button actions UPSCALE; VARIATION; REROLL; ZOOM, etc.)
下一页
Luma Expand Video
Built with