Docs / curl / HTTP

curl / HTTP

Anthropic OpenAI

Call the API directly.

Base URL
choose by protocol (below)
API Key
sk-... (create in Console → API Keys)
Recommended
claude-opus-4-8 · claude-sonnet-4-6 · claude-haiku-4-5

Setup steps

  1. Anthropic protocol (/v1/messages):
curl https://llmapi.pro/v1/messages \
  -H "x-api-key: sk-YOUR_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model":"claude-opus-4-8","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'
  1. OpenAI protocol (/v1/chat/completions):
curl https://llmapi.pro/v1/chat/completions \
  -H "Authorization: Bearer sk-YOUR_KEY" \
  -H "content-type: application/json" \
  -d '{"model":"claude-opus-4-8","messages":[{"role":"user","content":"Hello"}]}'
Client not listed? Any "OpenAI-compatible" app works: Base URL = https://llmapi.pro/v1, key = your sk-..., type the model name. Or email [email protected].
Need help? Email [email protected] · Home