API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  1. Get task
API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  • Chat Models
    • Chat
      • Create chat completion
      • vision
    • OpenAI-Realtime
    • Completions
      • Instruct
    • Audio
      • Transcriptions
      • Translations
      • Speech
    • Image generation
      • DALL·E 3
    • Embeddings
      • Create
    • Models
      • model list
    • Help
      • 常见问题及解决办法
  • Anthropic
    • Anthropic Claude
  • Suno
    • Generate music
    • Generate lyrics
    • Upload music
    • Music concat
    • Fetch task
    • Fetch batch tasks
  • Udio
    • Generate music
    • Fetch task
  • Midjourney API
    • Quick
    • Task Submit
      • Imagine
      • Action
      • Modal
      • Blend
      • Describe
      • Shorten
      • Upload discord
    • Get Task
      • Fetch task by ids
      • Fetch task by id
      • Get seed
  • Flux
    • Official
      • Generate
      • Finetune
      • Fetch task
    • OpenAI Dalle3
  • Recraft
    • Official
      • Generate Image
      • Vectorize Image
      • Remove Background
      • Clarity Upscale
      • Generative Upscale
      • Create style
    • OpenAI Dalle3
  • Ideogram
    • Generate
    • Remix
    • Edit
    • Upscale
    • Describe
  • Luma
    • Official
      • Generate
      • Fetch task
    • Own format
      • Submit
        • Generate
        • Get video of no mark
        • 扩展视频
      • Get task
        • Get task
          GET
        • Get batch task
          POST
  • Runway
    • Official
      • image to video
      • get task
    • reverse
      • text to video
      • image to video
      • video2video
      • Act-one
      • Get task
  • Kling-API
    • Callback
    • Generate image
    • Text 2 Video
    • Image 2 Video
    • Video extend
    • Get task
    • lip-sync
    • kolors-virtual-try-on
  • Replicate
    • Generate
    • Get
  • MiniMax
    • Generate video
    • Get task
    • Get file
  1. Get task

Get batch task

POST
/luma/tasks
最后修改时间:2025-02-05 11:31:32

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Header 参数
Authorization
string 
可选
默认值:
{{YOUR_API_KEY}}
Body 参数application/json
ids
array[string]
必需
示例
{
    "ids": [
        "f4b6403a-f5f1-49b9-a6d2-6ce8c68cae0d"
    ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/luma/tasks' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ids": [
        "f4b6403a-f5f1-49b9-a6d2-6ce8c68cae0d"
    ]
}'

返回响应

🟢200成功
application/json
Body
code
string 
必需
message
string 
必需
data
array [object {9}] 
必需
task_id
string 
必需
action
string 
必需
status
string 
必需
fail_reason
string 
必需
submit_time
integer 
必需
start_time
integer 
必需
finish_time
integer 
必需
progress
string 
必需
data
object 
必需
示例
{
    "code": "success",
    "message": "",
    "data": [
        {
            "id": 13917,
            "created_at": "2024-07-01T07:35:13.568Z",
            "updated_at": "2024-07-01T07:35:23.654Z",
            "task_id": "9d4b7516-77e5-481a-b015-48313946f33b",
            "platform": "luma_free",
            "action": "LUMA_VIDEO",
            "status": "IN_PROGRESS",
            "fail_reason": "",
            "submit_time": 1719819313,
            "start_time": 1719819323,
            "finish_time": 0,
            "data": {
                "id": "9d4b7516-77e5-481a-b015-48313946f33b",
                "liked": null,
                "state": "processing",
                "video": null,
                "prompt": "cat dance",
                "created_at": "2024-07-01T07:35:13.498000Z",
                "estimate_wait_seconds": null
            }
        }
    ]
}
上一页
Get task
下一页
image to video
Built with