- GET START
- OpenAI Compatiable Endpoint
- Audio
- Anthropic Compatiable Endpoint
- Music Generation Endpoint
- Image Generation Endpoint
- Video Generation Ednpoint
- runway(video)
- PIKA(video)
- luma (video)
- Official api interface format
- kling (video)
- MiniMax Conch(video)
- Software Integration Guide
- cometapi Site API Call Testing
- OpenManus
- Chatbox
- CherryStudio
- Cursor
- ChatHub
- cline
- dify
- gptme
- Immersive Translation
- Lobe-Chat
- Zotero
- LangChain
- AnythingLLM
- Eudic Translation
- OpenAI Translator
- ChatAll Translation
- Pot Translation
- GPT Academic Optimization (gpt_academic)
- NEXT CHAT (ChatGPT Next Web)
- Obsidian's Text Generator Plugin
- Open WebUI
- avante.nvim
- librechat
- Lazy Customer Service
- utools-ChatGPT Friend
- IntelliJ Translation Plugin
- n8n
luma generate
Testing
POST
https://api.cometapi.com/dream-machine/v1/generations
Maintainer:Not configured
Request
Header Params
Authorization
string
required
Example:
Bearer {{api-key}}
Content-Type
string
optional
Example:
application/json;charset=utf-8
Body Params application/json
prompt
string
required
loop
boolean
optional
aspect_ratio
string
optional
keyframes
object
optional
frame0
object
optional
frame1
object
optional
callback_url
string
optional
Example
{
"prompt": "A tiger walking in snow",
"keyframes": {
"frame0": {
"type": "image",
"url": "https://storage.cdn-luma.com/dream_machine/7e4fe07f-1dfd-4921-bc97-4bcf5adea39a/video_0_thumb.jpg"
}
}
}
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.cometapi.com/dream-machine/v1/generations' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json;charset=utf-8' \
--data-raw '{
"prompt": "A tiger walking in snow",
"keyframes": {
"frame0": {
"type": "image",
"url": "https://storage.cdn-luma.com/dream_machine/7e4fe07f-1dfd-4921-bc97-4bcf5adea39a/video_0_thumb.jpg"
}
}
}'
Responses
🟢201Created
application/json
Body
id
string
required
state
string
required
created_at
string
required
request
object
required
prompt
string
required
aspect_ratio
string
required
enhance
boolean
required
request_type
string
required
media_request
object
required
end
null
required
loop
boolean
required
prompt_type
string
required
start
object
required
text
string
required
Example
{
"id": "fe6cd271-eec5-46dd-a753-b97c4d576616",
"state": "pending",
"created_at": "2025-03-09T05:09:24.137448Z",
"request": {
"prompt": "A tiger walking in snow",
"aspect_ratio": "16:9",
"enhance": true,
"request_type": "image_to_video"
},
"media_request": {
"end": null,
"loop": false,
"prompt_type": "keyframe",
"start": {
"id": "fd4643c2-27d1-4482-82fa-092c1f1f2839",
"media_type": null,
"thumbnail": null,
"type": "upload"
},
"text": "A tiger walking in snow"
}
}