BVE Gateway
OpenAI-compatible API gateway for Fuelix, running at the edge on Cloudflare Workers.
What is BVE Gateway?
Section titled “What is BVE Gateway?”BVE Gateway is a drop-in OpenAI-compatible API gateway that routes requests to the Fuelix AI platform. It handles authentication, rate limiting, and usage tracking so you don’t have to.
Base URL: https://api.bve.me/v1
Get started in seconds
Section titled “Get started in seconds”import OpenAI from 'openai';
const client = new OpenAI({ apiKey: 'sk-bve-YOUR_KEY', baseURL: 'https://api.bve.me/v1',});
const response = await client.chat.completions.create({ model: 'gpt-4o', messages: [{ role: 'user', content: 'Hello!' }],});
console.log(response.choices[0].message.content);from openai import OpenAI
client = OpenAI( api_key="sk-bve-YOUR_KEY", base_url="https://api.bve.me/v1",)
response = client.chat.completions.create( model="gpt-4o", messages=[{"role": "user", "content": "Hello!"}],)
print(response.choices[0].message.content)curl https://api.bve.me/v1/chat/completions \ -H "Authorization: Bearer sk-bve-YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gpt-4o", "messages": [{ "role": "user", "content": "Hello!" }] }' Quickstart Make your first request in under a minute.
Authentication API key format, auth schemes, and CORS headers.
Chat Completions Full reference for /v1/chat/completions with streaming.
Admin API Provision keys, view usage, revoke access.
Popular topics
Section titled “Popular topics” Streaming Real-time token streaming via SSE — format, usage tracking, and SDK examples.
Embeddings Generate text embeddings for semantic search and RAG pipelines.
Responses API Stateful OpenAI Responses API — web search, file search, and reasoning tools. GPT and o-series models only.
Anthropic Messages Use Claude models directly via the Anthropic Messages API format, with the Anthropic SDK or cURL.
SDK Usage Use OpenAI, Anthropic, Groq, Gemini, and Cohere SDKs with BVE Gateway.
Rate Limits & Quotas Per-key RPM/RPD limits, monthly caps, and Retry-After handling.
Observability Structured JSON log fields, wrangler tail recipes, and Cloudflare Logpush integration.
Troubleshooting Common errors with exact error shapes, causes, and step-by-step fixes.