Skip to content
rawroute

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

  1. In n8n, create an OpenAI API credential and set Base URL to https://api.rawroute.dev/v1.
  2. Paste your rawroute API key and pick any official model ID (e.g. gpt-6.2-sol or claude-sonnet-5-5).
  3. 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

ModelModel IDOfficialOpenRouter +5.5%rawroute (0%)Providers
GPT-6.2 Solgpt-6.2-sol$2.00 / $10.00$2.11 / $10.55$0.60 / $3.003
Claude Sonnet 5.5claude-sonnet-5-5$2.00 / $10.00$2.11 / $10.55$1.00 / $5.004
Nano Banana 2gemini-3.1-flash-image$0.067—$0.0354
Veo 3.1veo-3.1$0.40—$0.094–$0.1413

When NOT to use rawroute

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.