Routes to Baidu's image generation service. Bills per image. Does not support SSE streaming.
Supported models
Non-streaming generation
curl -X POST https://ai.win10030.com/image/v1/generations \
-H 'Authorization: Bearer sk-xxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"model": "stable-diffusion-xl",
"prompt": "futuristic city at sunset, cinematic lighting",
"size": "1024x1024",
"upstream_options": { "n": 2, "negative_prompt": "blurry, low quality", "steps": 30, "guidance": 7.5, "seed": 42 }
}'
Qianfan bills per image only. Usage includes only
imagesfield.
Streaming limitation
Qianfan does not support SSE streaming. Passing stream: true returns an error:
curl -N -X POST ... -d '{ "model": "stable-diffusion-xl", "stream": true, "prompt": "..." }'
# → data: {"error":{"message":"Qianfan image generation does not support streaming","type":"upstream_error"}}
Common upstream_options
| Parameter | Description |
|---|---|
n | Number of images |
negative_prompt | Negative prompt |
steps | Inference steps |
guidance | Guidance scale |
seed | Random seed |
watermark | Toggle watermark |