curl --request POST \ --url https://api.apimart.ai/v1/images/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "gemini-3-pro-image-preview", "prompt": "A bamboo forest path under moonlight", "size": "1:1", "n": 1, "resolution": "1K" }'
{ "code": 200, "data": [ { "status": "submitted", "task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K" } ] }
Authorization: Bearer YOUR_API_KEY
"gemini-3-pro-image-preview"
1:1
2:3
3:2
3:4
4:3
4:5
5:4
9:16
16:9
21:9
1
1K
2K
4K
Show Detailed field description
"https://example.com/image.jpg"
data:image/{format};base64,{base64data}
"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABg..."
data:image/jpeg;base64,
Show Properties
submitted