English | Bahasa Indonesia | 日本語 | 简体中文
OpenAPI 3.1 specification and Postman Collection v2.1.0 for the Hostlinku AI Gateway (https://api.hostlinku.com).
| Method & Path | Protocol / Purpose | Auth |
|---|---|---|
GET /api/public/models |
Public model catalog & live USD pricing | None |
GET /v1/models |
Authorized model slugs for your API key | Bearer / x-api-key |
POST /v1/chat/completions |
OpenAI Chat Completions (+ SSE streaming) | Bearer |
POST /v1/messages |
Anthropic Messages (+ prompt caching & SSE) | x-api-key / Bearer |
POST /v1/messages/count_tokens |
Free input token counter | x-api-key / Bearer |
POST /v1/responses |
OpenAI Responses API (stateless) | Bearer |
- Postman: Import
postman/hostlinku-api.postman_collection.json, open Variables, and setapiKeyto yoursk-...key from the Console. - Bruno / Insomnia / Hoppscotch / Scalar / Swagger: Import
openapi.jsondirectly and set Bearer orx-api-keyauthentication.
node scripts/validate-specs.mjs- API Reference Docs: https://docs.hostlinku.com/en/api-reference
- Code Examples: https://github.com/dyocodes/hostlinku-api-examples
- Console: https://console.hostlinku.com
MIT. Specifications contain placeholder credentials only.