Actions6
- Model Actions
- OpenAI Compatible Actions
OpenAI Compatible → Generate Image
AI-generatedSummary
Generate one or more images based on a text prompt using an OpenAI-compatible image generation model from IONOS Cloud AI Model Hub.
Inputs
- Model (required) — Select the ID of the image generation model to use, loaded live from the IONOS API.
- Prompt (required) — Provide a text description of the desired image to generate.
- Additional Fields — Optional parameters including number of images to generate, image size (1024x1024, 1024x1792, 1792x1024), response format (currently only Base64 JSON), and unique end-user identifier.
- Include Response Headers — Optionally include the HTTP response headers and status code alongside the response body.
Output shape
The API response containing generated image data encoded in Base64 JSON format, with possible multiple images in a list.
If 'Include Response Headers' is enabled, the output wraps the response body under a "body" key alongside "headers" and "statusCode" keys. By default, the response includes JSON with generated image(s) encoded as Base64 data. Image size and number of images are configurable via optional parameters.