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:
curl -X POST https://api.artificialstudio.ai/api/run \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool": "create-image", "input": {"prompt": "Hello world"}}'
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

EndpointFreePro
POST /api/run20 req/min60 req/min
GET endpoints60 req/min200 req/min
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