- 前言(必读)
- OpenAI官方库使用教程
- 聊天模型(Chat)
- 向量嵌入
- 音频模型(Audio)
- 绘画模型(Painting)
- MidJourney
- Dalle
- stable-diffusionPOST
- Flux Ai POST
- 音乐创作(suno)
- 视频模型(Video)
- API接口节点
- 入门教程
- GPT4检验方法
- 注意事项
- 常见问题回答
- 联系方式
- 更多接口开发中...
上传:上传图片到Discord
POST
https://api.chatgptsb.com/mj/submit/upload-discord-images
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
示例值:
Bearer sk-xxxx
Body 参数application/json
base64Array
array[string]
base64数组
filter
object
可选
channelId
string
频道ID
instanceId
string
账号实例ID
remark
string
备注包含
示例
{
"base64Array": [
"data:image/jpeg;base64,/xxx1",
"data:image/jpeg;base64,/xxx2"
],
"filter": {
"channelId": "string",
"instanceId": "string",
"remark": "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://api.chatgptsb.com/mj/submit/upload-discord-images' \
--header 'Authorization: Bearer sk-xxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"base64Array": [
"data:image/jpeg;base64,/xxx1",
"data:image/jpeg;base64,/xxx2"
],
"filter": {
"channelId": "string",
"instanceId": "string",
"remark": "string"
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
description
string
必需
result
array[string]
必需
示例
{
"code": 0,
"description": "string",
"result": [
"string"
]
}
修改于 2024-11-26 03:18:48