OhMyGPT

API Reference

Endpoints, request formats, and response schemas.

OhMyGPT speaks the OpenAI API, the Anthropic Messages API, the Google Gemini API, and the OpenAI Responses API natively at the edge. If you have existing code that uses any of them, you can switch to OhMyGPT by changing the base URL — and every chat model is callable through every one of these protocols. Start with Protocols for how passthrough and translation work.

Base configuration

ItemValue
Base URLhttps://api.ohmygpt.com/v1
AuthenticationAuthorization: Bearer $OHMYGPT_API_KEY
Content-Typeapplication/json

Chat protocols

EndpointDescription
POST /chat/completionsOpenAI Chat Completions — every chat model
POST /responsesOpenAI Responses API, with stored-response retrieval routes
POST /messagesAnthropic Messages API, plus /messages/count_tokens
POST /models/{model}:generateContentGoogle Gemini generateContent (and :streamGenerateContent)

Decisions endpoints

EndpointDescription
POST /decisionsOpenAI Decisions (gpt-6-luna) — typed questions, typed answers
POST /systemoneTypeSafe System One (jev-latest)

Other endpoint families

EndpointDescription
GET /models, GET /models/{model}Model catalog with per-model protocol support and pricing views
POST /embeddings, POST /rerank, POST /ocr, POST /moderationsText and content-processing endpoints
POST /images/generations, POST /images/editsImage endpoints
POST /audio/speech, POST /audio/transcriptionsAudio endpoints
POST /batches (+ lifecycle routes)Batch jobs (OpenAI shape)
GET /realtime, GET /gemini/liveRealtime WebSocket sessions
POST /videos (+ lifecycle routes)Video generation jobs

Guides

Protocol pages

Alternative endpoints

For users in different regions:

EndpointDescription
https://api.ohmygpt.comDirect US server
https://apic1.ohmycdn.comCloudflare CDN (recommended worldwide)
https://c-z0-api-01.hash070.comChina-optimized CDN

How is this guide?

Last updated on

On this page