API key
sign in requiredCreate a key to authenticate requests.
trey-••••••••••••••••••••••••
Sign in to manage your keys and credits.
Recent requests
soonRequest history will appear here when account sign-in is enabled.
TimeEndpointStatusTokens
No requests yetNo requests yet.
Endpoints
v1Send your key as a Bearer token in the Authorization header.
Base URL
https://api.trey6.dev/v1Authentication
Authorization: Bearer $TREY_API_KEYChat 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"}]}'
Ping
GET/v1/ping
curl https://api.trey6.dev/v1/ping
Models
GET/v1/models
curl https://api.trey6.dev/v1/models \
-H "Authorization: Bearer $TREY_API_KEY"
Test endpoint
1 creditRun a test request. Each test costs 1 credit.
Your credits
0
Endpoint
POST/api/test
Requires sign-in. Deducts 1 credit on success.
Response
No test run yet.