# OpenAI compatibility

DevFeed: [OpenAI compatibility](<https://devfeed.tech/articles/openai-compatibility-83400.md>)

Original publisher: [Read original article](<https://ollama.com/blog/openai-compatibility>)

Published: 2024-02-08T00:00:00Z

Content type: tutorial

Language: en

Sources: [Ollama](<https://devfeed.tech/sources/ollama.md>)

Topics: [Ollama](<https://devfeed.tech/topics/ollama.md>), [Chat completions endpoints](<https://devfeed.tech/topics/chat-completions-endpoints.md>), [gpt-oss](<https://devfeed.tech/topics/gpt-oss.md>), [ChatGPT API](<https://devfeed.tech/topics/chatgpt-api.md>), [vercel ai sdk](<https://devfeed.tech/topics/vercel-ai-sdk.md>), [smolagents](<https://devfeed.tech/topics/smolagents.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [code](<https://devfeed.tech/tags/code.md>), [docker](<https://devfeed.tech/tags/docker.md>), [function](<https://devfeed.tech/tags/function.md>), [local-models](<https://devfeed.tech/tags/local-models.md>), [ollama](<https://devfeed.tech/tags/ollama.md>)

## AI overview

Ollama adds experimental compatibility with the OpenAI Chat Completions API, letting developers use existing OpenAI tooling and applications with local models. The article shows setup and usage with cURL, the OpenAI Python and JavaScript libraries, Vercel AI SDK, and Autogen, and lists embeddings, function calling, vision, and logprobs as possible future improvements.

## Source excerpt

Ollama now has initial compatibility with the OpenAI Chat Completions API, making it possible to use existing tooling built for OpenAI with local models via Ollama.