Quickstart

Make your first 000 Labs API request in five minutes.

000 Labs is a drop-in replacement for the OpenAI API with access to every model in the catalog. If your code already uses an OpenAI SDK, change two values — the base URL and the API key.

Setup

  1. 1Create an account and open API Keys in your dashboard. Keys start with sk-000- and are shown once.
  2. 2Add credits under Credits. Requests are billed per million tokens at each model's listed price.
  3. 3Point your SDK at https://api.000labs.xyz/v1 and send a request:
curl https://api.000labs.xyz/v1/chat/completions \
  -H "Authorization: Bearer $(printenv 000_LABS_API_KEY)" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o-mini",
    "messages": [
      {"role": "user", "content": "What is the meaning of life?"}
    ]
  }'

Next steps

GuideWhat you'll learn
Parameters & SchemaEvery request field, type and default.
StreamingRender tokens as they arrive.
ErrorsStatus codes and how to retry.
CursorUse 000 Labs models in your editor.