OpenAI-compatible AI gateway examples

Practical recipes for building with RouterBase.

This cookbook turns the RouterBase examples, API collections, and article drafts into a browsable developer guide. Start with one request, then move into model switching and public API client workflows.

RouterBase request flow from application to OpenAI-compatible API gateway and model providers

Cookbook Sections

Quickstart

One base URL

Call `https://routerbase.com/v1` with a familiar chat-completions request shape.

Open guide
Collections

Import before coding

Use Postman, Bruno, Insomnia, or OpenAPI to inspect RouterBase requests.

Open collections
DevRel

Publish useful articles

Review the content plan and drafts for Dev.to and Hashnode publication.

Open plan