OpenAI-compatible
API
A drop-in OpenAI-compatible endpoint. Point any OpenAI SDK at the base URL below and use your API key as a Bearer token.
https://api.trey6.dev/v1
Authentication
Send your key in the Authorization header as a Bearer token.
Authorization: Bearer $TREY_API_KEY
Chat completions
POST/v1/chat/completions
curl https://api.trey6.dev/v1/chat/completions \
-H "Authorization: Bearer $TREY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "trey-1",
"messages": [
{ "role": "user", "content": "hello" }
]
}'
Models
GET/v1/models
curl https://api.trey6.dev/v1/models \
-H "Authorization: Bearer $TREY_API_KEY"
Template docs. The endpoints are not live yet.