Ollama OpenAI Compatibility API

Ollama provides compatibility with parts of the OpenAI API, allowing existing applications built for OpenAI to connect to locally-running models through Ollama. Supported endpoints include chat completions, completions, embeddings, models, and the Responses API.

API entry from apis.yml

apis.yml Raw ↑
aid: ollama:ollama-openai-compatibility-api
name: Ollama OpenAI Compatibility API
tags:
- Chat
- Compatibility
- Large Language Models
- OpenAI
humanURL: https://docs.ollama.com/api/openai-compatibility
baseURL: http://localhost:11434/v1
properties:
- url: https://docs.ollama.com/api/openai-compatibility
  type: Documentation
- url: https://ollama.com/blog/openai-compatibility
  type: Blog
description: Ollama provides compatibility with parts of the OpenAI API, allowing existing applications
  built for OpenAI to connect to locally-running models through Ollama. Supported endpoints include chat
  completions, completions, embeddings, models, and the Responses API.