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
      POST
  • Suno
    • Generate music
      POST
    • Generate lyrics
      POST
    • Upload music
      POST
    • Music concat
      POST
    • Fetch task
      GET
    • Fetch batch tasks
      POST
  • Udio
    • Generate music
      POST
    • Fetch task
      GET
  • 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 task

GET
/luma/generations/{task_id}
Last modified:2025-02-05 11:31:24

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
task_id
string 
required
Example:
f09085b0-5892-4952-ba05-574c198a5a3f
Header Params
Authorization
string 
optional
Default:
{{YOUR_API_KEY}}

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 -g --request GET '/luma/generations/f09085b0-5892-4952-ba05-574c198a5a3f' \
--header 'Authorization: '

Responses

🟢200成功
application/json
Body
id
string 
required
liked
null 
required
state
string 
required
video
object 
required
url
string 
required
官方生成的视频链接,有水印
width
integer 
required
height
integer 
required
download_url
string 
required
我们人工加上去的,存放无水印视频链接,如果没有,请自己获取
prompt
string 
required
thumbnail
object 
required
url
string 
required
width
integer 
required
height
integer 
required
video_raw
object 
required
VIP账号有
url
string 
required
VIP账号有,该字段会是无水印视频链接
width
integer 
required
height
integer 
required
created_at
string 
required
last_frame
object 
required
url
string 
required
width
integer 
required
height
integer 
required
queue_state
null 
required
estimate_wait_seconds
null 
required
Example
{
  "id": "644b6a06-8af6-4600-9a7f-6c895ade66fb",
  "state": "completed",
  "video": {
    "url": "https://storage.cdn-luma.com/dream-machine/42d1defa-bed7-4d6f-861d-90cc0743bec9/d52fce1b-2e0b-42a6-aac1-5f11ffb643c5/video0b9d12873fcd94110b39c2df4ab74672d.mp4",
    "width": 1360,
    "height": 752,
    "download_url": "https://storage.cdn-luma.com/dream-machine/42d1defa-bed7-4d6f-861d-90cc0743bec9/d52fce1b-2e0b-42a6-aac1-5f11ffb643c5/video0b9d12873fcd94110b39c2df4ab74672d.mp4"
  },
  "request": {
    "prompt": "cat dance",
    "aspect_ratio": "16:9"
  },
  "artifact": {
    "video": {
      "url": "https://storage.cdn-luma.com/dream-machine/42d1defa-bed7-4d6f-861d-90cc0743bec9/d52fce1b-2e0b-42a6-aac1-5f11ffb643c5/video0b9d12873fcd94110b39c2df4ab74672d.mp4",
      "width": 1360,
      "height": 752,
      "download_url": "https://storage.cdn-luma.com/dream-machine/42d1defa-bed7-4d6f-861d-90cc0743bec9/d52fce1b-2e0b-42a6-aac1-5f11ffb643c5/video0b9d12873fcd94110b39c2df4ab74672d.mp4"
    },
    "thumbnail": {
      "url": "https://imagedelivery.net/1KomXrSWiTojGGip43n0SQ/58d6934e-65de-4047-ce30-409a9cbc1b00/public",
      "width": 1360,
      "height": 752,
      "palette": {
        "grid": "nYx3v7Wfe1Q1Y04ze2NLQywcVD4thE4oh21WTDstHA8JOSgaiVUvOiggHxYRTjckclQ6nWAwhFUsaj0chVs/za6Su4RPklIifUIb"
      },
      "media_type": "image"
    },
    "video_raw": {
      "url": "https://storage.cdn-luma.com/dream-machine/42d1defa-bed7-4d6f-861d-90cc0743bec9/d52fce1b-2e0b-42a6-aac1-5f11ffb643c5/video0b9d12873fcd94110b39c2df4ab74672d.mp4",
      "width": 1360,
      "height": 752,
      "duration": 5.041667,
      "media_type": "video"
    },
    "created_at": "0001-01-01T00:00:00Z",
    "last_frame": {
      "url": "https://storage.cdn-luma.com/dream-machine/42d1defa-bed7-4d6f-861d-90cc0743bec9/0711e412-fb36-48d6-964f-113f160e14de/video_0_last_frame.jpg",
      "width": 1360,
      "height": 752,
      "palette": null,
      "media_type": "image"
    }
  },
  "thumbnail": {
    "url": "https://imagedelivery.net/1KomXrSWiTojGGip43n0SQ/58d6934e-65de-4047-ce30-409a9cbc1b00/public",
    "width": 1360,
    "height": 752,
    "palette": {
      "grid": "nYx3v7Wfe1Q1Y04ze2NLQywcVD4thE4oh21WTDstHA8JOSgaiVUvOiggHxYRTjckclQ6nWAwhFUsaj0chVs/za6Su4RPklIifUIb"
    },
    "media_type": "image"
  },
  "video_raw": {
    "url": "https://storage.cdn-luma.com/dream-machine/42d1defa-bed7-4d6f-861d-90cc0743bec9/d52fce1b-2e0b-42a6-aac1-5f11ffb643c5/video0b9d12873fcd94110b39c2df4ab74672d.mp4",
    "width": 1360,
    "height": 752,
    "duration": 5.041667,
    "media_type": "video"
  },
  "created_at": "2024-12-15T08:55:30.635Z",
  "last_frame": {
    "url": "https://storage.cdn-luma.com/dream-machine/42d1defa-bed7-4d6f-861d-90cc0743bec9/0711e412-fb36-48d6-964f-113f160e14de/video_0_last_frame.jpg",
    "width": 1360,
    "height": 752,
    "palette": null,
    "media_type": "image"
  }
}
Previous
扩展视频
Next
Get batch task
Built with