Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
通过 Starrise AI API 调用 Black Forest Labs FLUX.1.1 [pro] 文生图模型。
size
1024x1024
seed
jpeg
png
curl https://ai.alad.com/v1/images/generations \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "flux-1.1-pro", "prompt": "一只可爱的北极熊宝宝", "size": "1024x1024" }'
import requests response = requests.post( "https://ai.alad.com/v1/images/generations", headers={"Authorization": "Bearer YOUR_API_KEY"}, json={ "model": "flux-1.1-pro", "prompt": "一只可爱的北极熊宝宝", "size": "1024x1024" } ) result = response.json() # result["data"][0]["b64_json"] 包含 Base64 编码的图片
model
flux-1.1-pro
prompt
n
1
output_format
data[].b64_json
created