curl
Call Essevin compatible endpoints with HTTP and curl.
| Model type | Protocol and endpoint | Authentication |
|---|---|---|
| GPT / Gemini | POST https://api.essevin.com/v1/chat/completions | Authorization: Bearer |
| Claude | POST https://api.essevin.com/v1/messages | x-api-key |
Use a model ID returned by GET /v1/models for the current plan key. Keys from different plan groups are not interchangeable.
OpenAI protocol (GPT models)
curl https://api.essevin.com/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5",
"messages": [{"role": "user", "content": "Hello"}]
}'Anthropic protocol (Claude models)
curl https://api.essevin.com/v1/messages \
-H "x-api-key: sk-your-key" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-6",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello"}]
}'Streaming (add "stream": true)
curl https://api.essevin.com/v1/chat/completions \
-H "Authorization: Bearer sk-your-key" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-5.5", "stream": true,
"messages": [{"role": "user", "content": "Hello"}]}'