ollama/ollama
API
Ollama exposes three HTTP API dialects on the daemon's port (default 11434):
- The native Ollama API at
/api/.... - An OpenAI-compatible API at
/v1/.... - An Anthropic-compatible Messages API at
/v1/messages.
All three are served by the same gin router in server/routes.go; compat layers are translated by middleware in middleware/.
Pages
- REST endpoints — every route, its handler, and its purpose.
Quick links
- User-facing reference:
docs/api.md. - OpenAPI spec:
docs/openapi.yaml. - Go client: api client and types.
- OpenAI/Anthropic translation details: features/openai-anthropic-compat.
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.