{"repo":"socrates8300/openrouter_api","free":true,"listed":false,"github":"https://github.com/socrates8300/openrouter_api","clone":"git clone https://github.com/socrates8300/openrouter_api.git","description":"Rust API for openrouter.","language":"Rust","stars":32,"topics":["ai","api-client","llm","openrouter","rust"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"OpenRouter API Client Library A production-ready Rust client for the OpenRouter API with comprehensive security, ergonomic design, and extensive testing. The library uses a type‑state builder pattern for compile-time configuration validation, ensuring robust and secure API interactions. Features 🏗️ Architecture & Safety - Type‑State Builder Pattern: Compile-time configuration validation ensures all required settings are provided before making requests - Secure Memory Management: API keys are automatically zeroed on drop using the zeroize crate for enhanced security - Comprehensive Error Handling: Centralized error management with safe error message redaction to prevent sensitive data leakage - Modular Organization: Clean separation of concerns across modules for models, API endpoints, types, and utilities 🚀 Ergonomic API Design - Convenient Constructors: Quick setup with from api key() , from env() , quick() , and production() methods - Flexible Configuration: Fluent builder pattern with timeout, retry, and header configuration - Environment Integration: Automatic API key loading from OPENROUTER API KEY or OR API KEY environment variables 🔒 Security & Reliability - Standardized Error Handling: Enterprise-grade retry logic with exponential backoff and jitter across all endpoints - Memory Safety: Secure API key handling with automatic memory zeroing - Response Redaction: Automatic sanitization of error messages to prevent sensitive data exposure - Bounded Response Reading: S","default_branch":null,"files":null,"tree":[],"storefront":"/r/socrates8300","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/socrates8300/openrouter_api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}