Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.savegate.ai/llms.txt

Use this file to discover all available pages before exploring further.

Get Your API Key

First, create a free SaveGate account and get your API key.
1

Sign Up

Go to app.savegate.ai and create an account.
2

Get API Key

Navigate to your dashboard and copy your API key from the API Keys section.
Keep your API key secure and never share it publicly. Treat it like a password.

Make Your First Request

Choose your preferred method to make API calls:
from openai import OpenAI

client = OpenAI(
    api_key="your-savegate-api-key",
    base_url="https://api.savegate.ai/v1"
)

response = client.chat.completions.create(
    model="gpt-5.1",
    messages=[
        {"role": "user", "content": "Hello! How are you?"}
    ]
)

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

Installation

Install the SDK for your preferred language:
pip install openai

Try Different Models

SaveGate supports 50+ models. Here’s how to use models from different providers:
# GPT-5.1
response = client.chat.completions.create(
    model="gpt-5.1",
    messages=[{"role": "user", "content": "Hello!"}]
)

# GPT-4.2
response = client.chat.completions.create(
    model="gpt-4.2",
    messages=[{"role": "user", "content": "Hello!"}]
)

# O3 (Reasoning)
response = client.chat.completions.create(
    model="o3",
    messages=[{"role": "user", "content": "Solve this problem..."}]
)

Enable Streaming

Get real-time responses with streaming:
response = client.chat.completions.create(
    model="gpt-5.1",
    messages=[{"role": "user", "content": "Tell me a story"}],
    stream=True
)

for chunk in response:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

Monitor Your Usage

Track your API usage and costs in real-time:
  1. Go to your SaveGate Dashboard
  2. View usage statistics, cost breakdowns, and performance metrics
  3. Set up billing alerts to monitor spending

Next Steps

Authentication

Learn about API keys and authentication best practices.

View All Models

Explore the complete list of 50+ supported models.

SDK Integration

Deep dive into LiteLLM and other SDK integrations.

API Reference

Explore the complete API documentation.