API Infrastructure

BadlandsLabs

Secure API proxy infrastructure with unified access to OpenAI and Anthropic endpoints. Single API key. Real-time analytics. Enterprise-grade reliability.

Documentation

Quick Start Guide

Get up and running with Badlands Labs API proxy in minutes

1

Get Your API Key

Register for a Badlands Labs account and generate your API key. Keys follow the format:

sk-bdl-api03-xxxxxxxxxxxx

All keys are prefixed with sk-bdl-api03- for easy identification.

2

Choose Your Endpoint

Badlands Labs proxies to both OpenAI and Anthropic APIs through a single unified endpoint:

  • OpenAI-compatible: https://api.badlandslabs.io/v1
  • Anthropic-compatible: https://api.badlandslabs.io/anthropic/v1
3

Start Building

Use your Badlands Labs API key as the bearer token. The proxy handles routing, rate limiting, and analytics automatically.

OpenAI API Calls

Point your OpenAI SDK or curl calls to our unified endpoint:

bash
# Chat Completions
curl https://api.badlandslabs.io/v1/chat/completions \
  -H "Authorization: Bearer sk-bdl-api03-your-key-here" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o",
    "messages": [
      {"role": "user", "content": "Hello, world!"}
    ]
  }'
bash
# Embeddings
curl https://api.badlandslabs.io/v1/embeddings \
  -H "Authorization: Bearer sk-bdl-api03-your-key-here" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "text-embedding-3-small",
    "input": "The quick brown fox jumps over the lazy dog"
  }'

Anthropic API Calls

Access Claude models through our Anthropic-compatible endpoint on port 8080:

bash
# Claude Messages API
curl https://api.badlandslabs.io/anthropic/v1/messages \
  -H "Authorization: Bearer sk-bdl-api03-your-key-here" \
  -H "Content-Type: application/json" \
  -H "x-api-key: sk-bdl-api03-your-key-here" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "claude-sonnet-4-20250514",
    "max_tokens": 1024,
    "messages": [
      {"role": "user", "content": "Hello, Claude!"}
    ]
  }'
bash
# Direct local proxy (port 8080)
curl http://localhost:8080/anthropic/v1/messages \
  -H "Authorization: Bearer sk-bdl-api03-your-key-here" \
  -H "Content-Type: application/json" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "claude-sonnet-4-20250514",
    "max_tokens": 1024,
    "messages": [
      {"role": "user", "content": "Hello via local proxy!"}
    ]
  }'

SDK Configuration

OpenAI Python SDK

python
from openai import OpenAI

client = OpenAI(
  api_key="sk-bdl-api03-your-key-here",
  base_url="https://api.badlandslabs.io/v1"
)

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

Anthropic Python SDK

python
import anthropic

client = anthropic.Anthropic(
  api_key="sk-bdl-api03-your-key-here",
  base_url="https://api.badlandslabs.io/anthropic/v1"
)

message = client.messages.create(
  model="claude-sonnet-4-20250514",
  max_tokens=1024,
  messages=[{"role": "user", "content": "Hello!"}]
)

Key Formatting Guide

API Key Structure

All Badlands Labs API keys follow a consistent format for easy identification:

  • Prefix: sk-bdl-api03- — identifies the key as a Badlands Labs key
  • Key ID: 24 character alphanumeric string — unique to each user account
  • Example: sk-bdl-api03-a1b2c3d4e5f6g7h8i9j0k1l2m

Security Note: Never share your API key. Treat it like a password and keep it confidential. If compromised, rotate immediately from your dashboard.

System Health

Operational Status

Real-time and historical performance metrics

API Gateway
Operational
All systems nominal
OpenAI Proxy
Operational
Processing requests
Anthropic Proxy
Operational
Processing requests
99.97%
90-Day Uptime
Database
Connected
2.4M
Requests Today

Daily Uptime — Past 90 Days

Operational Degraded Outage
90 days ago 60 days ago 30 days ago Today

Response Latency

42ms
P50
118ms
P95
187ms
P99
67ms
Average

Incident History

May 15, 2026 — Scheduled Maintenance (Resolved)

Completed database migration from 01:00-03:00 UTC. All systems operational. No user impact.

April 28, 2026 — Rate Limit Adjustment (Resolved)

Increased rate limits for Pro tier users. Processing capacity expanded by 40%.

March 10, 2026 — CDN Optimization (Resolved)

Deployed edge caching improvements. Average latency reduced by 23% for US-based requests.

Get Help

Support Center

We're here to help. Reach out anytime.

Email Support

For general inquiries, technical questions, or partnership opportunities:

support@badlandslabs.io

Typical response time: 1-2 business days

Priority Support

Enterprise customers with critical infrastructure needs can reach our on-call team:

enterprise@badlandslabs.io

24/7 emergency escalation available

Send a Message

Legal

Privacy Policy

Last updated: May 15, 2026

Legal

Terms of Service

Last updated: May 15, 2026