Authorization header.
Get your API key
Sign in
Go to Artificial Studio and sign in to your account.
Create a key
Navigate to API Keys and click Create API Key.
Using your API key
Include the key in theAuthorization 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
| Endpoint | Free | Pro |
|---|---|---|
POST /api/run | 20 req/min | 60 req/min |
GET endpoints | 60 req/min | 200 req/min |
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