Use rawroute with n8n. Chat, Nano Banana 2, Veo 3.1 & Kling 4.0 in one workflow.
n8n AI Agent and HTTP Request nodes work out-of-the-box with rawroute by pointing a single OpenAI API credential to https://api.rawroute.dev/v1. You cut LLM automation bills by 50–70% and can chain Claude scripts → Nano Banana 2 keyframes ($0.035) → Veo 3.1 ($0.094/s) or Kling 4.0 videos on one balance—with full refunds on failed renders.
Quick setup for n8n
- In n8n, create an OpenAI API credential and set Base URL to https://api.rawroute.dev/v1.
- Paste your rawroute API key and pick any official model ID (e.g. gpt-6.2-sol or claude-sonnet-5-5).
- Optional: import our 3 prebuilt media automation JSON workflows from /docs/starters.
# 1. OpenAI Credential (for AI Agent / Basic LLM Chain)
Base URL: https://api.rawroute.dev/v1
API Key: rr_live_your_key_here
Model: gpt-6.2-sol # or claude-sonnet-5-5, gemini-4-argon
# 2. HTTP Request Node (Video Generation)
POST https://api.rawroute.dev/v1/videos
Header: Authorization: Bearer {{$env.RAWROUTE_API_KEY}}
Body: {"model":"veo-3.1","prompt":"Aerial shot over misty fjords","seconds":8,"resolution":"720p"}Recommended models for n8n
| Model | Model ID | Official | OpenRouter +5.5% | rawroute (0%) | Providers |
|---|---|---|---|---|---|
| GPT-6.2 Sol | gpt-6.2-sol | $2.11 / $10.55 | $0.60 / $3.00 | 3 | |
| Claude Sonnet 5.5 | claude-sonnet-5-5 | $2.11 / $10.55 | $1.00 / $5.00 | 4 | |
| Nano Banana 2 | gemini-3.1-flash-image | — | $0.035 | 4 | |
| Veo 3.1 | veo-3.1 | — | $0.094–$0.141 | 3 |
When NOT to use rawroute
- — If an n8n node hardcodes vendor-proprietary REST paths outside /v1, /v1/messages, or /v1beta, call rawroute via the standard HTTP Request node instead.
FAQ
Are failed n8n video generation jobs billed?
No. Failed or timed-out video tasks on /v1/videos are automatically refunded in full to your rawroute balance.