This SDK is in alpha. The API is stable, but some interfaces may change based on feedback.
Paste into your AI coding assistant to add the Valyu Rust SDK and make your first search call.
Install
Authenticate
Get your API key from the Valyu Platform ($10 free credits, $20 with a work email)..env with the dotenvy crate (dotenvy::dotenv().ok();) before reading the variable.
First call
APIs
Search
Search web and proprietary sources
Contents
Extract and process web content
Answer
Generate cited answers from search
DeepResearch
Autonomous async research reports
Error handling and custom clients
Errors surface asValyuError variants (InvalidApiKey, RateLimitExceeded, ServiceUnavailable, InvalidRequest(msg)). To configure timeouts or other HTTP settings, build your own reqwest::Client and pass it in:
Support
- Discord: Join our community
- GitHub: valyuAI/valyu-rust
- Crate docs: docs.rs/valyu
- Email: contact@valyu.ai

