Inference

Inference API

Endpoint contracts for model requests and discovery.

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

MethodPathReference
POST/v1/chat/completionsCreate a chat completion with the OpenAI protocol.
POST/v1/messagesCreate a message with the Anthropic protocol.
GET/v1/modelsList 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.
Was this helpful?