OpenAI-compatible API for AI applications
Get Your API Key
Set Base URL
https://api.xtrix.workers.dev/v1
Make Your First Request
curl https://api.xtrix.workers.dev/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "model": "claude-3-5-sonnet-20241022", "messages": [ { "role": "user", "content": "Hello!" } ] }'