rust_llm 2.1.1

One API for chat, tools, agents, structured output, embeddings, images, audio, batches, MCP, and judgments across LLM providers.
Documentation

rust_llm

One API for chat, tools, agents, structured output, streaming, embeddings, images, audio, video, moderation, batches, files, MCP, and judgments across OpenAI, Anthropic, Gemini, DeepSeek, Mistral, OpenRouter, xAI, Perplexity, Ollama, Ollama Cloud, GPUStack, Hetzner, and TypeSafe.

# async fn run() -> rust_llm::Result<()> {
let mut chat = rust_llm::chat_with("claude-opus-5-5")?;

let answer = chat.ask("What's the best way to learn Rust?").await?;
println!("{}", answer.content());
# Ok(()) }

MIT licensed. RustLLM is a port of Carmine Paolino's RubyLLM; see LICENSE.