Skip links
🔧
Need help with installation?
Send an email to [email protected] to get a quote.

OpenAI Setup

Table of Contents

This guide explains how to generate an OpenAI API secret key and integrate it with MagicAI. It covers creating the key, securely storing it, and configuring it within MagicAI to enable AI-powered features for a seamless connection.

We use words and images as credits to generate responses from the OpenAI API. To understand the costs associated with API usage, please refer to the pricing page at OpenAI API Pricing. There, you’ll find detailed information on word counts, image usage, and associated costs. You can estimate your expected word and image usage to calculate the total cost for your project.

  1. Navigate to https://openai.com/product
  2. Click “Get started”
  3. Sign in to your OpenAI account. If you don’t have an account, you can create one.
  4. Click “Personal”
  5. Click “View API keys”
  6. Click “Create new secret key‍”
  7. Click the “My Test Key” field.
  8. Type a name for your key.
  9. Click “Create secret key‍”
  10. Click the copy button to copy your secret key.
  11. Switch to your MagicAI dashboard.
  12. Click “Settings”
  13. Click “OpenAI Settings”
  14. Paste your OpenAI secret key here.
  15. Click “Save”
  16. And that’s all!
 

Testing your API key

After adding your API key, you can test it by clicking this button:
If it says “SUCCESS”, your API key is working properly.
If it says “FAILED”, you may have entered your API key incorrectly or you may have forgotten an empty string (space character) in your API key. For more info, check out this article: https://magicaidocs.liquid-themes.com/openai-api-doesnt-work/