For the complete documentation index, see llms.txt. This page is also available as Markdown.

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?