AI GPT Router (OpenRouter)

The AI GPT Router node reaches models from OpenAI, Anthropic, Google, Grok, Qwen, DeepSeek, Perplexity, and more through OpenRouter, in a single node.
Plug and Play (PnP) billing
This is a PnP (Plug and Play) node: Latenode meters usage and charges PnP tokens on top of scenario CPU seconds (1 PnP token = $1). You do not add your own API key on this node. Per-model prices are shown in the node settings where you pick the model.
Your own API key
To use your provider account and key instead, add the Custom LLM Connection node and a connection with the provider Base URL (the key is stored in the connection).
Getting structured output
For normal use, enter a prompt and run the node; the reply is plain text.
To feed the next nodes with structured data (extract fields, classify, parse forms), turn on Structured Output and tell the model in the prompt to answer in JSON.
Simple: toggle plus prompt
Enable Structured Output and add JSON instructions to the prompt.


Example (receipt):
You are given a receipt text. Extract the store name, purchase date, list of items with prices, and the total amount.
Receipt:
{receipt_text}
Respond in JSON using this format:
{
"store": "...",
"date": "...",
"items": [
{ "name": "...", "price": 0.00 }
],
"total": 0.00
}
Advanced: Output JSON Schema
For fixed field names and types, fill Output JSON Schema. The model follows it strictly.
Schema format differs by node
For OpenRouter and ChatGPT, the schema uses a name wrapper. For Anthropic Claude, the schema starts with "type": "object" with no wrapper. Copying a schema between nodes without adjusting the format can error.
Fields
Setting up App Nodes
How file and folder pickers work in app nodes—loading, search, and labels.
Anthropic Claude
Prompt Claude models in scenarios with Latenode PnP billing and no API key.
Need Help? Ask the community
If something on this page is missing or unclear, post on the Latenode community forum. Our team and other users usually reply quickly.