cURL
curl --request POST \ --url https://app.firmware.ai/api/v1/images/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "<string>", "prompt": "<string>", "n": 123, "size": "<string>", "quality": "<string>", "response_format": "<string>" } '
{ "created": 1709123456, "data": [ { "url": "https://...", "revised_prompt": "A photorealistic mountain landscape at sunrise with golden light" } ] }
Generate images from a text prompt
Authorization
curl https://app.firmware.ai/api/v1/images/generations \ -H "Authorization: Bearer $FIRMWARE_API_KEY"
dall-e-3
imagen-4
imagen-4-ultra
gemini-3-pro-image-preview
1
1024x1024
1024x1792
1792x1024
standard
hd
url
b64_json
Show Image object
response_format
curl https://app.firmware.ai/api/v1/images/generations \ -H "Authorization: Bearer $FIRMWARE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "dall-e-3", "prompt": "A photorealistic mountain landscape at sunrise", "size": "1024x1024" }'