Skip to main content

OpenAI guides

WSO2 API Platform works alongside the OpenAI products you already use. Govern OpenAI model traffic, route Codex CLI through AI Gateway, and use OpenAI embeddings for semantic caching and guardrails.

End-to-end guides​

A step-by-step guide for Codex CLI.

Show resources for

WSO2 hosts the control plane and the gateways.

AI Gateway with OpenAI models​

Route, secure, and govern traffic to OpenAI models through WSO2 AI Gateway, including traffic from Codex CLI.

OpenAI as an LLM provider​

Register the OpenAI API with the gateway. The gateway keeps the API key, not your applications.

Semantic caching and guardrails​

Semantic caching and the semantic prompt guard compare prompts by meaning, and can use an OpenAI embedding model that you set in the policy or gateway configuration.

Token limits, semantic caching, and the other AI API policies work the same way for every provider. See AI APIs.

Routing, token limits, cost control, and the other AI Workspace policies work the same way for every provider. See the AI Workspace overview.

Routing, token limits, cost control, and the gateway's other policies work the same way for every provider. See the AI Gateway documentation.

Architecture and responsibility model​

WSO2 API Platform and OpenAI split the work like this:

ScenarioWSO2 roleOpenAI roleRuntime traffic
Codex CLI through AI GatewayAuthenticates developers and applies guardrails, rate limits, and analyticsHosts the models and bills the API keyGoes through WSO2 AI Gateway to OpenAI
Applications calling OpenAI modelsProxies and governs LLM requestsHosts the modelsGoes through WSO2 AI Gateway to OpenAI
Semantic caching and guardrailsRuns the cache or guardrail policyReturns embeddings for each promptThe gateway calls the OpenAI embeddings API alongside each request

Learn more​

Related pages in the OpenAI documentation:

To browse every guide by goal, see the Guides overview.

Was this page helpful?