Member-only story
Using Ruby Gem — Ruby OpenAI to play OpenAI

The OpenAI API provides a simple interface to state-of-the-art AI models for natural language processing, image generation, semantic search, and speech recognition. If you are proficient in Ruby, Ruby Gem — Ruby OpenAI is a suitable gem for you to play OpenAI API with it. This article shows the steps to set up in OpenAI platform and the way to use the gem to create pictures and translate data.
Setup on the OpenAI platform
- Signup or Login to OpenAI platform
First, sign up for an account in the OpenAI platform and login. After login, it shows the Chat page.

- Create an API key
Click the Docs button and go to the Quickstart page. It shows the quickstart of how to use OpenAI API for developers. The quickstart teaches the user how to create an API key.

- Add credit balance
Before using OpenAI API, we need to add credit to our credit balance in our account. Go to the account…