{"model":"flux-kontext-pro","prompt":"a beautiful landscape with a river and mountains","size":"1024x1024"}
示例代码
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/v1/images/generations' \
--header'Authorization: Bearer ' \
--header'Content-Type: application/json' \
--data-raw'{
"model": "flux-kontext-pro",
"prompt": "a beautiful landscape with a river and mountains",
"size": "1024x1024"
}'