OpenRouter is a tool that helps you integrate multiple NLP APIs in your application. It provides a single API endpoint that you can use to call multiple NLP APIs.

You can follow their documentation here:

Just replace the following URLs in their documentation with the ones below: ->

and then depending on how you are calling openrouter, you can add the following header

Helicone-Target-Url: ""

now you are integrated with OpenRouter and Helicone in 2 lines of code!

For more information on how to use headers, see Helicone Headers docs.


fetch("", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${OPENROUTER_API_KEY}`,
    "Helicone-Target-Url": "",
    "Helicone-Auth": `Bearer ${HELICONE_API_KEY}`,
    "HTTP-Referer": `${YOUR_SITE_URL}`, // Optional, for including your app on rankings.
    "X-Title": `${YOUR_SITE_NAME}`, // Optional. Shows in rankings on
    "Content-Type": "application/json",
  body: JSON.stringify({
    model: "openai/gpt-3.5-turbo", // Optional (user controls the default),
    messages: [{ role: "user", content: "What is the meaning of life?" }],