Inference API
Endpoint contracts for model requests and discovery.
Draft API reference. Koah has not published a live inference endpoint
or final authentication and error contracts. The reference uses
the proposed inference.koah.ai hostname and model IDs from the
Koah model catalog.
Use these pages for headers, body parameters, response fields, and request examples. For model selection and pricing, read Models. For SDK setup and your first request, follow the inference quickstart.
Endpoints
| Method | Path | Reference |
|---|---|---|
POST | /v1/chat/completions | Create a chat completion with the OpenAI protocol. |
POST | /v1/messages | Create a message with the Anthropic protocol. |
GET | /v1/models | List models, if the proposed catalog is implemented. |
Read Errors for failure handling and retry guidance.
Base URLs and authentication
The draft OpenAI examples use https://inference.koah.ai/v1 as the SDK base
URL. The Anthropic examples use the host root, https://inference.koah.ai,
because that SDK appends /v1/messages.
These URLs describe the proposed Koah endpoint, which is still in development. Use your Koah-issued inference credentials when access is available. Publisher management tokens and advertiser conversion keys do not establish inference access.
Confirm the selected protocol's authentication, model support, and limits before using the examples. Streaming and tool calling require separate validation.
Integration guides
- App integration: client setup, server routes, and ad rendering.
- Streaming: event formats, completion markers, and partial output.
- Ads and Validation: the separate ad placement and validation flow.
- Rate Limits: request limits, response codes, and requests for more capacity.