The generation system in Prompt Bank lets you queue AI image and video creation jobs with a single API call. You describe what you want, choose a model, and the API dispatches the job to fal.ai on your behalf. When the model finishes, the output is saved directly to your vault — no manual download required.
Generations are asynchronous. The response to POST /api/v1/generations confirms that your job was queued — it does not contain the finished image or video. Use the statusUrl from the response to track progress, and expect the output to appear in your vault once the job completes.
How generations work
Queuing a generation follows these steps:
- Queue the job — Send
POST /api/v1/generations with your prompt, model, and any generation parameters. The API returns HTTP 202 Accepted with a clientJobId, a falRequestId, and a statusUrl.
- Job runs on fal.ai — Prompt Bank forwards the request to the fal.ai inference infrastructure. Processing time varies by model and content type — images typically finish in seconds; videos may take longer.
- Output saved to your vault — Once the model finishes, Prompt Bank asynchronously saves the generated media to the vault you specified (or your General vault if you didn’t supply a
vaultId). The asset becomes queryable via the prompts and vault endpoints.
Supported generation types
Key parameters
Generation response
A successful POST /api/v1/generations returns HTTP 202 Accepted with the following JSON envelope:
Where output goes
Generated media is saved asynchronously to the vault identified by the vaultId you included in the request. If you omit vaultId, the output lands in your General vault. Each output is stored as a prompt entry so you can retrieve, share, or fork it like any other prompt. Because saving is asynchronous, the asset may not appear immediately after the statusUrl reports completion — allow a brief moment for the vault to update.
Example request and response
Next steps
See the Generate Media guide for complete examples covering image-to-image, video generation, batch jobs, and how to track your outputs.