Quickstart
Change one base URL. Keep your prompts, tools, and SDKs.
Design-partner path
- Get an API key (admin issues a tenant, or ask for a design-partner key).
- Point your OpenAI SDK at Ohm:
base_url="https://api.withohm.dev/v1"(local:http://localhost:8081/v1). - After a week, check
GET /v1/usageforcache_hit_ratioandarbitrage_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.