Fal icon

Fal

Interact with fal.ai AI model APIs for image, video, speech generation, and LLM text completion

Actions5

Run LLM → Generate Text

AI-generated

Summary

Generate text completions using fal.ai LLM models.

Inputs

  • prompt (required) — The prompt to be used for the chat completion
  • model — The LLM provider to use
  • llmModel (required) — Select a model to use for text generation. Charged based on actual token usage.
  • customModel (required) — Enter the custom model name (e.g., openai/gpt-4, anthropic/claude-3-opus, cohere/command-r-plus)
  • additionalOptions — Additional generation parameters.

Output shape

Main

The generated text response is passed through as an n8n workflow item.

Examples

Example 1: Generate a short story about an AI learning to dream.

Set prompt to the desired text, select a model via llmModel, and optionally adjust temperature or max_tokens.

Discussion