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.

Prerequisites: A LinkHarbor API key from the workspace

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.

Keep your API key secure. Add it to .env and add .env to .gitignore to avoid accidentally exposing it.

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

Expected output
The capital of France is Paris.

Try Streaming

Enable streaming to receive tokens as they're generated — ideal for chat interfaces with real-time feedback.

Python
Expected output
Endpoints respond,Data flows in gentle streams —Models shape the world.