Demo This is a read-only demo. Documentation Buy ZephAI
New

Gateway v2 is live — one endpoint, every model, streaming tool-calls. Read the changelog

Gateway

Errors & limits

Status codes, retries and quotas.

7 min read·Updated Dec 5, 2026·6 views

Status codes, retries and quotas.

Overview

Every request uses the same OpenAI-compatible base URL, one workspace key and the same metering pipeline. That means a single integration can switch between staff-listed and vendor models without changing your client.

python
from openai import OpenAI
client = OpenAI(base_url="https://api.zephai.dev/v1", api_key=os.environ["ZEPHAI_KEY"])
response = client.chat.completions.create(model="zeph-nexus-4", messages=[{"role": "user", "content": "Ship it"}])

What to watch

  • Per-key spend caps apply before the request reaches a vendor.
  • Streaming responses close cleanly with data: [DONE].
  • Retries are safe for idempotent calls; include Idempotency-Key for writes.

Questions? The support inbox is staffed by engineers, not a script.

Was this helpful?
0 found this helpful
Need a hand?

Our engineers answer API questions in the support inbox.

Contact support