Gem Version GitHub license Tests

Asimov is a gem that enables the use of OpenAI's ML capabilities within SaaS applications. With that in mind it includes:

  • The ability to use multiple OpenAI configurations (API keys and organization ids) within a single application.
  • Support for configuring connections with timeouts and proxies to make applications robust against failure and to support complex network environments.
  • Methods for all non-streaming endpoints in the OpenAI API. (Streaming support is under consideration).

You can use this gem to write applications that generate text with GPT-3, create images with DALLĀ·E, or write code with Codex.

The name Asimov is a tribute to Isaac Asimov, a 20th century author whose work referenced AI extensively, most famously with his "Three Laws of Robotics". Asimov's stories explored the ethical and philosophical implications of using artificial intelligence and robots in society, and he is often credited with helping to popularize the concept of AI in science fiction. His work has had a lasting impact on the genre and has influenced many other writers and thinkers.

Documentation and Information

  • User Documentation - The documentation is maintained in the repository's wiki.
  • Announcements - Announcements of interest to the Asimov community will be posted here.
  • Bug Reports - If you discover a problem with Asimov, please submit a bug report in the tracker.
  • Client API - Ruby documentation for the Asimov::Client API


Bug reports and pull requests are welcome on GitHub at This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.


The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the ruby-openai project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.


Asimov was originally created from a fork of the ruby-openai. It would not exist without the work of alexrudall and other contributors to that gem.