Generations and results
Every media request is asynchronous: you submit it, get an ID back and poll until it's ready.
Submit a request
POST https://api.wizzyflow.ai/api/v3/{model_id}, with the model's parameters as a JSON body. The model ID and the parameters it accepts are in the reference for each model.
curl https://api.wizzyflow.ai/api/v3/wizzyflow/flux-schnell \
-H "Authorization: Bearer $WIZZYFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "prompt": "A lighthouse at sunset, in watercolor" }'The response comes back immediately, with status created, the request ID in data.id and the price in data.price. At that point the price is reserved from your balance; it's only charged if the request completes.
Input files, such as an image to edit or audio to transcribe, are passed as public URLs in the parameters. Generation is always asynchronous: enable_sync_mode is accepted and ignored.
Poll for the result
GET https://api.wizzyflow.ai/api/v3/predictions/{id}/result, with the same key, every 2 seconds until the status is final.
| status | Meaning |
|---|---|
created | Received, waiting in the queue. |
processing | Generating. |
completed | Done: the outputs are in outputs and the amount charged is in price. |
failed | Failed: the reason is in error, and nothing is charged. |
timeout | Ran past the time limit: nothing is charged. |
{
"code": 200,
"message": "success",
"data": {
"id": "8f1c2e4a-…",
"model": "wizzyflow/flux-schnell",
"status": "completed",
"outputs": ["https://…/image.png"],
"error": "",
"price": 0.01,
"currency": "USD",
"created_at": "2026-10-29T14:02:11Z",
"completed_at": "2026-10-29T14:02:14Z",
"executionTime": 3000
}
}What's in outputs
outputs is always an array. Many models return more than one item per request: several images, two music tracks, a 3D model plus its textures. Read the whole array, not just the first item.
| Model type | Each item | Format |
|---|---|---|
Image | File URL | png, jpeg or webp, as requested |
Video | File URL | mostly mp4; some accept webm, mov or gif |
Audio | File URL | mostly mp3; some accept wav, flac and others |
3D | File URL | mostly glb; some accept obj, stl, fbx, usdz, ply |
Transcription and captioning | text or object | the text, or an object with segments and timestamps |
Moderation | object | the content assessment, as JSON |
LoRA training | File URL | the trained weights, ready to download |
Files are available for a limited time. Download anything you need to keep and store it yourself. Each model's reference lists its output type.
Retry without being charged twice
If the connection drops while submitting, you can't tell whether the request was created. To retry safely, send an Idempotency-Key header with a value of your own, up to 200 characters:
- The same value with the same body returns the same request, without creating a new one or charging again.
- The same value with a different body is rejected with
409.
History
POST https://api.wizzyflow.ai/api/v3/predictions lists your requests, newest first. All filters are optional.
| Field | What it does |
|---|---|
page, page_size | Page number and page size (up to 100). |
model | Only requests for one model. |
status | Only requests with one status. |
created_after, created_before | Only requests created between these dates (ISO 8601). |