<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/openai-compatibility-ollama-blog-0umqnzyby" -->

---
title: OpenAI compatibility · Ollama Blog | daily.dev
description: Ollama now supports the OpenAI Chat Completions API, letting developers point existing OpenAI-based tooling (cURL, the OpenAI Python and JavaScript libraries,...
canonical: https://daily.dev/posts/openai-compatibility-ollama-blog-0umqnzyby
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: OpenAI compatibility · Ollama Blog | daily.dev
og:description: Ollama now supports the OpenAI Chat Completions API, letting developers point existing OpenAI-based tooling (cURL, the OpenAI Python and JavaScript libraries,...
og:url: https://daily.dev/posts/openai-compatibility-ollama-blog-0umqnzyby
og:image: https://api.daily.dev/og/posts/0umQNZYbY.png
og:image:alt: OpenAI compatibility · Ollama Blog
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI compatibility · Ollama Blog

**[Ollama](https://daily.dev/sources/ollama)** · 3 min read · 0 upvotes · 0 comments

## Summary

Ollama now supports the OpenAI Chat Completions API, letting developers point existing OpenAI-based tooling (cURL, the OpenAI Python and JavaScript libraries, Vercel AI SDK, Autogen) at a local Ollama server by simply changing the base URL to localhost:11434. Setup examples are provided for each integration, along with a roadmap of planned features including embeddings, function calling, vision support, and logprobs. This is described as initial, experimental support.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ollama.com/blog/openai-compatibility>

## Questions this post answers

### How do I use the OpenAI Python library with Ollama running locally?

Point the OpenAI client's base_url to http://localhost:11434/v1 and pass any non-empty string as the api_key (it is required but unused). Then call client.chat.completions.create with a local model name like llama2, and the request goes to the local Ollama server instead of OpenAI's servers.

_daily.dev surfaces practical guides like this for developers wiring local models into existing AI stacks._

### Does Ollama support the OpenAI Chat Completions API format?

Yes, Ollama has built-in compatibility with the OpenAI Chat Completions API as of February 2024, exposing an endpoint at http://localhost:11434/v1/chat/completions that accepts the same request format as OpenAI's API. This lets existing OpenAI-based tools and libraries work with locally run models like Llama 2 or Mistral by just changing the hostname.

_Developers integrating local LLMs into OpenAI-based pipelines can track compatibility updates like this on daily.dev._

### What features are missing from Ollama's OpenAI API compatibility right now?

The initial experimental OpenAI compatibility in Ollama lacks an embeddings API, function calling, vision support, and logprobs, all of which are listed as future improvements under consideration. Only chat completions are currently supported through the compatible endpoint.

_Teams deciding whether to migrate tooling to a local model setup can follow feature updates like these on daily.dev._

## Similar posts on daily.dev

- [Build Your Own Private, Self-Hosted AI Applications with Ollama & Laravel](https://daily.dev/posts/build-your-own-private-self-hosted-ai-applications-with-ollama-laravel-wwjzhlkid) · Tighten · 1 upvotes · 0 comments
- [Ollama for JavaScript Developers](https://daily.dev/posts/ollama-for-javascript-developers-m7eti7jpi) · SitePoint · 0 upvotes · 0 comments
- [How to Integrate Local LLMs With Ollama and Python – Real Python](https://daily.dev/posts/how-to-integrate-local-llms-with-ollama-and-python-real-python-akyr0sngy) · Real Python · 1 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#openai](https://daily.dev/tags/openai), [#local-ai](https://daily.dev/tags/local-ai), [#ollama](https://daily.dev/tags/ollama)

[View this post on daily.dev](https://daily.dev/posts/openai-compatibility-ollama-blog-0umqnzyby)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"OpenAI compatibility · Ollama Blog","url":"https://daily.dev/posts/openai-compatibility-ollama-blog-0umqnzyby","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/openai-compatibility-ollama-blog-0umqnzyby"},"datePublished":"2026-08-23T12:23:53.715Z","dateModified":"2026-08-23T12:56:15.618Z","description":"Ollama now supports the OpenAI Chat Completions API, letting developers point existing OpenAI-based tooling (cURL, the OpenAI Python and JavaScript libraries,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/03fb1a10ef158f8986c9778334c2af42?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/03fb1a10ef158f8986c9778334c2af42?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Ollama","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Ollama","logo":"https://media.daily.dev/image/upload/s--dRYYkBCj--/f_auto,q_auto/v1787487632/logos/ollama-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/ollama"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/openai-compatibility-ollama-blog-0umqnzyby","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"llm,openai,local-ai,ollama","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Ollama","item":"https://daily.dev/sources/ollama"},{"@type":"ListItem","position":3,"name":"OpenAI compatibility · Ollama Blog"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/openai-compatibility-ollama-blog-0umqnzyby#faq","mainEntity":[{"@type":"Question","name":"How do I use the OpenAI Python library with Ollama running locally?","acceptedAnswer":{"@type":"Answer","text":"Point the OpenAI client's base_url to http://localhost:11434/v1 and pass any non-empty string as the api_key (it is required but unused). Then call client.chat.completions.create with a local model name like llama2, and the request goes to the local Ollama server instead of OpenAI's servers. daily.dev surfaces practical guides like this for developers wiring local models into existing AI stacks."}},{"@type":"Question","name":"Does Ollama support the OpenAI Chat Completions API format?","acceptedAnswer":{"@type":"Answer","text":"Yes, Ollama has built-in compatibility with the OpenAI Chat Completions API as of February 2024, exposing an endpoint at http://localhost:11434/v1/chat/completions that accepts the same request format as OpenAI's API. This lets existing OpenAI-based tools and libraries work with locally run models like Llama 2 or Mistral by just changing the hostname. Developers integrating local LLMs into OpenAI-based pipelines can track compatibility updates like this on daily.dev."}},{"@type":"Question","name":"What features are missing from Ollama's OpenAI API compatibility right now?","acceptedAnswer":{"@type":"Answer","text":"The initial experimental OpenAI compatibility in Ollama lacks an embeddings API, function calling, vision support, and logprobs, all of which are listed as future improvements under consideration. Only chat completions are currently supported through the compatible endpoint. Teams deciding whether to migrate tooling to a local model setup can follow feature updates like these on daily.dev."}}]}
```

