openai-rs/openai-api
A simple Rust library for OpenAI API, free from complex async operations and redundant dependencies.
This is a simple tool for Rust developers who want to integrate OpenAI's AI capabilities into their applications. It allows you to send requests to the OpenAI API for tasks like generating text completions, managing chat conversations, creating images, and generating embeddings. The result is the AI's response, which can then be used within your Rust program. It's designed for Rust developers building AI-powered features.
226 stars.
Use this if you are a Rust developer needing a straightforward, non-asynchronous way to access core OpenAI API features without many external dependencies.
Not ideal if you need to access advanced OpenAI API features like file management, fine-tuning models, or content moderation, as these are not supported.
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.
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...
retrage/gpt-macro
ChatGPT powered Rust proc macro that generates code at compile-time.
rsmeowry/chatgpt_rs
OpenAI's ChatGPT API wrapper for Rust 🦀
teunissenstefan/chatgpt-gui
GTK 4 front-end to ChatGPT completions written in Rust
vibheksoni/t3router
Rust library for t3.chat API - Programmatic access to Claude, GPT-4, Gemini, and 50+ AI models....