openai-rs/openai-api
A simple Rust library for OpenAI API, free from complex async operations and redundant dependencies.
Provides synchronous bindings for OpenAI's models, completions, chat, images, embeddings, and audio endpoints. Built on blocking HTTP requests rather than async/await, reducing dependency overhead while maintaining full API coverage. Supports environment-based authentication and HTTP proxy configuration for flexible deployment scenarios.
226 stars.
Stars
226
Forks
31
Language
Rust
License
MIT
Category
Last pushed
Nov 05, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/openai-rs/openai-api"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Higher-rated alternatives
Arend-Jan/chat-gpt-lib-rs
A Rust library for interacting with OpenAI's ChatGPT API, providing an easy-to-use interface and...
rsmeowry/chatgpt_rs
OpenAI's ChatGPT API wrapper for Rust 🦀
retrage/gpt-macro
ChatGPT powered Rust proc macro that generates code at compile-time.
vibheksoni/t3router
Rust library for t3.chat API - Programmatic access to Claude, GPT-4, Gemini, and 50+ AI models....
fuyufjh/heygpt
A simple command-line interface for ChatGPT API written in Rust ⚡️