cURL
curl --request POST \ --url https://api.veryfront.com/projects/{project_reference}/images/generate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "prompt": "A futuristic cityscape at sunset with flying cars", "count": 2 } '
{ "sources": [ "<string>" ], "count": 123 }
Generate AI images using Cloudflare AI with Flux Schnell model. Images are automatically uploaded to CDN.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Text description of the desired image (max 1000 characters)
1000
Number of images to generate (1-10, default: 1)
1 <= x <= 10
Random seed for reproducible generation
1 <= x <= 999999
Images generated successfully
Array of CDN URLs for generated images
Number of images successfully generated