Docs / Setup Guide

Setup Guide: protocol / Base URL / key

Two protocols, two Base URLs

llmapi supports both the Anthropic and OpenAI API protocols — pick the one your client uses:

Anthropic
https://llmapi.pro — path /v1/messages, header x-api-key. Used by Claude Code and the Anthropic SDK. Base URL has no /v1
OpenAI
https://llmapi.pro/v1 — path /v1/chat/completions, header Authorization: Bearer. Used by most third-party clients. Base URL includes /v1
Most common gotcha: a missing or extra /v1 causes 404. Claude Code: no /v1; almost everything else: with /v1.

API Key

Create an sk-... key in Console → API Keys. One key works for both protocols. Never share it or commit it to a repo.

Model names

We recommend claude-opus-4-8 (newest/strongest), claude-sonnet-4-6 (best value), claude-haiku-4-5 (fast). OpenAI aliases like gpt-4o and many open models work too — see Models.

Need help? Email [email protected] · Home