API Key Setup

How to obtain and configure your OpenAI API key for AI Content Studio.

Getting Your OpenAI API Key

AI Content Studio uses OpenAI's GPT models to generate content. You'll need an API key from OpenAI to use this module.

Step 1: Create an OpenAI Account

  1. Visit platform.openai.com
  2. Click Sign Up and create an account
  3. Verify your email address

Step 2: Generate an API Key

  1. Log in to your OpenAI account
  2. Navigate to API Keys in the left sidebar
  3. Click Create new secret key
  4. Give your key a name (e.g., "AI Content Studio PrestaShop")
  5. Copy the generated key immediately (you won't be able to see it again!)

Important: Keep your API key secure. Never share it publicly.

Step 3: Add Credits to Your Account

OpenAI uses a pay-as-you-go model. You'll need to add credits to use the API:

  1. Go to Billing in your OpenAI dashboard
  2. Click Add payment method
  3. Add credits (we recommend starting with $10-20)

Step 4: Configure in AI Content Studio

  1. Open your PrestaShop back office
  2. Go to Modules > Module Manager
  3. Find AI Content Studio and click Configure
  4. Navigate to the Settings tab
  5. Paste your API key in the "OpenAI API Key" field
  6. Click Save

API Key Best Practices

  • Use a dedicated key: Create a separate API key just for AI Content Studio
  • Set usage limits: In your OpenAI dashboard, set monthly spending limits
  • Monitor usage: Regularly check your API usage and costs
  • Rotate keys: If you suspect your key was compromised, create a new one

Understanding Costs

GPT token usage determines your costs:

ModelInput CostOutput Cost
GPT-5-mini$0.15/1M tokens$0.60/1M tokens
GPT-5$2.50/1M tokens$10.00/1M tokens
GPT-4o$2.50/1M tokens$10.00/1M tokens

Tip: Start with GPT-5-mini for cost-effective content generation. Upgrade to GPT-5 for premium quality when needed.