What do you want to automate

with OpenRouter and n8n.io?

Prompt, edit and deploy AI agents that connect to OpenRouter, n8n.io and 2,500+ other apps in seconds.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Retrieve Available Models with the OpenRouter API

Returns a list of models available through the API. See the documentation

 
Try it
Send Chat Completion Request with the OpenRouter API

Send a chat completion request to a selected model. See the documentation

 
Try it
Send Completion Request with the OpenRouter API

Send a completion request to a selected model (text-only format) See the documentation

 
Try it
Integrate the OpenRouter API with the n8n.io API
Setup the OpenRouter API trigger to run a workflow which integrates with the n8n.io API. Pipedream's integration platform allows you to integrate OpenRouter and n8n.io remarkably fast. Free for developers.

Connect OpenRouter

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    openrouter: {
      type: "app",
      app: "openrouter",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://openrouter.ai/api/v1/parameters/openai/o1`,
      headers: {
        Authorization: `Bearer ${this.openrouter.$auth.api_key}`,
      },
      params: {
        provider: `OpenAI`,
      },
    })
  },
})

Overview of n8n.io

The n8n.io API provides a platform for automating workflows in a node-based structure that allows for integrations across various services and apps. Leveraging this API within Pipedream enables you to orchestrate complex operations, connect disparate systems, and trigger actions conditionally, transforming and passing data between services without writing extensive code.

Connect n8n.io

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    n8n_io: {
      type: "app",
      app: "n8n_io",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://${this.n8n_io.$auth.domain}.app.n8n.cloud/api/v1/workflows`,
      headers: {
        "Accept": `application/json`,
        "X-N8N-API-KEY": `${this.n8n_io.$auth.api_key}`,
      },
    })
  },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo