Generate picture
Draw pictures from a description and save them as PNG files (OpenAI, Azure OpenAI, OpenAI-compatible, Vertex AI Imagen, Amazon Bedrock).
Command in the Generative AI toolkit · id ooa.genai/generate_image · 18 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Prompt | String | Yes | What the picture shows, its style and colours. | |
| Output folder | File | No | generated-images | Folder for the pictures (created when missing). |
| File name | String | No | picture | File name start; pictures are numbered: picture_1.png, picture_2.png. |
| Number of images | Number | No | 1 | How many pictures, 1 to 4. |
| Size | String | No | 1024x1024 | Width x height in pixels; providers that work with aspect ratios use the nearest one. |
| Provider | String | No | openai | Who runs the model: OpenAI, Azure OpenAI, Anthropic, OpenAI-compatible (LiteLLM, vLLM, Ollama), Hugging Face (its router or your own TGI server), AWS SageMaker (a model on an Amazon SageMaker endpoint), AWS Bedrock or Google Vertex AI (Gemini). |
| Connection | String | No | Name of a Model Connection (provider, model and key managed in one place). Leave empty to set them on this action. | |
| Model | String | No | Model name; the deployment name for Azure OpenAI; the endpoint name for AWS SageMaker; the model or inference profile id for AWS Bedrock. | |
| API key | Credential | No | API key or access token from the vault (not needed for some self-hosted endpoints). For AWS Bedrock and AWS SageMaker: the AWS secret access key (or ACCESS_KEY_ID:SECRET). For Google Vertex AI: a service-account JSON key or an access token. | |
| Endpoint address | String | No | Endpoint; required for Azure OpenAI, Vertex AI (https://REGION-aiplatform.googleapis.com/v1/projects/PROJECT/locations/REGION) and self-hosted models (for a TGI server, e.g. http://tgi-host:8080/v1). | |
| Hide personal data | Boolean | No | true | Replace emails, phone and card numbers, IBANs and similar before sending; restored in the answer. |
| AWS access key ID | Credential | No | AWS Bedrock and AWS SageMaker only: AWS access key id from the vault (api_key then holds the secret access key). | |
| AWS region | String | No | AWS Bedrock and AWS SageMaker only: AWS region, e.g. eu-west-1. | |
| Timeout (seconds) | Number | No | 0 | Seconds to wait for the model; 180 when 0. |
| AWS session token | Credential | No | AWS Bedrock and AWS SageMaker only: the session token from the vault, when the access key is a temporary one (for example from an assumed role). | |
| Prompt strength | Number | No | How closely the picture follows the description; higher is closer (Amazon Titan and Nova from 1.1 to 10, Stable Diffusion XL up to 35). Model default when empty. | |
| Steps | Number | No | How many refining passes the model makes, 10 to 150; more is slower and more detailed (Stable Diffusion XL). Model default when empty. | |
| Seed | Number | No | Same seed and description give the same picture (Amazon Titan, Nova and Stability models). Random when empty. |
Outputs
| Output | Type | What it is |
|---|---|---|
| file | String | The first picture's file. |
| files | List | Every picture's file. |