Docs / Setup Guide
Setup Guide: protocol / Base URL / key
Three protocols, three Base URLs
llmapi supports the Anthropic, OpenAI and Gemini API protocols — pick the one your client uses (the same sk-... key works for all three):
Anthropic
https://api.llmapi.pro:99 — path /v1/messages, header x-api-key. Used by Claude Code and the Anthropic SDK. Base URL has no /v1OpenAI
https://api.llmapi.pro:99/v1 — path /v1/chat/completions, header Authorization: Bearer. Used by most third-party clients. Base URL includes /v1Gemini
https://api.llmapi.pro:99 — path /v1beta/models/{model}:generateContent, auth via x-goog-api-key or ?key=. Used by the Google GenAI SDK. SDK base has no /v1beta (the SDK appends it)Most common gotcha: a missing or extra
/v1 causes 404. Claude Code (Anthropic): no /v1; OpenAI-compatible clients: with /v1; Gemini SDK base: no /v1beta (the SDK appends it).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 support@llmapi.pro · Home