Quickstart

Change one base URL. Keep your prompts, tools, and SDKs.

Design-partner path

  1. Get an API key (admin issues a tenant, or ask for a design-partner key).
  2. Point your OpenAI SDK at Ohm: base_url="https://api.withohm.dev/v1" (local: http://localhost:8081/v1).
  3. After a week, check GET /v1/usage for cache_hit_ratio and arbitrage_gross_usd.

Ten lines of Python

from openai import OpenAI

client = OpenAI(
    base_url="https://api.withohm.dev/v1",
    api_key="sk-at-...",
)

r = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)

Identical second call → Redis cache hit (header x-at-cache: HIT).

api.withohm.dev is a placeholder until DNS is purchased. Local Docker uses http://localhost:8081/v1 with bootstrap key sk-at-dev.