Skip to main content
All API requests require an API key passed in the Authorization header.

Get your API key

1

Sign in

Go to Artificial Studio and sign in to your account.
2

Create a key

Navigate to API Keys and click Create API Key.
3

Store it securely

Copy and save your key. It is only shown once.
Your API key is only displayed once. Store it in an environment variable or secrets manager — not in your source code.

Using your API key

Include the key in the Authorization header of every request:
Pass your API key directly in the Authorization header. Do not use the Bearer prefix.

Security best practices

  • Never expose your API key in client-side code or public repositories
  • Use environment variables to store your key
  • Rotate keys regularly if you suspect they have been compromised
  • Use separate keys for development and production

Rate limits

When you exceed the rate limit, the API returns 429 Too Many Requests. Wait before retrying.

Credits

Each generation consumes credits. The cost depends on the tool and model — check each model’s documentation page for pricing.
  • View your balance at Account Settings
  • Running out of credits returns 402 Payment Required