AILabStore
All guides

Getting started

Quickstart: your first request in 5 minutes

Create an API key, make your first chat completion with Python, TypeScript or curl, and switch between providers by changing one string.

5 min read · Updated November 1, 2026

AILabStore gives you one API key and one OpenAI-compatible endpoint for models from every major provider. If you have used the OpenAI API before, you already know how to use AILabStore. This guide takes you from zero to a working request in about five minutes.

What you need

  • An AILabStore account with an active package that includes token credits (Starter, Pro or a Token Top-up).
  • Python 3.9+, Node.js 20+, or just curl.

1. Create an API key

  1. Sign in and open Portal → API keys.
  2. Click Create key, give it a descriptive name such as local-dev, and confirm.
  3. Copy the key immediately. For your security, the full key is shown only once. AILabStore stores a hash, not the key itself.

Keys start with als_live_. Store yours in an environment variable rather than in source code:

# macOS / Linux
export AILABSTORE_API_KEY="als_live_..."

# Windows PowerShell
$env:AILABSTORE_API_KEY = "als_live_..."

2. Know the two things that matter

Every request needs just two AILabStore-specific values:

Setting Value
Base URL https://api.ailabstore.cc/v1
Model id provider/model, for example anthropic/claude-sonnet-5.5 or openai/gpt-5-mini

Everything else (messages, temperature, streaming, tools) follows the familiar Chat Completions format.

3. Make your first request

curl

curl https://api.ailabstore.cc/v1/chat/completions \
  -H "Authorization: Bearer $AILABSTORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-5.5",
    "messages": [
      {"role": "system", "content": "You are a concise assistant."},
      {"role": "user", "content": "Explain what an embedding is in two sentences."}
    ]
  }'

Python

Install the official OpenAI SDK, which works unchanged with AILabStore:

pip install openai
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.ailabstore.cc/v1",
    api_key=os.environ["AILABSTORE_API_KEY"],
)

response = client.chat.completions.create(
    model="anthropic/claude-sonnet-5.5",
    messages=[
        {"role": "system", "content": "You are a concise assistant."},
        {"role": "user", "content": "Explain what an embedding is in two sentences."},
    ],
)

print(response.choices[0].message.content)
print("Tokens used:", response.usage.total_tokens)

TypeScript

npm install openai
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.ailabstore.cc/v1",
  apiKey: process.env.AILABSTORE_API_KEY,
});

const response = await client.chat.completions.create({
  model: "anthropic/claude-sonnet-5.5",
  messages: [
    { role: "system", content: "You are a concise assistant." },
    { role: "user", content: "Explain what an embedding is in two sentences." },
  ],
});

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

4. Switch providers by changing one string

This is the main reason teams use AILabStore. To try another model, change only the model field:

for model in [
    "anthropic/claude-haiku-5.5",
    "openai/gpt-5-mini",
    "google/gemini-2.5-flash",
    "mistral/mistral-small-3.2",
]:
    r = client.chat.completions.create(
        model=model,
        messages=[{"role": "user", "content": "Name one prime number above 100."}],
    )
    print(f"{model:32} {r.choices[0].message.content.strip()}")

You do not need separate accounts, keys or SDKs for each provider. Usage from every model is metered against your token credits and appears on a single monthly invoice.

5. List available models

The models endpoint returns every model your packages give you access to:

curl https://api.ailabstore.cc/v1/models \
  -H "Authorization: Bearer $AILABSTORE_API_KEY"

You can also browse the full catalog, with context windows and indicative prices, on the Models page.

Troubleshooting

  • 401 Unauthorized: the key is missing, mistyped or revoked. Check that the environment variable is set in the same shell that runs your code.
  • 404 model not found: check the provider/model spelling against the catalog. Model ids are lowercase.
  • 403 model not in plan: image, audio and video models need the Pro package. Text models are available on Starter.
  • 429 Too Many Requests: you hit a rate limit. Retry with exponential backoff; see the cost and routing guides for patterns.

Next steps