Generates an image from a text prompt. This endpoint is always async — it returns a jobId immediately and the actual generation happens on a background queue. Poll GET /jobs/:id until status is completed, then read result.url.
The completed image is automatically uploaded to R2 storage and saved to the team’s asset library.
Authentication
Bearer token. Bearer <api-key-or-jwt>.
Body
Text description of the image to generate.
model
string
default:"fal:flux-schnell"
Model identifier in provider:model format. Use GET /models to list options.
Aspect ratio for the generated image, e.g. "9:16", "1:1", "16:9".
URL of a reference image for image-to-image generation.
How closely to follow the reference image (0-1). Only used when referenceImageUrl is provided.
If provided, the completed image is automatically appended to this influencer’s image array. Survives the user navigating away mid-generation.
Polling pattern
# 1. Submit
curl -X POST https://api.supapost.so/generate/image \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "sunset over tokyo", "aspectRatio": "9:16"}'
# → 202 { "jobId": "0b1e...", "status": "pending" }
# 2. Poll every 1-2 seconds
curl https://api.supapost.so/jobs/0b1e... \
-H "Authorization: Bearer $KEY"
# → { "status": "processing", ... }
# → { "status": "completed", "result": { "url": "https://cdn.supapost.so/...jpg" } }
{
"jobId": "0b1e9a5f-1234-4d8c-b2a0-...",
"status": "pending"
}