OyeFilmy Logo
personFreeUpgrade
bolt0cr
U

Image generation API

Image Generation

Generate images using 190+ AI models from a single endpoint. All image models use POST /api/generate with different modelKey values.

Endpoint

POST /api/generate

Request body

ParameterTypeRequiredDescription
modelKeystringModel identifier (see model families below)
promptstringText description of the image to generate
aspectRatiostringAspect ratio: "1:1", "16:9", "9:16", "4:3", "3:4"
inputUrlstringURL of input image (for image-to-image / edit models)
styleRefstring | string[]Style reference image URL(s)
charRefstring | string[]Character reference image URL(s)
refImageUrlsstring[]General reference images
imageQualitystring"Low", "Medium", "High"
qualitystring"HD", "1080p", "4K"
brandIdstringBrand DNA ID to bake brand guidelines into the prompt

Response

{
  "success": true,
  "predictionId": "pred_abc123...",
  "status": "processing",
  "model": "openai/gpt-image-2/text-to-image",
  "creditCost": 5,
  "estimatedTime": "~15s"
}

Quick example

curl -X POST https://api.oyefilmy.com/api/generate \
  -H "Authorization: Bearer of_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "modelKey": "gpt",
    "prompt": "A photorealistic portrait of a woman with golden hour lighting, shallow depth of field"
  }'

Model families

Choose a model family to see all available model keys and their capabilities:

Poll for results

GET /api/generate/status/:predictionId

# Success response:
{
  "status": "completed",
  "outputUrl": "https://oyefilmy-assets.s3.amazonaws.com/.../output.png",
  "outputType": "image",
  "completedAt": "2026-07-27T14:00:00.000Z"
}