rs_ai 0.2.9

(UNSTABLE; in active development) Fluent top-level API for the Rusty AI SDK — unified interface to Claude, ChatGPT, Gemini, xAI, Cloudflare, and OpenAI-compatible endpoints. Builder pattern with env-var fallback, vision, streaming, caching, TTS/STT.
Documentation

⚠️ UNSTABLE — This crate is in active development. APIs may change without notice.

rs_ai - A fluent, ergonomic Rust SDK for AI with 15+ cloud and local providers.

Quick Start

use rs_ai::gemini;

let response = gemini()
    .api_key("your-api-key")
    .model("gemini-2.5-flash")
    .generate("What is 2+2?")
    .await?;

println!("{}", response);

Supported Providers

  • Claude - rs_ai::claude()
  • ChatGPT - rs_ai::chatgpt()
  • Gemini - rs_ai::gemini()
  • xAI Grok - rs_ai::xai()
  • OpenAI Compatible - rs_ai::compatible(base_url)