小天API
  1. MidJourney
小天API
  • 前言(必读)
  • OpenAI官方库使用教程
  • python调用实例
  • 聊天模型(Chat)
    • 查询令牌额度
      GET
    • 查询令牌已用多少额度
      GET
    • 查询令牌请求日志
      GET
    • 聊天接口(通用)
      POST
    • 列出可用模型
      GET
    • 聊天接口(o1系列模型)
      POST
    • 聊天补全
      POST
    • Claude3+(全系列)
      POST
    • Gemini1.5+(全系列)
      POST
    • GPTs
      POST
    • gpt-4-all 文件分析
      POST
    • gpt-4o-all 文件分析
      POST
    • 聊天接口(图片分析)
      POST
  • 向量嵌入
    • 创建嵌入
  • 音频模型(Audio)
    • 文字转语音 TTS
    • 语音转文字 whisper-1
    • 创建翻译
  • 绘画模型(Painting)
    • MidJourney
      • 提交模式与状态码说明
      • 任务:换脸 swap_face
        POST
      • 任务:图生图 Blend
        POST
      • 任务:文生图、文图生图 Imagine
        POST
      • 任务:提示词缩短 Shorten
        POST
      • 上传:上传图片到Discord
        POST
      • 任务:局部重绘 Modal
        POST
      • 任务:绘图变化
        POST
      • 任务:执行动作
        POST
      • 任务:绘图变化-simple
        POST
      • 任务:图生文 Describe
        POST
      • 查询:根据ID列表查任务
        POST
      • 查询:根据ID查询任务
        GET
      • 查询:根据ID获取图片
        GET
      • 查询:根据ID获取图片 Seed
        GET
    • Dalle
      • 图像生成
      • 图像编辑
    • stable-diffusion
      POST
    • Flux Ai
      POST
  • 音乐创作(suno)
    • 接口介绍
    • 任务:生成歌曲
    • 聊天方式:生成歌曲
    • 任务:生成歌词
    • 查询:批量查询任务
    • 查询:单个任务
  • 视频模型(Video)
    • 视频模型说明
    • 快手可灵AI
      • 查询:单个任务
      • 任务:图像生成
      • 任务:文生视频
      • 任务:图生视频
    • luma视频
      • 任务:生成视频
      • 任务:拓展视频
      • 获取:无水印视频
      • 查询:单个任务
      • 查询:批量查询任务
    • runway视频
      • 任务:生成视频.gen2
      • 任务:生成视频.gen3
      • 查询:单个任务
      • 上传:参考图 A认证
      • 上传:参考图 C 获取
      • 任务:拓展视频
  • API接口节点
  • 入门教程
    • 注册教程
    • 充值或者兑换额度
    • 生成令牌
    • 公益站设置
    • 第三方设置
  • GPT4检验方法
  • 注意事项
  • 常见问题回答
  • 联系方式
  • 更多接口开发中...
  1. MidJourney

查询:根据ID查询任务

GET
https://api.chatgptsb.com/mj/task/{id}/fetch

请求参数

Path 参数

Header 参数

请求示例代码

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.chatgptsb.com/mj/task/1725017986212425/fetch' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json'

返回响应

🟢200成功
application/json
Body

示例
{
    "id": "1724963337114767",
    "action": "IMAGINE",
    "customId": "",
    "botType": "",
    "prompt": "a black dog flying",
    "promptEn": "a black dog flying",
    "description": "Submit success",
    "state": "",
    "submitTime": 1724963337114,
    "startTime": 1724963338763,
    "finishTime": 1724963365565,
    "imageUrl": "http://localhost:3001/mj/image/1724963337114767",
    "status": "SUCCESS",
    "progress": "100%",
    "failReason": "",
    "buttons": [
        {
            "customId": "MJ::JOB::upsample::1::e1a4d7e8-8292-412c-aab0-fce932e90479",
            "emoji": "",
            "label": "U1",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::upsample::2::e1a4d7e8-8292-412c-aab0-fce932e90479",
            "emoji": "",
            "label": "U2",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::upsample::3::e1a4d7e8-8292-412c-aab0-fce932e90479",
            "emoji": "",
            "label": "U3",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::upsample::4::e1a4d7e8-8292-412c-aab0-fce932e90479",
            "emoji": "",
            "label": "U4",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::reroll::0::e1a4d7e8-8292-412c-aab0-fce932e90479::SOLO",
            "emoji": "🔄",
            "label": "",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::variation::1::e1a4d7e8-8292-412c-aab0-fce932e90479",
            "emoji": "",
            "label": "V1",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::variation::2::e1a4d7e8-8292-412c-aab0-fce932e90479",
            "emoji": "",
            "label": "V2",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::variation::3::e1a4d7e8-8292-412c-aab0-fce932e90479",
            "emoji": "",
            "label": "V3",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::variation::4::e1a4d7e8-8292-412c-aab0-fce932e90479",
            "emoji": "",
            "label": "V4",
            "type": 2,
            "style": 2
        }
    ],
    "maskBase64": "",
    "properties": {
        "finalPrompt": "a black dog flying",
        "finalZhPrompt": ""
    }
}
修改于 2024-11-26 03:16:15
上一页
查询:根据ID列表查任务
下一页
查询:根据ID获取图片
Built with