Prerequisites
- Hostlinku account: sign up for free at auth.hostlinku.com.
- Credit balance: the gateway charges per token. Top up in the console before production requests. Test requests usually cost less than a cent, but your balance must not be empty. See Billing & Balance.
- Test tools: curl is enough. For advanced examples, the official OpenAI SDK (
pip install openai) or Node (npm install openai) works without code changes.
Steps
Next steps
- Authentication: API key details, expiry, and credit limits.
- Chat Completions: all parameters, SSE streaming, and Python examples.
- Models: model catalog and how to choose the right model.
- Errors: what each error code means and how to handle it.

