Quick Start

Quick Start

This page walks you through the shortest path from account setup to your first API call.

1. Sign In

Open the bus4ai Console (opens in a new tab), then sign up or log in.

After logging in, add balance or obtain available credits, then create an API Key.

2. Create An API Key

Go to API key management in the console and create a new key.

Recommended names:

  • claude-code-local
  • codex-workspace
  • gemini-cli
  • project-production

Clear names make usage tracking and debugging much easier later.

3. Configure Base URL

bus4ai API Base URL:

https://bus4ai.com

For OpenAI-compatible clients, you usually use:

https://bus4ai.com/v1

Different tools handle Base URL joining differently. If your client automatically appends /v1, use https://bus4ai.com. If it expects the full OpenAI-compatible prefix, use https://bus4ai.com/v1.

4. Make Your First Request

Use the OpenAI-compatible Chat Completions API:

curl https://bus4ai.com/v1/chat/completions \
  -H "Authorization: Bearer $bus4ai_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o-mini",
    "messages": [
      {
        "role": "user",
        "content": "Introduce bus4ai in one sentence"
      }
    ]
  }'

Replace bus4ai_API_KEY with the key you created in the console.

5. Check Usage

After the request succeeds, return to the console and check usage records. You can inspect calls by time, model, key, and cost.

Next Steps