Tutorials

The IONOS AI Model Hub offers powerful AI capabilities to meet various needs. Here are six pivotal tutorials on how you can implement the features of this service:

Prerequisite: Authentication Tokens

Before using the IONOS AI Model Hub, you must authenticate your requests using an authentication token. These tokens ensure secure access and help manage user permissions, ensuring that only authorized users can interact with the service.

Key Features

  • Tokens are associated with specific IONOS Public Cloud users and grant access to the AI Model Hub.

  • Usage and billing are tied to the IONOS Public Cloud contract owner, who is responsible for the associated users.

For detailed instructions on how to generate an IONOS Public Cloud contract, create users, and generate authentication tokens, see Access Management tutorial.

Tutorial 1: Text Generation

Text generation models enable advanced language processing tasks, such as content creation, summarization, conversational responses, and question-answering. These models are pre-trained on extensive datasets, enabling high-quality text generation with minimal setup.

Key features

  • Access open-source Large Language Models (LLMs) through an OpenAI-compatible API.

  • Ensure data privacy with processing confined within Germany.

For step-by-step instructions on text generation, see the Text Generation tutorial.

Tutorial 2: Image Generation

Image generation models allow you to create high-quality, detailed images from descriptive text prompts. These models can be used for applications in creative design, marketing visuals, and more.

Key features

  • Generate photorealistic or stylized images based on specific prompts.

  • Choose from models optimized for authenticity or creative and artistic outputs.

To learn how to implement image generation, see the Image Generation tutorial.

Tutorial 3: Text Embeddings

Embedding models allow you to create numerical representations of texts, which are similar if the texts are semantically similar. These models are ideal for applications like text retrieval, comparison, ranking, and so on.

Key features

  • Identify texts that answer a query based on semantic similarity between the query and the potential answer.

  • Compare texts to determine their semantic closeness or difference.

To learn how to derive embeddings and calculate the similarity of texts, see the Text Embeddings tutorial.

Tutorial 4: Document Collections

Vector databases enable you to store and query large collections of documents based on semantic similarity. Converting documents into embeddings allows you to perform effective similarity searches, making it ideal for applications like document retrieval and recommendation systems.

Key features

  • Persist documents and search for semantically similar content.

  • Manage document collections through simple API endpoints.

For detailed instructions, see Document Collections tutorial.

Tutorial 5: Retrieval Augmented Generation (RAG)

RAG combines the strengths of foundation models and vector databases. It retrieves the most relevant documents from the database and uses them to augment the output of a foundation model. This approach enriches the responses, making them more accurate and context-aware.

Key features

  • Combine foundation models with more context retrieved from document collections.

  • Enhance response accuracy and relevance for user queries.

To learn how to implement Retrieval Augmented Generation, see the Retrieval Augmented Generation tutorial.

Tutorial 6: Tool Integration

The IONOS AI Model Hub can be integrated into third-party tools that support OpenAI-compatible APIs. This enables you to use hosted foundation models for both language and image tasks within existing platforms — without managing infrastructure or model hosting.

Key features

  • Connect to frontend and development tools using the OpenAI-compatible API.

  • Leverage hosted Large Language and text-to-image models in external applications.

  • Integrate seamlessly with tools like AnythingLLM to power chat interfaces, document Q&A, and more.

For detailed guidance on integrating with tools, see the Tool Integration tutorial.

Tutorial 7: Tool Calling

Tool calling enables AI models to interact with external services and APIs by recognizing when more data or actions are required. This feature allows models to fetch external information or trigger actions through structured requests, helping to extend the model’s capabilities beyond its initial training data.

Key Features

  • Enable AI models to make calls to external tools and services in response to user queries.

  • Use JSON schemas to define and structure the tool requests, ensuring precise parameters.

  • Seamlessly integrate external APIs for enhanced functionality, such as retrieving real-time data or performing system actions.

For a detailed walkthrough, including an example with a weather application, see the Tool Calling tutorial.

Explore further

These tutorials will guide you through the basic functionality of the AI Model Hub, providing clear and actionable steps to integrate advanced AI capabilities into your applications.

To understand how real-world solutions are built with the IONOS AI Model Hub, see Use Cases.

Last updated

Was this helpful?