简体中文
curl --request POST \ --url https://api.ruxa.ai/api/v1/tasks/create \ --header 'Authorization: Bearer sk-xxxxxx' \ --header 'Content-Type: application/json' \ --data '{ "callBackUrl": "https://your-domain.com/api/callback", "input": { "prompt": "将这张照片变成一个摇头娃娃:头部稍微放大,保持面部准确,身体卡通化。[把它放在书架上]。", "image_input": ["https://example.com/your-image.png"], "aspect_ratio": "1:1", "resolution": "1k", "output_format": "png" }, "model": "google/nano-banana-pro" }'
{ "code": 200, "message": "success", "data": { "taskId": "task_gemini-2.5-flash-image_1766304530229_cf4dafd2" } }
基于 Gemini 2.5 Flash Image 的高级图像生成模型 API 接口
google/nano-banana-pro
gemini-2.5-flash-image
callBackUrl
Bearer sk-xxxxxx
隐藏 详细说明
Authorization: Bearer YOUR_API_KEY
application/json
https://your-domain.com/api/callback
隐藏 子属性
隐藏 示例
"将这张照片变成一个摇头娃娃:头部稍微放大,保持面部准确,身体卡通化。[把它放在书架上]。"
["https://example.com/your-image.png"]
1:1
2:3
3:2
3:4
4:3
4:5
5:4
9:16
16:9
21:9
auto
1k
2k
4k
png
jpg
隐藏 状态码说明
200
401
402
404
422
429
500