InfluxionInfluxion

Quickstart

Make your first API call in minutes

Create an Account

Login or sign up for an Influxion account at influxion.io by clicking Sign In.

Get Your API Keys

Once you're logged in, you will need an Influxion API key:

  1. Navigate to AccountAPI Keys in the sidebar.
  2. Click Create API Key.
  3. Give your key a descriptive name.
  4. Copy the API key immediately (you won't be able to see it again).

Configure Your Environment

Set your API key as an environment variable:

export INFLUXION_API_KEY="your-api-key-here"

Or add it to your .env file:

INFLUXION_API_KEY=your-api-key-here

Make Your First Request

The Influxion gateway implements the OpenAI Chat Completions API.

The following examples use the well-known OpenAI GPT-5.1 model, but feel free to pick another from the Models page.

curl -X POST https://api.influxion.io/v1/chat/completions \
  -H "Authorization: Bearer $INFLUXION_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.1",
    "messages": [
      {
        "role": "user",
        "content": "Hello, world!"
      }
    ]
  }'
import os
import requests

response = requests.post(
    "https://api.influxion.io/v1/chat/completions",
    headers={
        "Authorization": f"Bearer {os.environ['INFLUXION_API_KEY']}",
        "Content-Type": "application/json"
    },
    json={
        "model": "openai/gpt-5.1",
        "messages": [
            {
                "role": "user",
                "content": "Hello, world!"
            }
        ]
    }
)

print(response.json())
const response = await fetch(
  "https://api.influxion.io/v1/chat/completions",
  {
    method: "POST",
    headers: {
      Authorization: `Bearer ${process.env.INFLUXION_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      model: "openai/gpt-5.1",
      messages: [
        {
          role: "user",
          content: "Hello, world!",
        },
      ],
    }),
  }
);

const data = await response.json();
console.log(data);

Next Steps