Skip to main content
All APIXO API requests require authentication using a Bearer token.

Get Your API Key

1

Create an Account

Sign up at apixo.ai if you haven’t already.
2

Access the Dashboard

Navigate to DashboardAPI Keys.
3

Generate a Key

Click Create New Key, give it a name, and copy the key immediately.
API keys are only shown once. Store it securely.

Using Your API Key

Include your API key in the Authorization header of every request:
Authorization: Bearer YOUR_API_KEY
curl -X POST https://api.apixo.ai/api/v1/generateTask/nano-banana \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"request_type": "async", "input": {"prompt": "A sunset"}}'

Security Best Practices

Never expose keys in client-side code

API keys should only be used in server-side applications

Use environment variables

Store keys in .env files, never commit them to git

Rotate keys regularly

Create new keys and revoke old ones periodically

Set up IP allowlists

Restrict key usage to specific IP addresses in the dashboard

Error Responses

If authentication fails, you’ll receive:
{
  "code": 401,
  "message": "Invalid or missing API key"
}
Common causes:
  • Missing Authorization header
  • Invalid or revoked API key
  • Key doesn’t have permission for the requested model

Next Steps

Now that you’re authenticated, try the Quickstart guide to generate your first image.