logo

API Documentation

Generate high-quality visuals from text prompts programmatically.

Authentication

Authenticate requests via the x-api-key header.

Parameters

promptStringRequired

The text description of the image you want to generate. Be specific for better results.

sizeString

Output resolution. Defaults to 1024x1024.

Response Object

  • idUnique identifier for the generated asset.
  • imgUrlPublic CDN URL to access the image.
  • rawbase64Base64 encoded image data string.

Request

curl --request POST \
  --url https://api.flowdira.com/v1/img \
  -H "x-api-key: $API_KEY" \
  --data '{
    "prompt": "futuristic city with neon lights",
    "size": "1024x1024"
  }'

Response

200 OK
application/json
{
  "data": {
    "id": "gen_123456789",
    "imgUrl": "https://cdn.flowdira.com/images/gen_123456789.png",
    "rawbase64": "iVBORw0KGgoAAAANSUhEUgAAAAUA..."
  }
}