Skip to Content
API referenceOpenAI CompatibleOverview

OpenAI Compatible Protocol

To use the official OpenAI SDK or any OpenAI-compatible client, change the API address to OfoxAI and enter your OfoxAI key.

API addresshttps://api.ofox.io/v1
Auth headerAuthorization: Bearer <your OFOXAI_API_KEY>

Endpoints

For conversational requests, prefer Responses (the interface OpenAI currently recommends, with better prompt caching support). Existing code built on Chat Completions can stay as is; just change the address and key.

EndpointMethod and pathPurpose
Chat CompletionsPOST /v1/chat/completionsChat completion, the most widely compatible with existing code
ResponsesPOST /v1/responsesNext-generation conversational interface, recommended
EmbeddingsPOST /v1/embeddingsText embeddings
ImagesPOST /v1/images/generations, /v1/images/editsGenerate and edit images
ModelsGET /v1/modelsList available models and their details
Models CountGET /v1/models/countModel count statistics

For a side-by-side comparison of addresses and authentication across the three protocols, see API Overview. To get and store a key, see API Key Setup & Usage.

Last updated on