Ollama-rs is a Rust library designed to provide a simple and efficient interface for interacting with the Ollama API, enabling developers to integrate local large language models into Rust applications. It follows the official Ollama API closely, ensuring compatibility while offering an idiomatic Rust experience with strong typing and asynchronous execution. The library supports a wide range of operations, including text generation, chat interactions, embeddings, and model management, making it suitable for both simple applications and more advanced AI workflows. It includes streaming capabilities for real-time output, allowing developers to process responses incrementally rather than waiting for full completions. The project also introduces support for tool calling and custom function integration, enabling more dynamic and agent-like behavior within applications.

Features

  • Async Rust client for Ollama API
  • Embedding generation and batch processing
  • Streaming text generation and chat responses
  • Strong typing with idiomatic Rust design
  • Model lifecycle management functions
  • Custom tool and function calling support

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Ollama-rs

Ollama-rs Web Site

Other Useful Business Software
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime Icon
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime

General-purpose, compute-optimized, or GPU/TPU-accelerated. Built to your exact specs.

Live migration and automatic failover keep workloads online through maintenance. One free e2-micro VM every month.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Ollama-rs!

Additional Project Details

Programming Language

Rust

Related Categories

Rust Libraries

Registered

2026-04-20