Skip to main content
POST
/
projects
/
{project_reference}
/
images
/
generate
Generate Project Images
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
}

Authorizations

Authorization
string
header
required

Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.

Path Parameters

project_reference
string
required

Project ID or slug

Body

application/json
prompt
string
required

Text description of the desired image (max 1000 characters)

Maximum string length: 1000
count
number
default:1

Number of images to generate (1-10, default: 1)

Required range: 1 <= x <= 10
seed
number

Random seed for reproducible generation

Required range: 1 <= x <= 999999

Response

Images generated successfully

sources
string[]
required

Array of CDN URLs for generated images

count
number
required

Number of images successfully generated