Frequent questions

Modified on Sun, 2 Feb at 8:40 PM

1. Question: Can I use a prepaid card for payment?

Answer: Yes, you can use prepaid cards for payment via Stripe if your bank supports such transactions. However, some prepaid cards may not support subscriptions or recurring payments. We recommend checking your bank's terms before using them.


2. Question: How to use AI API without an internet connection?

Answer: Unfortunately, using the AI API without an internet connection is not possible, as it requires access to servers for processing requests. However, you may consider deploying a local model if your use case allows it.


3. Question: How to use yours API in "Programming language"?

Answer: To work with the API in different programming languages, follow these steps:

  1. Specify which programming language you are using.

  2. Refer to our API documentation.

  3. Ensure you have installed the necessary libraries (e.g., requests for Python, axios for JavaScript, etc.).

  4. Use code examples from the documentation to send test requests.

If you have specific questions regarding your programming language, contact us, and we will help!

4. Question: How many songs can be created?

Answer: The number of songs that can be created depends on your subscription plan. You can find detailed pricing and limitations here: pricing link.


5. Question: What errors might occur when using the API?

Answer: The most common errors when working with the API are:

  • 401 Unauthorized – Check if your API key is correct.

  • 403 Forbidden – Your API key does not have access to this resource.

  • 429 Too Many Requests – You have exceeded the request limit per minute.

  • 500 Internal Server Error – Temporary server error, please try again later.

If you encounter a different error, contact technical support.



7. Question: How to send a request to the API and get a response?

Answer: Sending a request to the API depends on the programming language you are using. General steps:

  1. Obtain an API key from your account.

  2. Install the necessary libraries (e.g., requests for Python).

  3. Send an HTTP request (GET/POST) to the appropriate endpoint.

  4. Receive and process the response.

Example code in Python:

import requests
 headers = {"Authorization": "Bearer YOUR_API_KEY"}
 response = requests.get("<https://api.example.com/data>", headers=headers)
 print(response.json())

If you have any questions, refer to the documentation or contact support.



8. Question: What are the API limitations?

Answer: API limitations depend on the subscription plan and terms of use. The main limitations may include:

  • Number of requests per minute or day.

  • Restrictions on the size of uploaded data.

  • Available features depending on the subscription.

We recommend checking our documentation or pricing page for more details.


9. Question: How to reset the API key?

Answer: Currently, this feature is unavailable, but we will implement it in the next release. Additionally, you will be able to rename keys, delete them, manage access, and check the limits for each key.


10. Question: We mixed up the support chat and the playground.

Answer: If you accidentally used the Playground instead of the support chat (or vice versa), follow these steps:

  1. Make sure you are in the correct section.

  2. The Playground is designed for testing API requests, but it is not intended for communication with support.

  3. To contact support, use the "Support Chat" section.

  4. If you mistakenly sent a request to the wrong section, please resend it to the correct one.

If you have any issues, contact our support team, and we will assist you!



11. Question: Does AIML token expire?

Answer: Yes, the AIML token has an expiration period. Once it expires, it becomes invalid, and you will need to request a new token. We recommend:

  1. Checking the API documentation for token lifespan details.

  2. Using an automatic token refresh mechanism if supported by your application.

  3. Ensuring that your device's time settings are correct in case of token issues.

If you have additional questions, contact support.


12. Question: How many API calls can I make on the Start-Up plan?

Answer: On the Start-Up plan, you receive 10 million tokens. The cost of 1 million tokens is $0.5. These tokens can be used for working with any models, as well as for generating images and videos, according to the prices listed on the pricing page: https://aimlapi.com/ai-ml-api-pricing


13. Question: How do I delete my account?

Answer: We are very sorry to hear that.

You need to join our Discord: https://discord.com/channels/1207275734695944252/1254720670986797056

Create a ticket with the subject "Account Deletion".

In the ticket, please provide your email, the last 4 digits of the card used for payment, and the name of the bank. If you paid with cryptocurrency, please provide: email, payment, link ID, payment ID, and crypto transaction confirmation (scan).

Your account will be deleted within a week.

We would also greatly appreciate it if you could share what we could improve to have you stay with us.


14. Question: Can I work with the "model" for free?

Answer: Yes, by default you are on the free tier, which provides 10 free requests per hour through the API (with a context limit of 256). Free requests are also available in the AI Playground, except for PRO models. You can find detailed information at the following link: https://docs.aimlapi.com/faq/free-tier


15. Question: How can I generate an image?

Answer: To work with images, follow these steps:

1) Go to the "AI Playground" section — it's located in the top left of the screen.

2) Select the "Image" option.

3) If you need to change the model, you can do so on the right side of the screen, above the model parameters.

4) Adjust the model parameters as needed.

5) Write your prompt in the field at the bottom center of the screen.

6) After setting it up, click the button to generate the image.

Now everything is set up to work with images!


16. Question: Can this "framework" key be used?

Answer: The ability to use this key depends on the specific framework and API. If you need to check compatibility, refer to our documentation or contact technical support.

 

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article