OneChat API
  1. 任务提交
OneChat API
  • 介绍
  • 项目说明
  • 导言
  • 身份验证
  • 发出请求
  • 聊天(Chat)
    • 聊天完成对象
    • 聊天完成块对象
    • 创建聊天补全
      POST
  • 音频(Audio)
    • 创建语音
      POST
    • 创建转录
      POST
    • 创建翻译
      POST
  • 自动补全(Completions)
    • 完成对象
    • 创建完成
      POST
  • 嵌入(Embeddings)
    • 嵌入对象
    • 创建嵌入
      POST
  • 图像(Images)
    • README
    • 图像对象
    • 创建图像
  • 文件(Files)
    • README
    • 文件对象
    • 上传文件
  • mid journey
    • 补充 其他参数以及回调
    • InsightFace任务提交
      • 提交swap_face任务
    • 任务提交
      • 绘图变化(UPSCALE; VARIATION; REROLL)
        POST
      • 执行动作(所有的关联按钮动作UPSCALE; VARIATION; REROLL; ZOOM等)
        POST
      • 绘图变化-simple(UPSCALE; VARIATION; REROLL)
        POST
      • 提交Blend任务(图生图)
        POST
      • 提交Describe任务(图生文)
        POST
      • 提交Imagine任务(文生图、文图生图)
        POST
      • 提交Modal(提交局部重绘、ZOOM)
        POST
      • 提交Shorten任务(prompt分析)
        POST
    • 任务查询
      • 根据ID列表查询任务
      • 指定ID获取任务
      • 获取任务图片的seed
  1. 任务提交

绘图变化-simple(UPSCALE; VARIATION; REROLL)

POST
https://gpts.onechat.fun/mj/submit/simple-change
任务提交

请求参数

Body 参数application/json
content
string 
必需
变化描述: ID actionindex
示例值:
1320098173412546 U2
notifyHook
string 
可选
回调地址, 为空时使用全局notifyHook
state
string 
自定义参数
可选
示例
{
  "content": "1320098173412546 U2",
  "notifyHook": "string",
  "state": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://gpts.onechat.fun/mj/submit/simple-change' \
--header 'Content-Type: application/json' \
--data-raw '{
    "content": "1320098173412546 U2",
    "notifyHook": "string",
    "state": "string"
}'

返回响应

🟢200OK
application/json
Body
code
integer <int32>
必需
状态码: 1(提交成功), 21(已存在), 22(排队中), other(错误)
示例值:
1
description
string 
描述
必需
示例值:
提交成功
properties
object 
扩展字段
可选
result
string 
任务ID
可选
示例值:
1320098173412546
示例
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
上一页
执行动作(所有的关联按钮动作UPSCALE; VARIATION; REROLL; ZOOM等)
下一页
提交Blend任务(图生图)
Built with