Skip to main content

API Key

Bring Your Own Key Model

Our plugin uses a Bring Your Own Key model, acting as a bridge between your WordPress site and OpenAI.

To use our plugin, you need an OpenAI account and API credits. This approach lets you control your API keys and ensures access to the latest OpenAI technology.

info

Buying our plugin does not include any OpenAI credits. You need to purchase credits separately from OpenAI. Check their pricing page for details.

How to Generate an OpenAI API Key

To generate an OpenAI API key, follow these steps:

  1. Sign up at OpenAI Platform.
  2. Fill in your personal information.
  3. Accept the terms of service and privacy policy.
  4. Click Create Account.
  5. Activate your account via the email link from OpenAI.
  6. Log in at OpenAI Platform.
  7. Go to the API Keys tab or visit API Keys directly.
  8. Click Create an API key.
  9. Name your API key (e.g., "My First API Key").
  10. Click Create.
  11. Your API key will be displayed. Copy the key (e.g., sk_1234567890abcdef1234567890abcdef).
  12. Go to the Settings - AI Engine tab in our plugin, paste your API key, and click Save.
info

New users get a free $5 credit from OpenAI. After it's used up, you'll need to buy more credits. Check your usage here. If you see "You exceeded your current quota," purchase additional credits from OpenAI.

info

Having a paid ChatGPT Plus subscription does not grant access to the OpenAI API. You need to buy API credits separately.

Error Codes and Solutions

Below are common error codes and their solutions. These errors are generated by the OpenAI API, not our plugin.

ErrorCauseSolution
401 - Invalid AuthenticationInvalid AuthenticationEnsure the correct API key and requesting organization are being used.
401 - Incorrect API key providedThe requesting API key is incorrect.Ensure the API key used is correct, clear your browser cache, or generate a new one.
401 - You must be a member of an organization to use the APIYour account is not part of an organization.Contact OpenAI to get added to an organization or ask your organization manager to invite you.
429 - Rate limit reached for requestsYou are sending requests too quickly.Pace your requests. Read the Rate limit guide.
429 - You exceeded your current quota, please check your plan and billing detailsYou have hit your maximum monthly spend (hard limit).Add your payment info in your OpenAI account and purchase some credits.
429 - The engine is currently overloaded, please try again laterOpenAI servers are experiencing high traffic.Retry your requests after a brief wait or contact OpenAI.
500 - The server had an error while processing your requestIssue on OpenAI servers.Retry your request after a brief wait and contact OpenAI if the issue persists. Check the status page for updates.

For more information, visit the OpenAI API Reference.