如何使用 Qwen 3.0 文生图 API
- 编写提示词:提供场景、主体、光照和文字排版的详细描述(最多 800 个字符)。
- 设置分辨率和画面比例:选择
1K 或 2K 分辨率,以及所需的画面比例(16:9、1:1、9:16、21:9 等)。
- 可选地启用提示词扩展:
prompt_extend=true 会优化简单提示词,以获得更高细节。
- 提交任务:向
/api/v1/qwen3-text-to-image 发送 POST 请求。
curl -X POST "https://api.muapi.ai/api/v1/qwen3-text-to-image" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Create a premium realistic fashion editorial photograph of a young woman standing in front of a refined building.",
"resolution": "1K",
"image_size": "16:9",
"prompt_extend": true
}'