Developer guide

OpenAI-compatible API gateway for developers

InferGate gives developers one compatible endpoint for API key management, model routing, usage visibility, and prepaid credits. New accounts currently include $20 in trial credits.

When this fits

  • You already use OpenAI-style SDKs and want to change the base URL instead of rewriting integration code.
  • You need one dashboard for API keys, usage records, and prepaid API credits.
  • You are testing multiple enabled models before choosing a production route.
  • You want a simple trial path before committing production spend.

Why developers need an API gateway

AI product teams often need credential isolation, cost visibility, model routing, and clear recharge workflows. A gateway gives the application one integration point while keeping operational controls in the dashboard.

How InferGate connects

Create an account, get an API key from the dashboard, then configure your compatible client with the InferGate base URL.

Base URL

https://api.useinfergate.com/v1

curl example

curl https://api.useinfergate.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_INFERGATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o-mini",
    "messages": [
      {"role": "user", "content": "Hello from InferGate"}
    ]
  }'

JavaScript example

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.INFERGATE_API_KEY,
  baseURL: "https://api.useinfergate.com/v1"
});

const completion = await client.chat.completions.create({
  model: "gpt-4o-mini",
  messages: [{ role: "user", content: "Hello from InferGate" }]
});

console.log(completion.choices[0]?.message?.content);

Python example

from openai import OpenAI
import os

client = OpenAI(
    api_key=os.environ["INFERGATE_API_KEY"],
    base_url="https://api.useinfergate.com/v1",
)

completion = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello from InferGate"}],
)

print(completion.choices[0].message.content)

Pricing and trial credits

New accounts currently include $20 in trial credits. After testing, switch to prepaid API credits when ready. Final pricing depends on the selected model, provider route, account settings, and dashboard configuration.

FAQ

Is InferGate run by OpenAI?

No. InferGate is an independent API gateway. OpenAI-compatible means compatible request patterns and client configuration.

Do I need to rewrite my app?

Usually no. Compatible clients commonly need a new baseURL and an InferGate API key.

Are all models always available?

No. Model availability depends on account settings, provider availability, compliance controls, rate limits, and dashboard configuration.

Is usage uncapped?

No. Usage is limited by credits, account status, model availability, rate limits, and operational controls.