AI

AI integration · 10 node(s).

00Overview

Every field below is exactly what you see in the Flomation editor. Fields marked ● live picker let you choose from a list pulled live from your account — no IDs to look up.

01Connecting AI

Add your credentials as a Flomation environment secret, then pick them in each node. The connection fields are:

FieldTypeDetails
API KeysecretRequiredsk-ant-...
ModelsecretClaude Sonnet 4.6, Claude Haiku 4.5, Claude Opus 4.6
i
Pick an Environment on your flow (Flow Settings → Environment) so the secret resolves. Secret fields never show the value — they reference ${secrets.your_secret}.

02Anthropic

Anthropic Prompt

ai/anthropic · Action

Send a prompt to the Anthropic Messages API and return the response

FieldTypeDetails
API KeysecretRequiredsk-ant-...
Modelsecretchoices: Claude Sonnet 4.6, Claude Haiku 4.5, Claude Opus 4.6
System PrompttextYou are a helpful assistant.
PrompttextRequiredWhat would you like to ask?
Max Tokensinteger2048
Temperaturestring0.7
Conversation Historyobject${conversation_history}
Streaming (fires response per sentence for low-latency voice)boolean
Tool Definitions (JSON)text[{"name":"web_search","description":"Search the web","input_schema":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}]

Returns: response, response_mode, should_respond, model, input_tokens, output_tokens, stop_reason, tool_calls_count, success, error

03Gemini

Gemini Prompt

ai/gemini · Action

Send a prompt to Google's Gemini API and return the response

FieldTypeDetails
API KeysecretRequiredAIza...
Modelsecretchoices: Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.5 Flash Lite, Gemini 2.0 Flash, Gemini 2.0 Flash Lite
System PrompttextYou are a helpful assistant.
PrompttextRequiredWhat would you like to ask?
Max Tokensinteger8192
Temperaturestring0.7
Conversation Historyobject${conversation_history}
Tool Definitions (JSON)text[{"name":"web_search","description":"Search the web","parameters":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}]

Returns: response, model, prompt_tokens, completion_tokens, total_tokens, should_respond, tool_calls_count, success, error

Gemini Image

ai/gemini_image · Action

Generate an image from a text prompt using Gemini 2.5 Flash Image

FieldTypeDetails
API KeysecretRequiredAIza...
Modelsecretchoices: Gemini 2.5 Flash Image (Nano Banana), Gemini 2.0 Flash Preview Image Generation
PrompttextRequiredA photorealistic image of a cat wearing a top hat, studio lighting.

Returns: tool_result, image_blob, image_base64, mime_type, model, success, error

Gemini Text-to-Speech

ai/gemini_tts · Action

Generate audio from a text prompt using Gemini's TTS preview

FieldTypeDetails
API KeysecretRequiredAIza...
Modelsecretchoices: Gemini 2.5 Flash Preview TTS, Gemini 2.5 Pro Preview TTS
TexttextRequiredSay cheerfully: hello, world!
Voicesecretchoices: Kore (firm, default), Puck (upbeat), Charon (informative), Fenrir (excitable), Aoede (breezy), Leda (youthful), Orus (firm, deeper), Zephyr (bright)

Returns: tool_result, audio_blob, audio_base64, mime_type, voice, model, success, error

Gemini Video

ai/gemini_video · Action

Generate a short video clip from a text prompt using Google's Veo 2 or Veo 3

FieldTypeDetails
API KeysecretRequiredAIza...
Modelsecretchoices: Veo 3.1 Fast (preview, with audio, cheapest), Veo 3.1 (preview, with audio, best quality), Veo 3.1 Lite (preview, with audio, lowest cost), Veo 2 (legacy, video only)
PrompttextRequiredPhotorealistic flythrough over snowy Welsh mountains at golden hour, drone footage.
Input Image (flo:blob token, optional — enables image-to-video)textflo:blob:abc...
Aspect ratio for the generated video. Set to '9:16' for portrait/vertical videos (TikTok, Instagram Reels, Instagram Stories, YouTube Shorts, mobile-first viewing). Set to '16:9' for landscape/horizontal (default, YouTube, cinematic). Veo does NOT support square (1:1). If the user mentions a vertical format, mobile-first, social shorts, or any portrait orientation, set this to '9:16'.textchoices: 16:9 (landscape), 9:16 (portrait — TikTok / Reels / Stories)
Duration (seconds, 5–8 — model-dependent)integer8
Negative Prompt (things to avoid, optional)textblurry, low quality
Whether the generated video may include people. Set to 'allow_all' for any people (children + adults — Veo 2 only, downgraded to 'allow_adult' on Veo 3.1 in EU/UK/CH/MENA). Set to 'allow_adult' to allow adults only (the safest universal choice; works on every model and region). Set to 'dont_allow' to exclude people entirely (use for scenery, products, abstract motion). If the user mentions people, characters, faces, or human subjects in the prompt and doesn't object to people, set this to 'allow_adult'.textchoices: Allow adults (default — works on every model and region), Allow all (Veo 2 only outside EU/UK; downgrades on Veo 3.1 in EU/UK), Don't allow people (scenery / products / abstract)
Seed (optional, for reproducibility)integer12345

Returns: tool_result, video_blob, video_base64, mime_type, model, operation_name, success, error

04Groq

Groq Prompt

ai/groq · Action

Send a prompt to the Groq Chat Completions API and return the response

FieldTypeDetails
API KeysecretRequiredgsk_...
Modelstringllama-3.3-70b-versatile — choices: Llama 3.3 70B Versatile, Llama 3.1 8B Instant, Llama 4 Scout 17B, GPT-OSS 120B, GPT-OSS 20B, Qwen 3 32B, Groq Compound, Groq Compound Mini
System PrompttextYou are a helpful assistant.
PrompttextRequiredWhat would you like to ask?
Max Tokensinteger2048
Temperaturestring0.7
Conversation Historyobject${conversation_history}
Tool Definitions (JSON)text[{"type":"function","function":{"name":"web_search","description":"Search the web","parameters":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}}]

Returns: response, model, prompt_tokens, completion_tokens, total_tokens, should_respond, tool_calls_count, success, error

05Ollama

Ollama Prompt

ai/ollama · Action

Send a prompt to a model running on your own Ollama server and return the response

FieldTypeDetails
Ollama Server URLstringRequiredhttp://localhost:11434
API KeysecretOnly needed behind an authenticated proxy
ModelstringRequired · ● live pickerllama3.2 — choices: Llama 3.2, Llama 3.1 8B, Qwen 3, Gemma 3, Mistral, Phi-4, DeepSeek-R1, Qwen 2.5 Coder, Llama 3.2 Vision, LLaVA (Vision)
System PrompttextYou are a helpful assistant.
PrompttextRequiredWhat would you like to ask?
Conversation Historyobject${conversation_history}
Max Tokensinteger1024 (-1 = unlimited)
Temperaturestring0.8
Response Formatstringchoices: Text, JSON
Thinkingstringchoices: Model Default, On, Off, On (Low Effort), On (Medium Effort), On (High Effort)
Advanced Optionsstringchoices: Hide, Show
Top Pstring0.9
Top Kinteger40
Min Pstring0.0
SeedintegerSet for reproducible output
Stop SequencesstringComma-separated, e.g. ###,END
Keep Alivestring5m
Context Lengthinteger4096
Repetition Penaltystring1.1 (1.0 = off)
Repeat Windowinteger64 (0 = off, -1 = context length)
Frequency Penaltystring0.0
Presence Penaltystring0.0
Prompt Batch Sizeinteger512
GPU Layersinteger-1 (auto)
Main GPUinteger0
CPU Threadsinteger0 (auto)
Low VRAM Modeboolean
Lock Model in RAM (mlock)boolean
Memory-Map Model (mmap)boolean
Penalize Newlinesboolean
Tool Definitions (JSON)text[{"type":"function","function":{"name":"web_search","description":"Search the web","parameters":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}}]

Returns: response, thinking, model, prompt_tokens, completion_tokens, total_tokens, should_respond, tool_calls_count, success, error

06Openai

OpenAI Prompt

ai/openai · Action

Send a prompt to the OpenAI Chat Completions API and return the response

FieldTypeDetails
API KeysecretRequiredsk-...
Modelsecretchoices: GPT-4o, GPT-4o Mini, GPT-4.1, GPT-4.1 Mini, GPT-4.1 Nano, o3, o3 Mini, o4 Mini
System PrompttextYou are a helpful assistant.
PrompttextRequiredWhat would you like to ask?
Max Tokensinteger2048
Temperaturestring0.7
Conversation Historyobject${conversation_history}
Tool Definitions (JSON)text[{"type":"function","function":{"name":"web_search","description":"Search the web","parameters":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}}]

Returns: response, model, prompt_tokens, completion_tokens, total_tokens, should_respond, tool_calls_count, success, error

07Openrouter

OpenRouter Prompt

ai/openrouter · Action

Send a prompt to any AI model through the OpenRouter unified API and return the response

FieldTypeDetails
API KeysecretRequiredsk-or-v1-...
Modelstring● live pickeropenai/gpt-5.4-mini — choices: OpenAI GPT-5.4, OpenAI GPT-5.4 Mini, Anthropic Claude Sonnet 5, Anthropic Claude Opus 4.8, Anthropic Claude Haiku 4.5, Google Gemini 3.1 Pro Preview, Google Gemini 2.5 Flash, Meta Llama 4 Maverick, DeepSeek V3.2, Qwen3 Max, Mistral Large 2512, GPT-OSS 20B (Free)
System PrompttextYou are a helpful assistant.
PrompttextRequiredWhat would you like to ask?
Max Tokensinteger2048
Temperaturestring0.7
Top Pstring1.0
Frequency Penaltystring0.0 (-2.0 to 2.0)
Presence Penaltystring0.0 (-2.0 to 2.0)
Response Formatstringchoices: Text, JSON
Conversation Historyobject${conversation_history}
Tool Definitions (JSON)text[{"type":"function","function":{"name":"web_search","description":"Search the web","parameters":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}}]

Returns: response, model, provider, prompt_tokens, completion_tokens, total_tokens, cost, should_respond, tool_calls_count, success, error

08Openwebui

Open WebUI Prompt

ai/openwebui · Action

Send a prompt to an Open WebUI (or any OpenAI-compatible) Chat Completions endpoint and return the response

FieldTypeDetails
EndpointstringRequiredhttps://openwebui.example.com
API KeysecretRequiredsk-...
ModelstringRequiredllama3.1:8b
System PrompttextYou are a helpful assistant.
PrompttextRequiredWhat would you like to ask?
Max Tokensinteger2048
Temperaturestring0.7
Conversation Historyobject${conversation_history}
Tool Definitions (JSON)text[{"type":"function","function":{"name":"web_search","description":"Search the web","parameters":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}}]

Returns: response, model, prompt_tokens, completion_tokens, total_tokens, should_respond, tool_calls_count, success, error

09Notes & Limitations

Behaviours and constraints worth knowing before you build with these nodes.