API Quickstart
Get started with Ninja’s APIs and power your AI products with unmatched speed, scalability, and reliability.
Registration
Sign up at MyNinja.ai to start using our APIs.
You can sign up for free or subscribe to an Ultra or Business tier. Ultra and Business give you unlimited access to the playground to experiment with flagship, reasoning, and Deep Research models*.
When you’re ready to move from exploration to execution, purchase credits to start building AI products and experiences for coding, writing, and much more.
* Subject to abuse thresholds
Purchase Credits
After signing up for MyNinja.ai, go to the bottom of the left panel and click your profile icon.
Select “Manage account and settings”.
Then go to “Subscription & credits”.
Under “Your credits,” click “Purchase credits”.
In the “Auto-pay amount” field, enter the amount you'd like to purchase for credits (minimum $30).
In the “Auto-pay threshold” field, set the threshold amount that when your balance drops below this amount we will reload the “Auto-pay amount”. This ensures you won’t run out of credits or have your API key stop working (minimum $25).
Select your preferred payment method and click “Confirm & pay.” You will then be redirected to a Stripe billing screen to complete your payment.
Generate an API key
After purchasing your credits, go to the bottom of the left panel and click your profile icon.
Select “Manage account and settings”.
Then go to “API keys”.
Click the “Create a new key” button.
In the “Name” field, enter a name for your key (e.g., Production Key) and then click “Create Key”.
Once your key is generated, copy it and save it somewhere secure, as anyone with access can use it. If needed, you can regenerate a new key.
Pricing
Model
Input price / per million tokens
Output price / per million tokens
SuperAgent Turbo
$0.11
$0.42
SuperAgent Apex
$0.88
$7.00
SuperAgent-R 2.0
$0.38
$1.53
Deep Research
$1.40
$5.60
Rate Limits
Ninja AI enforces rate limits on inference requests per model to ensure that developers are able to try the fastest inference.
Model
Request per minute (RPM)
SuperAgent Turbo
50
SuperAgent Apex
20
SuperAgent-R 2.0
30
Deep Research
5
Frequently Asked Questions
Here's what you need to know about Ninja's AI API based on what we get asked the most.
How can I increase my auto-pay threshold and amount?
In Ninja, go to the bottom of the left panel and click your profile icon.
Select “Manage account and settings,” then go to “Subscription & credits”.
Under “Your credits,” click “Manage credits”.
In the “Auto-pay amount” field, enter the amount you'd like to increase for credits (minimum $30).
In the “Auto-pay threshold” field, edit the threshold amount that when your balance drops below this amount we will reload the “Auto-pay amount”. This ensures you won’t run out of credits or have your API key stop working (minimum $25).
Click “Save changes” to confirm.
How can I cancel my auto-payment agreement?
In Ninja, go to the bottom of the left panel and click your profile icon.
Select “API keys & credits” then go to “Your credits” section.
Under “Your credits,” click “More options”.
Select “Cancel auto-pay for credits”(minimum $30).
Click “Delete auto-pay” to confirm.
How do I delete an API key?
In Ninja, go to the bottom of the left panel and click your profile icon.
Select “Manage account and settings,” then go to “API keys”.
Find your API key and select the trash icon to the right.
Click “Delete API key” to confirm.
How can I view the usage of each API request?
In Ninja, go to the bottom of the left panel and click your profile icon.
Select “Manage account and settings”.
Navigate to “APIs” and then click “Usage”.
On the “Usage” page, you’ll see a table displaying the following details for each API:
Key name
Model
Input and output tokens
Input and output cost
Time stamp for request
Total cost