OpenAI compatible protocol
Connect OpenAI compatible clients with the /v1 Base URL.
Common endpoints
| Purpose | Method | Path |
|---|---|---|
| Chat generation | POST | /v1/chat/completions |
| Responses | POST | /v1/responses |
| Model list | GET | /v1/models |
Minimal request
Use Bearer authentication and set the model field to an ID currently shown by the portal.
curl https://api.popgo.site/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL",
"messages": [
{"role": "user", "content": "Reply with a connection confirmation"}
]
}'
Verify
A successful response returns JSON. For a client-side 404, first check that the client did not append /v1 twice.