- 发出请求
- 完成对象
- 模型接口
- OpenAI
- Anthropic
- Google
- Midjourney
- xAI / OpenAI兼容接口
- 文生图接口
- Realtime (实时语音、对话)
- GPTs 相关
- 文生音乐
- 文生视频
- Rerank API
- Python配置方式
- 帮助中心
13.编辑图片(Edit)接口
主站接口①
https://api2.aigcbest.top
主站接口①
https://api2.aigcbest.top
POST
https://api2.aigcbest.top
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
必需
默认值:
Bearer {{YOUR_API_KEY}}
Content-Type
string
必需
默认值:
application/json
Accept
string
必需
默认值:
application/json
Body 参数application/json
sourceBase64
string
必需
示例值:
data:image/png;base64,xxx1
targetBase64
string
必需
示例值:
data:image/png;base64,xxx2
accountFilter
object (Filter)
可选
instanceId
string
账号实例ID
notifyHook
string
可选
state
string
自定义参数
示例
{
"prompt": "将图片转为吉卜力风格",
"imageBase64": "data:image/png;xxx"
}
示例代码
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://api2.aigcbest.top/mj/submit/edits' \
--header 'Authorization;' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "将图片转为吉卜力风格",
"imageBase64": "data:image/png;xxx"
}'
返回响应
🟢200OK
application/json
Body
code
integer <int32>
可选
description
string
可选
result
string
可选
示例
{
"code": 0,
"description": "string",
"result": "string"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2025-07-05 19:00:12