---
title: "n8n + rawroute: Cheap LLM, Image & Video API"
canonical: "https://rawroute.dev/integrations/n8n"
lang: "en"
last_verified: "2026-11-28"
description: "Connect n8n OpenAI credentials to https://api.rawroute.dev/v1 for 50–70% cheaper LLMs plus ready-to-import Veo 3.1, Kling 4.0, and Nano Banana 2 media workflows."
---

# Use rawroute with n8n.

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.

## Setup Steps

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.

### n8n · OpenAI Credential & Video HTTP Node

```text
# 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"}
```

## 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.
