Migration Guide from the Legacy predictions Endpoint
Retired: The native /predictions endpoint retired on May 5, 2026.
If you use the native /predictions endpoint (For example: https://inference.de-txl.ionos.com/models/{modelId}/predictions), migrate to the OpenAI-compatible API for standard text and image generation use cases. The migration does not affect the /collections, /documents, and /query endpoints.
This migration simplifies integration with OpenAI-compatible tools and SDKs and provides a standardized developer experience.
Before you begin
To complete this migration you need:
An active IONOS CLOUD AI Model Hub account with a valid API token.
A model ID for your use case, which you can retrieve from
https://openai.inference.de-txl.ionos.com/v1/models.An existing document collection. It is required for Retrieval Augmented Generation (RAG) only.
Best practice: Place the retrieved context in the system message to separate the instructional context from the user’s question. The approach ensures a cleaner separation of concerns, simplifies follow-up questions, and improves model adherence to grounding information.
Migrate text generation
Restructure the request body
Before:
{
"type": "prediction",
"properties": {
"input": "Please give me 5 domain suggestions for a flower shop in Berlin. Provide for each domain name a paragraph explaining the domain name and why it is valuable.",
"options": {
"max_length": "1000",
"temperature": "0.5"
}
}
}After:
{
"model": "openai/gpt-oss-120b",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Please give me 5 domain suggestions for a flower shop in Berlin. Provide for each domain name a paragraph explaining the domain name and why it is valuable."
}
],
"max_tokens": 2000,
"temperature": 0.5
}Migrate image generation
Restructure the request body
Before:
{
"type": "prediction",
"properties": {
"input": "Draw an image of a futuristic city skyline at sunset, digital art.",
"options": {
"size": "1024x1024"
}
}
}After:
{
"model": "black-forest-labs/FLUX.1-schnell",
"prompt": "A futuristic city skyline at sunset, digital art.",
"n": 1,
"size": "1024x1024"
}Migrate retrieval augmented generation
Users requiring Retrieval-Augmented Generation (RAG) or document-based querying can now migrate to the native /query endpoint alongside the OpenAI-compatible API. This approach splits the process into two distinct steps:
Last updated
Was this helpful?