ModelSite
Getting Started

Install an SDK

Connect to ModelSite with the OpenAI / Anthropic SDK you already know

ModelSite is compatible with both the OpenAI and Anthropic API formats, so you can reuse your existing SDK — no dedicated client required.

pip install openai
npm install openai

Anthropic format

If you already have Anthropic-SDK code, no migration needed:

pip install anthropic
npm install @anthropic-ai/sdk

curl only

Don't want an SDK? ModelSite is plain HTTP + JSON, so curl works:

curl https://api.modelsite.ai/v1/chat/completions \
  -H "Authorization: Bearer $MODELSITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-sonnet-4.6","messages":[{"role":"user","content":"Hi"}]}'

Set your environment variable

Make sure your API key is in place:

echo $MODELSITE_API_KEY

→ Next: Your first request.

On this page