WP AI Writer Guides

How to set up an OpenAI API account

OpenAI API

The OpenAI API enables you to integrate its powerful AI models into WP AI Writer. This tutorial will guide you through setting up your OpenAI API account and getting it ready for use.

Step 1: Visit the OpenAI API Website

  1. Go to https://openai.com/api/.
  2. Click on Start Building. If you already have an OpenAI account, select Sign in.

Step 2: Create an Account

  1. Create an account – Follow the on-screen instructions to create an account. You can sign up with your email, Google account, or Microsoft account for convenience.
  2. Verify Your Email – After signing up, OpenAI will send a verification email. Check your inbox, open the email, and follow the link to confirm your email address.

Step 3: Set Up Payment Details

  1. After signing in, follow the instructions or navigate to the Billing section in your OpenAI account dashboard.
  2. Add a Payment Method – For API usage beyond the free trial, you’ll need to enter payment details. This ensures you can access and use OpenAI’s various models based on your subscription level.
  3. Familiarize yourself with Usage Limits and Pricing. OpenAI provides different pricing options based on usage, so you can control spending and usage. Remark notably how the GPT-4o mini model provides a cost-efficient, smart and cheap solution that is ideal for the creation of large amounts of content for websites and blogs.

Step 4: Generate Your API Key

  1. In the dashboard, go to the API Keys section.
  2. Click on Create new secret key to generate a new API key.
  3. Once the key is generated, copy it to a secure location. You will only see this key once, so ensure you save it securely.
  4. This is the key you should enter as your API key for OpenAI in WP AI Writer. To do so, navigate to the Settings > Add LLM API Provider sectionn, and select OpenAI. Add your Api key below, and save.
  5. Best Practice: Avoid sharing this key publicly, as it grants access to your API resources.
Open AI API key

Step 5: Test Your API Key

  1. Once you have added OpenAI as an LLM Provider in WP AI Writer, you should see it in your list of LLM Providers (in the Settings > LLM Providers). Click on “Test Connection” to confirm your API key works and WP AI Writer can use it to create content. Optionally, you may also click on “Test LLM” to check if the LLM replies to a simple question “Are you ready for work?”.
  2. After a successful response, your OpenAI API account is ready for use in your WP AI Writer!

By following these steps, you’ve now set up and secured your OpenAI API account and generated an API key that you can use to access OpenAI’s models.

To top