Rust Client
Blazingly fast Rust client for Gender-API.com providing memory-safe and efficient gender detection for systems programming. Our specialized API delivers 99.5% accuracy in under 100ms, perfect for high-performance applications and embedded systems. The client is built with zero-cost abstractions and follows Rust best practices for safety and concurrency. Unlike generic AI models that are slow and resource-heavy, our API is 10x-90x faster with 9-34% better accuracy. Ideal for CLI tools, web servers, and performance-critical applications. Access over 9 million names across 150+ countries with intelligent fallback. Start free with 100 monthly API calls. Production-ready and GDPR compliant.
use reqwest::header::AUTHORIZATION;
use serde::{Deserialize, Serialize};
use std::error::Error;
// Add to Cargo.toml:
// [dependencies]
// reqwest = { version = "0.11", features = ["json"] }
// tokio = { version = "1", features = ["full"] }
// serde = { version = "1.0", features = ["derive"] }
#[derive(Serialize)]
struct Request<'a> {
first_name: &'a str,
}
#[derive(Deserialize, Debug)]
struct Response {
gender: String,
probability: f64,
}
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let api_key = "YOUR_API_KEY"; // Get your key at https://gender-api.com/en/account/auth-tokens
let client = reqwest::Client::new();
let resp: Response = client
.post("https://gender-api.com/v2/gender/by-first-name")
.header(AUTHORIZATION, format!("Bearer {api_key}"))
.json(&Request { first_name: "Theresa" })
.send()
await?
.json()
await?;
println!("Gender: {}", resp.gender);
println!("Probability: {}", resp.probability);
Ok(())
}
तुमच्या अॅप्लिकेशन्ससाठी प्रोफेशनल लिंग ओळख
Gender-API.com 150+ देशों में 99.5% सटीकता के साथ एंटरप्राइज़-ग्रेड gender detection देता है। हमारा specialized API, generic AI solutions की तुलना में 10x-90x तेज़ response times और 9-34% बेहतर accuracy के साथ साफ़ तौर पर आगे है।
क्यों चुनो Gender-API को Generic AI के बजाय?
- उद्देश्य के लिए विशेष रूप से बनाया गया : जेंडर पहचान के लिए खास तौर पर बनाया गया है, यह सामान्य उपयोग वाला AI नहीं है
- अत्यंत तेज़ : सामान्य AI की तुलना में 100ms से कम रिस्पॉन्स टाइम — सेकंड्स नहीं
- और भी ज़्यादा सटीक सांस्कृतिक और क्षेत्रीय समझ के साथ 99.5% सटीकता
- और भी बड़ा डेटाबेस 9+ मिलियन नाम, सामान्य AI प्रशिक्षण डेटा की तुलना में 37% ज़्यादा
- विश्वसनीय 99.9% अपटाइम SLA, साथ में भरोसेमंद और अनुमानित परफॉर्मेंस
मुख्य विशेषताएँ
- सिर्फ़ कुछ लाइनों के कोड के साथ आसान इंटीग्रेशन
- उच्च-वॉल्यूम ऐप्लिकेशनों के लिए बैच प्रोसेसिंग
- क्षेत्रीय नामों के अलग-अलग रूपों के लिए देश-विशिष्ट सटीकता
- टाइपो और अलग-अलग वैरिएंट्स को स्मार्ट तरीके से नॉर्मलाइज़ करने की सुविधा
- GDPR के अनुरूप और एंटरप्राइज़ के लिए तैयार
आज ही मुफ़्त में शुरू करो
हर महीने 100 मुफ्त API कॉल्स पाओ — बिना क्रेडिट कार्ड के। जैसे-जैसे तुम बढ़ो, हर यूज़ केस के लिए लचीली प्राइसिंग के साथ आसानी से स्केल करो।