↗OpenAI API Lab BASE api.openai.com/v1

Edition 2026 · For students

What can the OpenAI API actually do?

Nine small experiments, one for each capability. Pick one, change the settings, and look at the request that goes to the API. Every demo is plain HTML and JavaScript, so you can read the source too.

Step 0

Your API key

Create a key ↗
How do I get started?
  1. Create an account on the OpenAI platform.
  2. Add a payment method or prepaid credits to your account.
  3. Create an API key under API keys.
  4. Paste the key above. We check it by listing your models, which is free.
Is my API key stored safely?

The key is stored in your browser's local storage and is only sent to api.openai.com. Anyone with access to this device and browser could read it, so remove it when you use a shared computer. In a real app you would never put an API key in front-end code. Instead, a server would make the calls.

Is this free?

No. OpenAI charges per use. Text is billed per token, images per image and quality level, and audio per minute or per character. Small models like gpt-6-luna cost fractions of a cent per request.