Quick Start
Get up and running with the LinkHarbor API in minutes. Make your first AI-powered request with just a few lines of code.
Create Your Account
Sign up for a free LinkHarbor account to get your API key. Your key grants access to models from OpenAI, Anthropic, Google, and more.
Install the SDK
Choose the interface you want to use and install the matching SDK.
Anthropic standard interface
OpenAI-compatible interface
Set Your API Key
Export your API key as an environment variable. Never hard-code it in your source code.
Make Your First Request
Use either the Anthropic Messages API or the OpenAI-compatible chat completions endpoint with models from the LinkHarbor catalog.
Anthropic standard interface
OpenAI-compatible interface
Try Streaming
Enable streaming to receive tokens as they're generated — ideal for chat interfaces with real-time feedback.
What's next
You've made your first request. Explore the full API capabilities below.
OpenAI-Compatible Setup
Use LinkHarbor with the official OpenAI SDK, Cursor, Cline, OpenWebUI, and other compatible tools.
Anthropic-Compatible Setup
Use Claude Code, OpenClaw, Cline, and other Anthropic-compatible tools with LinkHarbor.
Chat Completions
Deep dive into parameters, message roles, token limits, and response formats.
Explore Models
Browse the models from OpenAI, Anthropic, Google, and open-source providers available through LinkHarbor.
Error Handling
Understand error codes, rate limits, and how to implement robust retry logic.