Documentation

Configure an existing client with the base URL and your InferSail API key, then use Chat Completions, Responses, or Anthropic Messages.

01

Base URL

Use this value as the API base URL. It already ends in /v1.

https://api.infersail.com/v1
02

Access key

Send your key in the Authorization header for Chat Completions and Responses, or in the x-api-key header for Messages. The examples use INFERSAIL_API_KEY as an environment variable.

Getting a key: After payment, we send your API key by email.

03

Protocol routes

All three routes sit under the base URL.

Chat Completionshttps://api.infersail.com/v1/chat/completions
Responseshttps://api.infersail.com/v1/responses
Messageshttps://api.infersail.com/v1/messages
04

cURL

Chat Completions
curl https://api.infersail.com/v1/chat/completions \
  -H "Authorization: Bearer $INFERSAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v4.1-flash","messages":[{"role":"user","content":"Hello"}]}'

A minimal Chat Completions request.

Anthropic Messages
curl https://api.infersail.com/v1/messages \
  -H "x-api-key: $INFERSAIL_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-v4.1-flash","max_tokens":256,"messages":[{"role":"user","content":"Hello"}]}'

A minimal Anthropic Messages request.