GPT Image 2.5 is live — OpenAI's newest image model, targeted edits that leave the rest of the frame alone
rreAPI Docs

Authentication

How to create and use reAPI keys.

Bearer token

Send your API key as a Bearer token on every request:

Authorization: Bearer YOUR_API_KEY

This matches the OpenAI scheme — most OpenAI clients work by changing base_url and api_key.

Create a key

  1. Sign in at reapi.ai.
  2. Go to Dashboard → API Keys.
  3. Click Create new key, give it a name (e.g. production-server).
  4. Copy the key. It is shown only once — store it in a secret manager.

You can create as many keys as you like (e.g. one per environment, one per service).

Revoke a key

Revoke compromised keys immediately on the dashboard. Pending tasks created with the key continue to completion (and bill credits), but no new requests can be made.

Key format

Keys have no fixed prefix. Send the full key exactly as it was shown when you created it.

Storing keys

Don't commit keys to git or paste them in chat. Use a secret manager:

  • Local dev: .env.local (in .gitignore)
  • Vercel: Environment Variables
  • AWS / GCP: Secrets Manager / Secret Manager
  • Docker: Docker secrets or --env-file

Errors

HTTPcodeCauseFix
40110001No Authorization headerAdd the header
40110002Header isn't Bearer <key>Use Bearer <key>
40110003Key invalid / typoCheck the dashboard
40110004Key has been revokedMint a new key
40110005Sign-in required (session-cookie path only)Use API-key auth, or sign in
40310006Origin not in allow-list (browser-only)Only relevant for session-cookie auth from the browser; API-key requests aren't affected
40230001Balance below request costBuy credits or wait for monthly refresh

Full list: Errors.

Table of Contents