What is an API Credit?
An API credit is what you get charged for using our service. Most API calls are a single API Credit, so 1 API Credit equals 1 API Call in most cases. However, some calls cost additional API Credits, so please take a look at our documentation to understand those situations. In addition, taking a look at the job details shows you the API Credit cost for the job.Some readersHow do I create an image with the API?
To create an image using one of our image endpoints, you must send an HTTP POST request to the corresponding endpoint. Since we have many endpoints that generate images, you will need to find the correct one for your scenario. For in-depth documentation on using the API, check out our API Reference documentation.. For an example of using the API checkout, our Examples section in our documentation..Some readersWhat is the API Rate Limit?
To maintain quality of service (QoS) between all of our customers and ensure that no one can abuse our system, we apply a rate limit on the API. If you exceed the rate limit, your request will get temporarily rejected, and you will receive a 429 response. In every request's HTTP Headers, you can view your current rate request threshold. Our current rate limit is 60 requests/minute. Keep in mind this is a sliding window since it's duration-based. So, for example, if a request takes 5 seconds toFew readersWhat is a webhook?
Every API request can be passed in a webhook where the completed response will be sent upon completion. This URL must be an HTTPS endpoint and publicly accessible via the internet.Few readersWhere do I get my API key?
You can obtain your API Key from the API Keys section in settings.Few readersWhy is the asset not returned in the response?
The asset is only returned in the response if storage is explicitly disabled. The asset object gets stored in your account's cloud storage by default. These assets are also cached in our CDN and available for public access using the Public CDN URL. There are no bandwidth, API Credits, or other costs associated with using assets from your cloud storage account via the Public CDN URL. Therefore, it is highly advisable to keep storage enabled to access all of the features available to you in your aFew readers