For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DashboardSign Up
  • Getting Started
    • Welcome
    • Quick Start
    • Authentication
  • Native Mode
    • Overview
    • OpenAI
    • Anthropic
    • Gemini
  • Unified Mode
    • Overview
    • Python
    • TypeScript
    • cURL
  • Platform
    • Key Management
    • Rate Limits & Budgets
    • Usage & Billing
    • Error Reference
  • API Reference
      • POSTOpenAI
      • POSTAnthropic
      • POSTGemini
DashboardSign Up
API ReferenceNative Mode

OpenAI

POST
/openai/v1/chat/completions
POST
/openai/v1/chat/completions
$curl -X POST https://api.trygateway.ai/openai/v1/chat/completions \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "model": "gpt-4o",
> "messages": [
> {
> "role": "system",
> "content": "string"
> }
> ]
>}'
200Successful
1{}

Transparent proxy to the OpenAI API. Your request is forwarded unmodified — the gateway only swaps your proxy key for the real OpenAI API key. Use exactly the same request body you would send to api.openai.com/v1/chat/completions.

Was this page helpful?
Previous

Anthropic

Next
Built with

Authentication

AuthorizationBearer

Your proxy key (starts with sk-proxy-…). Create one in the dashboard at app.trygateway.ai.

Request

This endpoint expects an object.
modelstringRequired
OpenAI model identifier
messageslist of objectsRequired
streambooleanOptionalDefaults to false
max_tokensintegerOptional
temperaturedoubleOptional

Response

OpenAI chat completion response (returned unmodified from OpenAI)