- 序言
- OpenAI接口
- Suno音乐接口
- 绘画接口
- 视频接口
- 文本生成(通用)
- 可灵AI
获取结果
开发中
GET
https://api.openai-hub.com/dream-machine/v1/generations/{task_id}
请求参数
Path 参数
task_id
string
必需
示例值:
b32f27cc-4fc3-4ac2-a199-f564b89249c0
Header 参数
Authorization
string
必需
示例
Authorization: Bearer 2f68dbbf-519d-4f01-9636-e2421b68f379
默认值:
Bearer {{YOUR_API_KEY}}
Content-Type
string
可选
默认值:
application/json
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.openai-hub.com/dream-machine/v1/generations/b32f27cc-4fc3-4ac2-a199-f564b89249c0' \
--header 'Authorization;' \
--header 'Content-Type: application/json'
返回响应
🟢200成功
application/json
Body
id
string
必需
state
string
必需
video
object
必需
url
string
必需
download_url
string
必需
assets
object
必需
video
string
必需
request
object
必需
prompt
string
必需
enhance
boolean
必需
aspect_ratio
string
必需
request_type
string
必需
artifact
object
必需
thumbnail
object
必需
video_raw
object
必需
created_at
string
必需
last_frame
object
必需
thumbnail
object
必需
url
string
必需
width
integer
必需
height
integer
必需
palette
object
必需
media_type
string
必需
video_raw
object
必需
url
string
必需
width
integer
必需
height
integer
必需
duration
number
必需
media_type
string
必需
created_at
string
必需
last_frame
object
必需
url
string
必需
width
integer
必需
height
integer
必需
palette
null
必需
media_type
string
必需
media_request
object
必需
end
null
必需
loop
boolean
必需
text
string
必需
start
object
必需
rich_text
null
必需
prompt_type
string
必需
示例
{
"id": "string",
"state": "string",
"video": {
"url": "string",
"download_url": "string"
},
"assets": {
"video": "string"
},
"request": {
"prompt": "string",
"enhance": true,
"aspect_ratio": "string",
"request_type": "string"
},
"artifact": {
"thumbnail": {
"url": "string",
"width": 0,
"height": 0,
"palette": {
"grid": "string"
},
"media_type": "string"
},
"video_raw": {
"url": "string",
"width": 0,
"height": 0,
"duration": 0,
"media_type": "string"
},
"created_at": "string",
"last_frame": {
"url": "string",
"width": 0,
"height": 0,
"palette": null,
"media_type": "string"
}
},
"thumbnail": {
"url": "string",
"width": 0,
"height": 0,
"palette": {
"grid": "string"
},
"media_type": "string"
},
"video_raw": {
"url": "string",
"width": 0,
"height": 0,
"duration": 0,
"media_type": "string"
},
"created_at": "string",
"last_frame": {
"url": "string",
"width": 0,
"height": 0,
"palette": null,
"media_type": "string"
},
"media_request": {
"end": null,
"loop": true,
"text": "string",
"start": {
"id": "string",
"type": "string",
"thumbnail": null,
"media_type": null
},
"rich_text": null,
"prompt_type": "string"
}
}