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.
OpenAI format (recommended for getting started)
pip install openainpm install openaiAnthropic format
If you already have Anthropic-SDK code, no migration needed:
pip install anthropicnpm install @anthropic-ai/sdkcurl 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.