API documentation
Quickstart
Make the first request with curl, JavaScript, or Python.
Create an API key, keep it on your server, then call the OpenAI-compatible API. For most SDKs, the only changes are the API key and base URL.
Curl
Request
curl https://api.aigate.shop/v1/chat/completions \ -H "Authorization: Bearer sk-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "openai/gpt-5.5", "messages": [ { "role": "system", "content": "You are concise." }, { "role": "user", "content": "Explain what AIGate does in one sentence." } ], "temperature": 0.4, "max_tokens": 120, "stream": false }'Response
{ "id": "gate-1779703910", "object": "chat.completion", "created": 1779703910, "model": "openai/gpt-5.5", "choices": [ { "index": 0, "message": { "role": "assistant", "content": "AIGate lets you call enabled AI models through one OpenAI-compatible API." }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 34, "completion_tokens": 19, "total_tokens": 53 }}JavaScript SDK
ts
import OpenAI from "openai";const client = new OpenAI({ apiKey: process.env.AIGATE_API_KEY, baseURL: "https://api.aigate.shop/v1",});const response = await client.chat.completions.create({ model: "openai/gpt-5.5", messages: [{ role: "user", content: "Say OK." }],});console.log(response.choices[0].message.content);Python SDK
py
from openai import OpenAIclient = OpenAI( api_key="sk-your-api-key", base_url="https://api.aigate.shop/v1",)response = client.chat.completions.create( model="openai/gpt-5.5", messages=[{"role": "user", "content": "Say OK."}],)print(response.choices[0].message.content)