Skip to content

Code Integration

Use the gateway as a standard OpenAI-compatible endpoint.

Current API base URL: https://enjoy.aigemini.org/v1

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