Actions14
Foundation Model → Send Request
AI-generatedSummary
Send a request to an AI model using the IONOS Cloud AI Model Hub (native API or OpenAI-compatible) to generate a prediction.
Inputs
- apiType (required) — Type of API to use: 'native' for IONOS AI Model Hub native API or 'openai' for OpenAI-compatible endpoints.
- region (required) — Region for the AI Model Hub API (currently only Berlin 'de-txl').
- modelId (required) — The ID of the model to use for prediction.
- input (required) — The input text for the model.
- additionalOptions — Optional settings: collection ID for RAG, collection query, max length of generated text, and temperature (sampling).
Output shape
object
The raw JSON response from the AI Model Hub API containing the model's prediction.
Examples
Example 1: Generate text with a native model
Set apiType='native', region='de-txl', provide modelId, input text, and optionally adjust max_length or temperature.
Example 2: Use a model with RAG collection
Same as above, additionally set additionalOptions.collectionId and/or additionalOptions.collectionQuery.