G0I API quickstart

Go from zero to your first AI API call in under a minute. G0I is OpenAI-compatible, so if you have used the OpenAI API you already know how this works.

Step 1 — Get an API key

Create a free account at g0i.ai/register and copy your key from the API Keys page. Keys look like sk-.... No credit card needed to start.

Step 2 — Make your first request

The base URL is https://g0i.ai/v1. Here is a chat completion with curl:

curl https://g0i.ai/v1/chat/completions \
  -H "Authorization: Bearer $G0I_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-5.4","messages":[{"role":"user","content":"Hello"}]}'

Step 3 — Use the OpenAI SDK

Python:

from openai import OpenAI
client = OpenAI(api_key="$G0I_KEY", base_url="https://g0i.ai/v1")
resp = client.chat.completions.create(
    model="claude-opus-4-7",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

Node.js:

import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.G0I_KEY, baseURL: "https://g0i.ai/v1" });
const r = await client.chat.completions.create({
  model: "gpt-5.4",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(r.choices[0].message.content);

Step 4 — Switch models freely

Change the model field to any of 470+ models — GPT, Claude, Gemini, Llama, DeepSeek. Streaming, tool calling and vision all work. Browse the model catalog for exact model IDs.

Get your API key — start free →

Frequently asked questions

What is the API base URL?
https://g0i.ai/v1 — set this as the base_url in your OpenAI SDK client.

Do I need a credit card to start?
No. Sign up free, get a token quota, and upgrade only when you need more.

Does streaming work?
Yes — set stream: true exactly as you would with the OpenAI API.

Related: OpenAI API alternative Claude API Unified AI API AI gateway LLM API