- 前言(必读)
- OpenAI官方库使用教程
- 聊天模型(Chat)
- 向量嵌入
- 音频模型(Audio)
- 绘画模型(Painting)
- MidJourney
- Dalle
- stable-diffusionPOST
- Flux Ai POST
- 音乐创作(suno)
- 视频模型(Video)
- API接口节点
- 入门教程
- GPT4检验方法
- 注意事项
- 常见问题回答
- 联系方式
- 更多接口开发中...
任务:图生图 Blend
POST
https://api.chatgptsb.com/mj/submit/blend
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
示例值:
Bearer sk-xxxx
Body 参数application/json
base64Array
array[string]
必需
示例值:
["data:image/png;base64,xxx1","data:image/png;base64,xxx2"]
dimensions
enum<string>
必需
枚举值:
PORTRAITSQUARELANDSCAPE
示例值:
LANDSCAPE
notifyHook
string | null
可选
state
string | null
自定义参数
示例
{
"base64Array": [
"data:image/png;base64,xxx1",
"data:image/png;base64,xxx2"
],
"dimensions": "PORTRAIT"
}
示例代码
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://api.chatgptsb.com/mj/submit/blend' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"base64Array": [
"data:image/png;base64,xxx1",
"data:image/png;base64,xxx2"
],
"dimensions": "PORTRAIT"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
description
string
必需
result
string
必需
properties
object
必需
discordChannelId
string
必需
discordInstanceId
string
必需
示例
{
"code": 1,
"description": "Submit success",
"result": "1725017986212425",
"properties": {
"discordChannelId": "1278917486263402612",
"discordInstanceId": "1550466896007176192"
}
}
修改于 2024-11-26 13:12:06