Skip to main content
Interact with Ollama models using the OpenAI Responses API. This uses Ollama’s OpenAI-compatible /v1/responses endpoint, added in Ollama v0.13.3.

Requirements

  • Ollama v0.13.3 or later
  • For local usage: Ollama server running at http://localhost:11434
  • For Ollama Cloud: Set OLLAMA_API_KEY environment variable

Key Features

  • Dual Deployment: Run locally for privacy or use Ollama Cloud for scalability
  • Auto-configuration: When using an API key, the host automatically defaults to Ollama Cloud
  • Stateless API: Each request is independent (no previous_response_id chaining)

Parameters

Usage

Local Usage

Ollama Cloud

Set the OLLAMA_API_KEY environment variable:

Custom Host

Developer Resources