Guides

Guides Overview

Bring free inference to your app or coding agent, with ads that cover the cost.

Connect a model, show the generated content, and render a separate ad when Koah requests one. These guides take you through the full flow. For your first request, start with the quickstart.

Who this is for

  • App developers: build chat, writing tools, or app builders for a US consumer audience, with a visible place for ads.
  • Existing integrations: migrate an app that already uses the OpenAI or Anthropic SDK to free inference.
  • Coding agent users: connect a free model in an agent that supports custom providers and a plugin or UI for ads.
  • Platforms and routers: contact Koah to plan access and ad display across the apps you serve.

How to use free inference

1

Run inference

Your server or coding agent requests a model response from Koah.

2

Display the result

Return the generated content and any ad ID to your interface.

3

Render the ad

Only render an ad when Koah returns an ad ID. This does not happen on every response. Pass the ID to the Koah SDK, or let the agent plugin handle it. Keep the ad separate from the content and visible to the user.

Valid ad views fund token generation. For streamed responses, wait until the content is complete before showing the ad. See Ads and Validation for the display requirements.

Choose a guide

Migrate to Koah

Connect your existing SDK and add ads to fund inference.

Build an app

Connect your server, show content, and render ads when requested.

Understand ads and validation

Learn where to show ads and how valid views fund inference.

For model choices and request details, see Models, Streaming, and the API reference.

Was this helpful?