API reference
Every Laalaa Gateway endpoint, in both OpenAI and Anthropic shapes.
Base URLs
OpenAI-compatible
https://api.laalaa.me/v1Anthropic-compatible
https://api.laalaa.meEndpoints
GET
/v1/modelsList every model your key can call.POST
/v1/chat/completionsOpenAI Chat Completions shape (supports stream: true).POST
/v1/responsesOpenAI Responses API shape.POST
/v1/messagesAnthropic Messages shape — x-api-key + anthropic-version headers.POST
/v1/images/generationsOpenAI Images API shape.GET
/v1/usageQuota and consumption for the authenticated key.Vendor endpoints
For resellers — authenticated by vendor token, not by an sk- key. Detailed vendoring docs are provided directly to partners.
POST
/api/keysMint a key (scope keys:create).GET
/api/server-optionsList assignable Server Options.Endpoint discovery
A public, unauthenticated probe:
bash
curl https://api.laalaa.me/v1json
{ "service": "laalaa-gateway", "status": "ok", "endpoints": { "chat_completions": "POST /v1/chat/completions", "responses": "POST /v1/responses", "messages": "POST /v1/messages", "images_generations": "POST /v1/images/generations", "models": "GET /v1/models", "usage": "GET /v1/usage" }, "compatible_with": ["openai", "anthropic"]}Most requests are just /v1/chat/completions or /v1/messages through an SDK you already have.
Compatibility notes
- Auth headers:
Authorization: Bearerorx-api-key - Anthropic calls should send
anthropic-version: 2023-06-01 - Errors use the shared error envelope
ទំព័រនេះមានប្រយោជន៍?