Upload: Upload Images to Discord
Overview
- Method:
POST - Path:
/mj/submit/upload-discord-images
Authentication
- Use HTTP Bearer Token, Example:
Authorization: Bearer sk-xxxxx
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| base64Array | array[string] | Yes | Array of image base64 strings |
| filter | object | No | Filter parameters: channelId / instanceId / remark |
Request Example
json
{
"base64Array": [
"data:image/jpeg;base64,/xxx1",
"data:image/jpeg;base64,/xxx2"
],
"filter": {
"channelId": "string",
"instanceId": "string",
"remark": "string"
}
}curl
bash
curl -X POST "https://api.gpt.ge/mj/submit/upload-discord-images" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxxx" \
-d '{"base64Array":["data:image/jpeg;base64,/xxx1","data:image/jpeg;base64,/xxx2"],"filter":{"channelId":"string","instanceId":"string","remark":"string"}}'Response Example (200)
json
{
"code": 0,
"description": "string",
"result": ["string"]
}