FLUX AI 绘画 文生图

FLUX AI 绘画 文生图

其他
HTTP状态码说明
API在线调用
接口地址
https://api.briskapi.com/model/flux
请求方法
POST
请求鉴权(Headers)
Content-Type: application/json
Authorization: Bearer {API key}
请求参数
  • prompt string 必需
    prompt
  • negative_prompt string 可选
    negative prompt
  • guidance_scale float 可选
    Controls how strongly the model follows the text prompt. Higher values make the output more faithful to your prompt but can reduce creativity. Acceptable range: 0.0–20.0. Default: 5.0
    
  • aspect_ratio string 可选
    Sets the width-to-height proportion of the generated image
    default: 9:16
    params: "1:1","3:4","4:3","4:7","7:4","9:16","16:9"
  • sampling_steps int 可选
    Number of diffusion (denoising) iterations. More steps yield finer details but increase generation time and resource use. Choose between 0–50. default: 20
  • sampling_method string 可选
    The algorithm used during each denoising step. Common options include Euler, DDIM, and LMS, each offering different trade-offs between speed, quality, and creative variation.
    default: DPM++ SDE Karras
    params: "Euler a", "Euler", "DDIM", "DPM++ 2M Karras", "DPM++ SDE Karras"
  • random_seed string 可选
    Integer seed for the random number generator, ensuring reproducible outputs when set. Omitting it or using –1 lets the system pick a random seed.
请求示例CURL
curl https://api.briskapi.com/model/flux \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {API key}" \
-d '{
  "prompt":"A highly detailed, Studio Ghibli–inspired digital painting of Totoro standing beneath a massive, ancient oak tree in a sun-dappled forest clearing. The scene features soft, warm lighting filtering through lush green leaves, gentle mist in the background, and finely textured bark and foliage. Rendered in ultra-realistic style with vibrant, yet pastel-toned colors, volumetric light rays, and a sense of whimsical magic.",
}'
返回示例
{
	"src": "https://.....png"
}
返回字段说明
  • src string
    Image src URL