Skip to main content
The built-in generate action produces text or schema-validated structured data. Omit account to use the platform Vercel AI Gateway credential and consume one generation from the organization’s monthly allowance. Customer-managed provider accounts do not consume this allowance. The default model is openai/gpt-4.1-nano.

Example

automations/recipe.automation.ts

Inputs

Generation fields accept compatible signals. The schema and account selection are static authoring inputs. Model suggestions use the selected account’s provider enum while retaining a string fallback for newly released IDs.

Output

Without a schema, output is Signal<string>. With a schema, output is a signal of that Standard Schema’s inferred output type. The result also exposes generated text, token usage, finishReason, rawFinishReason, reasoningText, warnings, provider metadata, and response metadata.

Provider accounts

Customer-managed API-key accounts are available for Anthropic, Cerebras, Cohere, DeepInfra, DeepSeek, Fireworks AI, Google Generative AI, Groq, Hugging Face, Mistral AI, OpenAI, OpenRouter, Perplexity, Together AI, Vercel AI Gateway, and xAI. Connect the credentials with automate accounts, then import the provider helper and pass a named account reference. API keys do not appear in automation code or signals.
automations/provider-models.automation.ts
Omitting model uses the selected account’s default: