
🇺🇸 English

🇺🇸 English
- Chat Models
- Anthropic
- Suno
- Udio
- Midjourney API
- Flux
- Recraft
- Ideogram
- Luma
- Runway
- Kling-API
- Replicate
- MiniMax
Create style
POST
/recraft/v1/styles
最后修改时间:2025-02-05 11:28:15
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
默认值:
{{YOUR_API_KEY}}
Body 参数multipart/form-data
style
string
生成图像的基本风格
files
file
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/recraft/v1/styles' \
--header 'Authorization: ' \
--form 'style=""' \
--form 'files=@""'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}