Skip to content

Code Integration

Use the gateway from scripts, backend services, SDKs, and custom wrappers.

Base URL

The gateway is compatible with the OpenAI, Claude (Anthropic), and Gemini API formats. Pick the Base URL that matches your protocol:

API formatBase URLNotes
OpenAI-compatiblehttps://okapi.pockgo.com/v1Paths like /v1/chat/completions, /v1/responses, /v1/embeddings
Claude (Anthropic)https://okapi.pockgo.comService root; endpoint is /v1/messages
Geminihttps://okapi.pockgo.comService root; the client / SDK appends the API paths

The endpoints and examples below use the OpenAI-compatible base URL.

Auth

http
Authorization: Bearer codex_your_api_key

If you do not have an API key yet, go back to the home page section "Get an API Key" and create one from the API Keys page in your account menu.

Endpoints

MethodPath
GET /v1/modelsList models
POST /v1/chat/completionsChat Completions
POST /v1/responsesResponses
POST /v1/embeddingsEmbeddings

When using environment variables in SDK code, prefer OPENAI_API_KEY instead of a project-specific variable name.

OpenAI-compatible gateway integration docs