Skip to main content

Base URL

Every endpoint lives on a single host. Paths always start with /v1.

Base URL

https://octalabs.id

Configuring an SDK

The OpenAI SDK expects a base URL that already ends in /v1, while the Anthropic SDK expects just the host, because it appends /v1/messages itself.

SDK base URL
openaihttps://octalabs.id/v1
anthropichttps://octalabs.id
Plain HTTPhttps://octalabs.id/v1/… (full path)
# Environment variables the official SDKs read automaticallyexport OPENAI_BASE_URL="https://octalabs.id/v1"export ANTHROPIC_BASE_URL="https://octalabs.id"export OPENAI_API_KEY="$API_KEY"export ANTHROPIC_API_KEY="$API_KEY"

Common mistake

A doubled path such as /v1/v1/chat/completions (for example from giving the Anthropic SDK a base URL that ends in /v1) is unknown, so the request is rejected with 404 Unknown endpoint … before it runs, at no cost. If every request gets that message, check your base URL.

Start with any balance,
however small.

Create a free accountSign in AI API · pay as you go