AI Gateway · Overview
Docs / AI Gateway

Overview

One OpenAI-compatible endpoint over hundreds of hosted models plus your own GPU model servers — add your provider key and start instantly, no cold start.

The AI Gateway is a single, OpenAI-compatible API in front of hosted model providers. Bring your own OpenAI / Anthropic / Gemini key, and the gateway forwards your requests to that provider — instantly, with no GPU to provision. It is a separate feature from your GPU Model Servers, which keep their own pages.

Everything lives under https://api.cloud.nevtan.com/api/v1/gateway and authenticates with a NevTan API key: Authorization: Bearer nvt-live-.... Create keys under API Keys.

Why a gateway

  • Instant — a hosted model is a config record, not a server. No weights to download, no vLLM to boot.
  • One wire format — callers always speak OpenAI Chat Completions; the gateway translates Anthropic for you.
  • Switch models by string — change model from openai/gpt-4o to anthropic/claude-sonnet-5 and nothing else.
  • Separate from your GPUs — the gateway routes only to hosted providers; your GPU model servers remain their own feature.

Get started from the console

The AI Gateway Overview is your starting point. It has a Create Key button, ready-to-copy code snippets (with AI SDK, Chat Completions, and Anthropic Messages tabs), the providers you can reach, and your usage at a glance.

  1. 1
    Open the AI Gateway
    From the console sidebar, open AI Gateway → Overview.
  2. 2
    Create your first key
    Click Create Key on the Get Started panel — it takes you to API Keys to make an nvt-live-... key.
  3. 3
    Copy a starter snippet
    Switch the code card between AI SDK, Chat Completions, and Anthropic Messages, and copy the one that matches your stack.
  4. 4
    Watch your usage
    The Usage panel below shows your AI-credit spend and a per-model breakdown as calls come in.
The AI Gateway Overview Get Started panel and code-snippet card
The Overview: Create Key on the left, copy-ready snippets (AI SDK / Chat Completions / Anthropic Messages) on the right.

Usage & spend

The gateway tracks what you spend and how many tokens you use, broken down by model. The Usage panel on the gateway Overview shows your total AI-credit spend, plus a per-model table of requests, tokens, and cost.

Base: https://api.cloud.nevtan.com/api/v1
GET/gateway/usageYour usage summary — total spend plus a by-model breakdown.

The response includes total_spend_usd and a by_model array, each entry carrying model, requests, tokens, and spend_usd.

The Overview Usage panel with the AI Credits Spent tile and Spend by model table
Your AI-credit spend and a per-model breakdown of requests, tokens, and cost.

Explore

Managed mode vs. BYOK billing
Gateway usage run in managed mode is billed to your prepaid AI credit balance — that is what the Usage panel and /gateway/usage report. With Bring Your Own Key you instead pay the upstream provider directly. Your own GPU model servers are billed per GPU-hour (see GPU pricing).