OpenAI-Hub中文文档
首页控制台
首页控制台
  1. 官方接口格式
  • 序言
  • OpenAI接口
    • 聊天通用
      • 如何上传文件?
      • 语音对话接口
      • 聊天(通用)
      • gpts接口
      • gpt-4-all(生成图片)
      • gpt-4-all(分析图片)
    • 内容补全
      • 创建完成
    • 图像接口
      • 创建图像
      • 创建图像编辑
      • 创建图像变化
    • 音频接口
      • 创建语音
      • 创建转录
    • 向量生成
      • 创建嵌入
    • 模型列表
      • 列出模型
    • 内容审核
      • 创建内容审核
    • 帮助中心
      • HTTP接口状态码
  • Suno音乐接口
    • 接口格式(通用)
      • 生成音乐
      • 生成歌词
      • 查询单个任务
      • 批量查询任务
    • 其他接口格式
      • 生成音乐
      • 查询任务
  • 绘画接口
    • Midjourney
      • InsightFace任务提交
        • 提交swap_face任务(废弃)
      • 任务提交
        • 提交Imagine任务
        • 执行动作
        • 提交Blend任务
        • 提交Describe任务
        • 提交Modal
        • 提交Shorten任务
        • 上传文件到discord
      • 任务查询
        • 指定ID获取任务
        • 根据ID列表查询任务
        • 根据ID列表查询任务-字段displays
        • 获取任务图片的seed
    • Flux(暂不可用)
      • 生成图片
    • Ideogram(绘画)
      • Generate(文生图)
      • Remix(混合图)
      • Upscale(放大高清)
      • Describe(描述)
  • 视频接口
    • Luma视频接口
      • 官方接口格式
        • 视频生成
          POST
        • 获取结果
          GET
      • 平台格式
        • 任务提交
          • 生成视频
          • 扩展视频
          • 获取视频无水印链接
        • 任务查询
          • 查询单个任务
          • 批量查询任务
    • Runway视频接口
      • feed
      • generate(文本)
      • generate(参考图片)
    • Pika视频接口
      • 任务提交
      • 查询任务
  • 文本生成(通用)
    • 聊天(通用)
      POST
    • Anthropic Claude(全系列,已更新支持第三代)
      POST
    • gemini-pro
      POST
  • 可灵AI
    • 回调协议
    • 生成图像
    • 生成视频
    • 图生视频
    • 查询单个任务
  1. 官方接口格式

获取结果

开发中
GET
https://api.openai-hub.com/dream-machine/v1/generations/{task_id}

请求参数

Path 参数
task_id
string 
必需
示例值:
b32f27cc-4fc3-4ac2-a199-f564b89249c0
Header 参数
Authorization
string 
必需
在 Header 添加参数 Authorization,其值为在 Bearer 之后拼接 令牌
示例
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"
  }
}
上一页
视频生成
下一页
生成视频
Built with