Before you start
You do not need to buy credits before creating an API key. Each account gets500 free compression credits every month. If you need more than that, you can buy additional credit packs from the dashboard without rotating the key.
Website flow
Option 1: Start from the Developers page
- Open
https://smartpng.com/developers. - Click
Get Free API Keyif you want to start with the free monthly allowance. - If you already know you need paid volume, click
Get API Key & Credits. - If you are not signed in, SmartPNG redirects you to
https://smartpng.com/sign-in?redirect=/dashboard/api-keys.
Option 2: Go directly to the dashboard
- Sign in to your SmartPNG account.
- Open
https://smartpng.com/dashboard/api-keys. - Use the left sidebar if needed:
Dashboard>API Keys.
Create the key
- Click
Create New API Key. - Enter an optional name such as
Production,Staging, orWordPress Plugin. - Click
Create API Key. - Copy the generated key and store it in your application secrets manager or environment configuration.
Buy additional credits
If your account needs more than the monthly free allowance:- Open
https://smartpng.com/dashboard/billing. - Click
Purchase Credits. - Choose the number of
1,000-credit packages. - Complete checkout.
- Return to the billing page and verify the updated balance.
https://smartpng.com/developers by clicking Get API Key & Credits.
Verify the balance
After sign-in, the website shows your credits in two places:Dashboard > API Keys: the page showsAvailable CreditsDashboard > Billing: the page showsPaid balance,Free remaining,Free used this month, and the next reset date
Rotate or revoke a key
If a key is exposed or no longer needed:- Open
https://smartpng.com/dashboard/api-keys. - Find the key in the table.
- Click
Revoke.