Quickstart
Get started with running your API environments using MAXIMIZEAI.
Generate an API Key
To use MAXIMIZEAI Services, you’ll need an API key. Here’s how to generate one:
- Login to your MAXIMIZEAI account 
- Go to the API Keys Dashboard ( Coming Soon ) 
- Click on the ”+ API Key” button to create a new key. 
- Name your key something descriptive (e.g., “Development Key”) to keep things organized. 
- Copy and save your API key in a secure place — you won’t be able to view it again later! 
- On the API Keys list, click the "More" button next to your new key, then select "IP Whitelist". 
- Enter your IP address to add it to the whitelist for secure access. 
Using Your API Key to run a API
Once you have your API key, you can start using MAXIMIZEAI services. Here’s how to authenticate your requests:
const options = {
  method: 'GET',
  headers: {
    Authorization: 'Bearer YOUR_API_KEY_HERE'
  }
};
fetch('https://openapi.maximizeai.org/v1/balance', options)
  .then(response => {
    if (!response.ok) {
      throw new Error(HTTP error! Status: ${response.status});
    }
    return response.json();
  })
  .then(data => console.log('Balance:', data))
  .catch(err => console.error('Error fetching balance:', err));The output of the above code will be the following JSON Response:
{
  status: 200,
  balance: {
    credits: 1200,
    plan: "Pro",
    
  }
  
}Last updated