Skip to main content

Claude protocol

Connect with the Claude Messages format.

Service address

This page covers Claude Messages and Claude model discovery. Claude Code and similar clients usually use the root Base URL and append /v1/messages; model access still follows the live portal.

Models and discovery

PurposeMethodPath
Model listGET/v1/models

Messages

PurposeMethodPath
MessagesPOST/v1/messages

Minimal request

Use https://api.popgo.site as the Anthropic SDK Base URL, or https://api.popgo.site/v1/messages as the full Endpoint. Prefer x-api-key: YOUR_API_KEY; the gateway also accepts Authorization: Bearer YOUR_API_KEY. Set anthropic-version to 2023-06-01.

curl https://api.popgo.site/v1/messages \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "YOUR_MODEL",
"max_tokens": 64,
"messages": [
{"role": "user", "content": "Reply with a connection confirmation"}
]
}'

Verify

A successful response contains content blocks. For authentication errors, check x-api-key or Bearer; for path errors, ensure the client appends /v1/messages only once and that the model is available through the Claude group.