最近更新的页面
Examples
This directory contains different examples of using Ollama. Python examples Ollama Python example...
CPU only
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama Nvidia GPU Insta...
Development
Install prerequisites: Go CMake 3.24 or newer C/C++ compiler: Clang on macOS, Visual Studio 2022 ...
Cloud
Run models in Ollama's cloud from your apps or terminal. No model or app download required. API K...
CLI Reference
Run a model ollama run gemma4 Launch integrations ollama launch Configure and launch external app...
Vision
Vision models accept images alongside text so the model can describe, classify, and answer questi...
Tool calling
Ollama supports tool calling (also known as function calling) which allows a model to invoke tool...
Thinking
Thinking-capable models emit a thinking field that separates their reasoning trace from the fina...
Structured Outputs
Ollama's cloud currently does not support structured outputs. Structured outputs let you enforce ...
Streaming
Streaming allows you to render text as it is produced by the model. Streaming is enabled by defau...
Speech
Speech models read text aloud. Ollama streams the audio as it is generated, so playback can start...
Embeddings
Embeddings turn text into numeric vectors you can store in a vector database, search with cosine ...
Decision
Use System One to classify text, answer yes/no questions, or score text against a rubric. See the...
Usage
Ollama's API responses include metrics that can be used for measuring performance and model usage...
Streaming
Certain API endpoints stream responses by default, such as /api/generate. These responses are pr...
OpenAI compatibility
Connect OpenAI clients to Ollama. Ollama supports a subset of the OpenAI API. Direct cloud access...
Introduction
Use Ollama's API to build applications with cloud or local models. Get started Call cloud models ...
Errors
Endpoints return appropriate HTTP status codes based on the success or failure of the request in ...
Cloud usage
curl 'https://ollama.com/api/usage?range=24h' \ -H "Authorization: Bearer $OLLAMA_API_KEY" { ...
Balance
curl https://ollama.com/api/balance \ -H "Authorization: Bearer $OLLAMA_API_KEY" { "included"...