# How to Use Chatgpt API

> To use the ChatGPT API on OpenAI's platform, log into your account, open the Settings menu via the top-right gear icon, and navigate to API keys. Create a new secret key by entering a name and project, click create, and copy the key to your clipboard for integration.

Canonical: https://livedemo.ai/tutorials/how-to-use-chatgpt-api/
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a5117ab56e05a00ffdc58/preview?step=1

## Steps

1. Log in or sign up for an account at OpenAI's platform .
2. Click the gear icon located in the top-right corner of the window to open the "Settings" menu.
3. Navigate to API keys."
4. On the API Keys page, select the "Create new secret key" option.
5. Enter the "Name" and "Project" for the new secret key.
6. Select "Create secret key" to generate.
7. Click 'Copy Key' to save it to your clipboard, ensuring it’s prepared for integration.
