fal.ai icon

fal.ai

Generate AI content using fal.ai models and workflows

Model → Generate Media

AI-generated

Summary

Generate media content such as images, videos, or audio using a specified fal.ai AI model by submitting model-specific parameters and optionally waiting for the generation to complete.

Inputs

  • Model (required) — Select the fal.ai model to use either from a searchable list or by entering its ID directly.
  • Model Parameters — Provide model-specific parameters as key-value pairs, using JSON format for complex values, to customize the media generation.
  • Options — Configure generation behavior, including whether to wait for completion, the poll interval for checking status, and the maximum wait time in seconds.

Output shape

a single JSON object containing the request's status and result data

If 'Wait for Completion' is enabled, the output includes the completed generation result with details and model info. If disabled, returns immediately with request ID, status URL, response URL, and cancel URL. The node handles polling until generation completes or times out according to configured options, throwing errors if generation fails or times out.

Examples

Example 1: Generate an image using a selected fal.ai model

Select 'Generate Media' operation, choose a model by searching or ID, set parameters like prompt text or style, optionally adjust options such as not waiting for completion, then execute the node to receive either immediate request status or completed media output.

Links

Discussion