FAQ

API errors

The AI Model Hub is designed primarily as an API-first solution. While this approach enables seamless integration into existing codebases, it also presents a challenge: errors and problems that occur may not always be immediately visible or diagnosable. This FAQ addresses the most common problems and guides on their resolution:

How do I fix an unauthorized, incorrect, or no API key error?

Our How-Tos documentation assume you have an environment variable called IONOS_API_TOKEN. The value of this environment variable needs to be a valid Authentication Token. If you get the described error, two reasons are possible:

  • IONOS_API_TOKEN is not set: Check whether your system's environment variable is set. The simplest way to do this is by adding the line

    import os
    print(os.environ.get("IONOS_API_TOKEN"))

    to your code. If nothing is shown, the environment variable is not set. Please set it.

  • Your Authentication Token is not valid: If the IONOS_API_TOKEN environment variable is set, but you still see this error, your authentication token might not be valid. Create a new Authentication Token as described in Access Management.

How do I fix a 404 Not Found error?

Communication with the AI Model Hub is by API endpoints. These endpoints often contain IDs, like a Model ID or a resource-specific identifier. If a resource has been deleted or the ID is incorrect, the request returns a 404 Not Found error.

To confirm that the ID exists, call the parent collection endpoint with a GET request and check the returned list for the ID you intend to use.

How do I fix a 500 Internal Server error?

We do our best to ensure our service is operational 24 hours, 7 days a week. If 500 Internal Server errors occur, it may be due to too much traffic on the AI Model Hub or an urgent infrastructure fix. Please retry your request. If the problem persists, contact IONOS Cloud Support.

Cost & Usage

How can I monitor the costs incurred through usage of the AI Model Hub?

You can monitor your AI Model Hub costs and usage for your contract in the Costs & Usage section of the DCD. Usage data is broken down by model and token type, whether input or output tokens, to give you detailed insight into your consumption. It is displayed in blocks of one million tokens for embedding and large language models, and by image count for image-based models.

Prerequisites: You must be one of the following to access the Cost & Usage view:

Contract Type

Contract Users

Accessible?

Regular contracts

Contract administrators Contract owners

✅ ✅

Reseller contracts

Contract owners

Last updated

Was this helpful?