OpenAI Compatibility
Ollama API Compatibility
The Secret AI SDK provides full compatibility with OpenAI's API through Ollama endpoints:
Supported Endpoints
Endpoint
Support Status
Description
/v1/chat/completions
β Fully supported
Chat completion with streaming
/v1/completions
β Supported
Text completion via OpenAI-style API
/v1/models
β Supported
List and detail endpoints
/v1/embeddings
β οΈ Available
API compatibility in progress
Tool/function calling
β Supported
Available for select models via tools
/v1/responses
β Not supported
Returns 404
Last updated
Was this helpful?