Resource

How to Create an OpenAI Account and Get an API Key

Step-by-step guide for creating an OpenAI account, enabling billing, generating an API key, and connecting AI PHP Apps products.

Why You Need an API Key

AI PHP Apps products connect directly to OpenAI using your own API key.

This gives you control over your AI usage, billing, and account settings.

AI PHP Apps charges a one-time software fee. OpenAI API usage is billed directly through your own OpenAI account.

Step 1: Create an OpenAI Account

Visit:

https://platform.openai.com

  • Create an account or sign in.
  • Verify your email address if prompted.
  • Once signed in, you will have access to the OpenAI dashboard.

Step 2: Add Billing

OpenAI API usage requires billing to be enabled.

  1. Open Settings.
  2. Select Billing.
  3. Add a payment method.

OpenAI charges based on usage, not as a fixed monthly software subscription.

Step 3: Create an API Key

  1. Open API Keys.
  2. Click Create New Secret Key.
  3. Give the key a descriptive name.
  4. Copy the key immediately.
Important: OpenAI only displays the full key once. Save it somewhere secure.

Example:

sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Step 4: Add the API Key to Your AI PHP Apps Product

  1. Open your AI PHP Apps product settings page.
  2. Locate the OpenAI API Key field.
  3. Paste your key.
  4. Save your settings.

Step 5: Test the Connection

Submit a sample request through the application.

If everything is configured correctly, you should receive an AI-generated response.

Frequently Asked Questions

Do I pay AI PHP Apps for API usage?

No. API usage is billed directly through OpenAI.

Can I use my own OpenAI account?

Yes. All AI PHP Apps products are designed to work with your own OpenAI account.

Can I change API keys later?

Yes. You can update your API key at any time.

What if I get an API error?

Check the following:

  • Verify billing is enabled.
  • Verify the API key is correct.
  • Verify there are no extra spaces before or after the key.
  • Verify your OpenAI account is active.

Need more help?

If you have questions about setting up an AI PHP Apps product, contact support and we’ll help point you in the right direction.

Contact Support