A multi-provider AI API proxy service running on Cloudflare Pages.
/v1/chat/completions - Chat completions endpoint/openai/v1/chat/completions - OpenAI-compatible endpointAuthorization: Bearer <your-api-key>X-Host-Final: <provider-host> (e.g., api.groq.com)
curl -X POST "https://ai-proxy-ylstack.pages.dev/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-cfw..." \
-H "X-Host-Final: api.groq.com" \
-d '{
"model": "mixtral-8x7b-32768",
"messages": [{"role": "user", "content": "Hello!"}],
"temperature": 0.7
}'