API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  1. Official
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
        POST
      • Fetch task
        GET
    • Own format
      • Submit
        • Generate
        • Get video of no mark
        • 扩展视频
      • Get task
        • Get task
        • Get batch task
  • 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. Official

Fetch task

GET
/dream-machine/v1/generations/{task_id}
最后修改时间:2025-02-05 11:29:45

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数
task_id
string 
必需
示例值:
4b3c464e-94f6-4e54-bc21-12f0e6da5791
Header 参数
Authorization
string 
可选
默认值:
{{YOUR_API_KEY}}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET '/dream-machine/v1/generations/4b3c464e-94f6-4e54-bc21-12f0e6da5791' \
--header 'Authorization: '

返回响应

🟢200成功
application/json
Body
id
string 
必需
liked
null 
必需
state
string 
必需
video
object 
必需
url
string 
必需
官方生成的视频链接,有水印
width
integer 
必需
height
integer 
必需
download_url
string 
必需
我们人工加上去的,存放无水印视频链接,如果没有,请自己获取
prompt
string 
必需
thumbnail
object 
必需
url
string 
必需
width
integer 
必需
height
integer 
必需
video_raw
object 
VIP账号有
必需
url
string 
必需
VIP账号有,该字段会是无水印视频链接
width
integer 
必需
height
integer 
必需
created_at
string 
必需
last_frame
object 
必需
url
string 
必需
width
integer 
必需
height
integer 
必需
queue_state
null 
必需
estimate_wait_seconds
null 
必需
示例
{
    "id": "32ec5549-7b7a-4111-a43b-445b3a89c8ef",
    "liked": null,
    "state": "completed",
    "video": {
        "url": "https://storage.cdn-luma.com/lit_lite_inference_v1.6-xl/5bf08990-71ed-4a56-b531-2c2f02e18f51/5f7ca010-7e0e-4faf-a654-f41ce735d0ff_watermarked_video05a8efbcf1ba2498bb02aa9dcefab47f8.mp4",
        "width": 752,
        "height": 1360,
        "download_url": "https://dc53a917a6f427706a8ca3ecc7d70ea4.r2.cloudflarestorage.com/ai-lumalabs-storage/lit_lite_inference_v1.6-xl/5bf08990-71ed-4a56-b531-2c2f02e18f51/0af7d264-0ab5-45f1-befb-e382c81d8023_video05a8efbcf1ba2498bb02aa9dcefab47f8.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=60bf44f30d45b472f9dd032de33e15d1%2F20241015%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20241015T085653Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=9b40f281fd019016625bb2a4fcdf9f9625de3dba2f5c80178f6bd5e8c4304499"
    },
    "prompt": "Please generate a video simulating the gentle undulating heights of water waves and sand dunes, with more focus on the imagery of the Nile River, based on the reference of the ceramic tile product design.",
    "thumbnail": {
        "url": "https://storage.cdn-luma.com/lit_lite_inference_v1.6-xl/5bf08990-71ed-4a56-b531-2c2f02e18f51/59ce5a3c-8fad-4735-94f7-243040c63a4e_video_0_thumb.jpg",
        "width": 752,
        "height": 1360
    },
    "video_raw": {
        "url": "https://storage.cdn-luma.com/lit_lite_inference_v1.6-xl/5bf08990-71ed-4a56-b531-2c2f02e18f51/0af7d264-0ab5-45f1-befb-e382c81d8023_video05a8efbcf1ba2498bb02aa9dcefab47f8.mp4",
        "width": 752,
        "height": 1360
    },
    "created_at": "2024-10-15T08:56:19.325Z",
    "last_frame": {
        "url": "https://storage.cdn-luma.com/lit_lite_inference_v1.6-xl/5bf08990-71ed-4a56-b531-2c2f02e18f51/0f434eba-2421-4abf-8a36-774abc3bf515_video_0_last_frame.jpg",
        "width": 752,
        "height": 1360
    },
    "queue_state": null,
    "estimate_wait_seconds": null
}
上一页
Generate
下一页
Generate
Built with