Authentication
Create a key in the Hicap Platform. Keep it on your server inHICAP_API_KEY or a secrets manager. Never put it in browser code, a public environment variable, or a request tag.
apiKey setting, also configure the api-key request header as shown in the quickstart.
Endpoints
The following request paths have reference pages. Availability, model compatibility, and accepted parameters depend on the selected connection and backend; a route or schema alone does not prove that a request will succeed.
The model list is public and does not require a key. Inference routes require authentication. A bounded synthetic chat smoke test has succeeded, but the other listed inference operations have not been verified end to end for this documentation update. A model appearing in the list does not establish support for every endpoint or feature, or access under every connection.
Endpoint availability
Image editing, Responses, Realtime sessions, and legacy Completions have been registered on the public gateway. Registration alone does not establish backend support, accepted request formats, model compatibility, or access for a connection; verify these before migrating a workflow. Image variations and stored Chat Completions retrieval are not included in the documented endpoint set. Do not assume those operations are available from OpenAI’s API documentation. Assistants, Threads, and Vector Stores are not currently supported by Hicap. A gateway route reaching authentication does not establish that the operation is supported.Models
Use an exact ID from the public model list. The model catalog supplies pricing and context information. If the catalog and API list differ, confirm the ID with support before depending on it; do not silently substitute a model. For chat requests, text and image support, tools, structured output, sampling parameters, and token limits vary by model. A provider’s native API may offer features that are not exposed through Hicap’s compatible endpoint.Streaming
Where the selected model and route support streaming,stream: true requests server-sent events. Verify the response content type and stream handling for your connection; this documentation update did not run a live streaming request.
data: [DONE]. Verify the actual behavior for your model and backend. Handle HTTP errors before reading the stream and handle interruptions without assuming a complete answer.
Attribution
Structural usage rolls up from your key. Add descriptive dimensions through onex-hicap-tags header containing a flat JSON object of string values. See Tags, Dimensions & Segments for tagging and coverage guidance.
Rate limits
Limits depend on your plan, connection, reserved capacity, and selected backend. A reservation does not mean unlimited requests or unrestricted bursting. On429, honor Retry-After when present and use bounded exponential backoff with jitter. Check budgets and limits before retrying repeatedly.
Rate-limit and reset headers vary by route and backend; clients must handle their absence. Contact support for your workload’s limits and capacity options.
Errors
Check the HTTP status first. Gateway errors and provider errors can use different bodies; do not require one JSON shape for every failure.
An authentication failure at the gateway can return:
error object. Error text is diagnostic information; avoid logging credentials, prompts, or sensitive response content.
Request IDs
Record a request/correlation ID when the response provides one, together with UTC time, endpoint, model, and status. Anx-request-id header is not guaranteed on every response, including authentication failures. Share these details with support without including your API key or sensitive request content.