Skip to content

Endpoints ​

Everything lives under https://leekbox.ai. Authenticate with Authorization: Bearer sk-....

Text ​

ProtocolMethod / path
OpenAI Chat CompletionsPOST /v1/chat/completions
OpenAI ResponsesPOST /v1/responses
Anthropic MessagesPOST /v1/messages
Gemini GenerateContentPOST /v1beta/models/{model}:generateContent
Gemini streamingPOST /v1beta/models/{model}:streamGenerateContent

Images ​

PurposeMethod / path
GeneratePOST /v1/images/generations
Edit / inpaintPOST /v1/images/edits

Other ​

PurposeMethod / path
Model listGET /v1/models
UsageGET /v1/usage

Auth headers ​

  • OpenAI protocol: Authorization: Bearer <key>
  • Anthropic protocol: x-api-key: <key> plus anthropic-version: 2023-06-01; Bearer also accepted
  • Gemini protocol: x-goog-api-key: <key>; Bearer also accepted

Streaming ​

All text endpoints accept stream: true and return standard SSE, forwarded chunk by chunk without buffering the full answer.

LeekBox — unified AI gateway