能用AI API文档
  1. 模型接口
能用AI API文档
  • 模型接口
    • Midjourney API文档
      • InsightFace任务提交
        • 提交swap_face任务
      • 任务提交
        • 提交Imagine任务
        • 执行动作
        • 提交Blend任务
        • 提交Describe任务
        • 提交Modal
        • 提交Shorten任务
        • 上传文件到discord
      • 任务查询
        • 根据ID列表查询任务
        • 根据ID列表查询任务-字段displays
        • 指定ID获取任务
        • 获取任务图片的seed(需设置mj或niji的私信ID)
    • Suno音乐接口
      • 生成音乐
      • 查询任务
    • Flux调用文档
      POST
  1. 模型接口

Flux调用文档

POST
https://gnomic.nengyongai.cn/v1/images/generations
Token 就是 https://gnomic.nengyongai.cn平台 创建的 Key

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Header 参数
Authorization
string 
可选
默认值:
{{YOUR_API_KEY}}
Body 参数application/json
model
string 
模型名称
必需
flux-pro-1.1-ultra(0.1美金/次)
prompt
string 
文生图提示词
必需
aspect_ratio
string 
生成图片比例
必需
默认:16:9
示例
{
  "model": "flux-pro-1.1-ultra",
  "prompt": "Create a stunning image of a Stanley Cup Finals medal, shaped like a hockey puck with a diameter of 3 inches, crafted from polished silver with intricate engravings. The front features a raised depiction of the Stanley Cup, surrounded by laurel leaves, while the back showcases the year and team logo engraved in bold lettering. The medal hangs from a deep blue satin ribbon, adorned with a subtle ice rink texture, and is secured by a silver chain that glimmers in the light. Incorporate hockey-specific motifs, such as crossed sticks and a puck, subtly embossed around the edges. Use a color scheme of silver, blue, and white to evoke a sense of victory and excellence. The lighting should create a dramatic spotlight effect, casting soft shadows against a blurred ice rink background, emphasizing the medal's details. Capture the scene from a slightly elevated perspective, focusing on the medal as the central element, with the background hinting at an electrifying hockey atmosphere.",
  "aspect_ratio": "1:1"
}

示例代码

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://gnomic.nengyongai.cn/v1/images/generations' \
--header 'Authorization: {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "model": "flux-pro-1.1-ultra",
  "prompt": "Create a stunning image of a Stanley Cup Finals medal, shaped like a hockey puck with a diameter of 3 inches, crafted from polished silver with intricate engravings. The front features a raised depiction of the Stanley Cup, surrounded by laurel leaves, while the back showcases the year and team logo engraved in bold lettering. The medal hangs from a deep blue satin ribbon, adorned with a subtle ice rink texture, and is secured by a silver chain that glimmers in the light. Incorporate hockey-specific motifs, such as crossed sticks and a puck, subtly embossed around the edges. Use a color scheme of silver, blue, and white to evoke a sense of victory and excellence. The lighting should create a dramatic spotlight effect, casting soft shadows against a blurred ice rink background, emphasizing the medal'\''s details. Capture the scene from a slightly elevated perspective, focusing on the medal as the central element, with the background hinting at an electrifying hockey atmosphere.",
  "aspect_ratio": "1:1"
}'

返回响应

🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-11-29 08:08:49
上一页
查询任务
Built with