- OpenAI
- Claude
- Midjourney
- 翻译
- 文心一言
- Stable Diffusion
图片生成图片 Blend
POST
https://api.aigc2d.com/midjourney/blend
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
base_64
array[string]
必需
>= 2 items<= 5 items
dimensions
enum<string>
可选
枚举值:
PORTRAITSQUARELANDSCAPE
notify_url
string
可选
state
string
可选
示例
{
"base_64": [
"data:image/png;base64,",
"data:image/png;base64,fac)ga4;",
"data:image/png;base64,<ww",
"data:image/png;base64,,"
],
"dimensions": "PORTRAIT",
"state": "",
"notify_url": ""
}
示例代码
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.aigc2d.com/midjourney/blend' \
--header 'Content-Type: application/json' \
--data-raw '{
"base_64": [
"data:image/png;base64,",
"data:image/png;base64,fac)ga4;",
"data:image/png;base64,<ww",
"data:image/png;base64,,"
],
"dimensions": "PORTRAIT",
"state": "",
"notify_url": ""
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2023-07-24 14:20:48