Getting Started

Make your first successful request to the EmpirioLabs AI API

Use this guide to go from a new API key to a working chat completion in under a minute.

Base URL

https://api.empiriolabs.ai

All endpoints live under the /v1/ path prefix. The production host is empirio-labs-main-production.up.railway.app proxied through api.empiriolabs.ai.

Prerequisites

Before you begin, make sure you have:

  • an EmpirioLabs account at empiriolabs.ai/get-started
  • prepaid credits on your account (top up via the dashboard Billing page)
  • an API key from the dashboard (keys use the sk-empiriolabs- prefix)
  • a tool for making HTTPS requests such as cURL, Postman, or the OpenAI SDK

Quickstart

1

Export your API key

$export EMPIRIOLABS_API_KEY="sk-empiriolabs-your_key_here"
2

List available models

$curl "https://api.empiriolabs.ai/v1/models" \
> -H "Authorization: Bearer $EMPIRIOLABS_API_KEY"

The response returns the full model catalog with pricing, context windows, regions, and parameter metadata for each model. Filter to only available models with ?available=true.

3

Send a chat completion

$curl "https://api.empiriolabs.ai/v1/chat/completions" \
> -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
> -H "Content-Type: application/json" \
> -d '{
> "model": "qwen3-max",
> "messages": [
> { "role": "user", "content": "What is EmpirioLabs AI?" }
> ]
> }'

A successful response returns a chat completion object with the model’s reply, token usage counts, and cost metadata.

4

Try with the OpenAI SDK

Because the /v1/chat/completions endpoint is OpenAI-compatible, you can point the official OpenAI SDK at EmpirioLabs:

1from openai import OpenAI
2
3client = OpenAI(
4 api_key="sk-empiriolabs-your_key_here",
5 base_url="https://api.empiriolabs.ai/v1",
6)
7
8response = client.chat.completions.create(
9 model="qwen3-max",
10 messages=[{"role": "user", "content": "Hello from EmpirioLabs!"}],
11)
12
13print(response.choices[0].message.content)

What to explore next