ImageGeneration
yaml
type: "io.kestra.plugin.ai.completion.imagegeneration"
Examples
yaml
id: image_generation
namespace: company.ai
tasks:
- id: image_generation
type: io.kestra.plugin.ai.completion.ImageGeneration
prompt: >
Four-panel comic page about a data engineer shipping a workflow.
Clean modern line art with soft colors and ample white space.
Panel 1: Early morning desk setup with dual monitors, coffee, and a workflow DAG on screen; calm focused mood.
Panel 2: Debugging a failing task; close-up of terminal and error icon; speech bubble: "hmm…"
Panel 3: Fix applied; green checks ripple through the pipeline; small celebratory detail (cat paw, fist pump).
Panel 4: Deployed dashboard showing metrics trending up; sticky note says "ship it".
Include subtle tech props (cloud icons, database cylinder) but no logos.
Minimal readable text only in tiny bubbles/notes; no large paragraphs of text.
provider:
type: io.kestra.plugin.ai.provider.OpenAI
apiKey: "{{ kv('OPENAI_API_KEY') }}"
modelName: dall-e-3
Properties
prompt *Requiredstring
provider *RequiredNon-dynamicAmazonBedrockAnthropicAzureOpenAIDeepSeekGoogleGeminiGoogleVertexAIMistralAIOllamaOpenAI
Outputs
finishReason string
Possible Values
STOP
LENGTH
TOOL_EXECUTION
CONTENT_FILTER
OTHER
imageUrl string
tokenUsage TokenUsage
Definitions
Azure OpenAI Model Provider
endpoint *Requiredstring
modelName *Requiredstring
type *Requiredobject
apiKey string
clientId string
clientSecret string
serviceVersion string
tenantId string
Google VertexAI Model Provider
endpoint *Requiredstring
location *Requiredstring
modelName *Requiredstring
project *Requiredstring
type *Requiredobject
Google Gemini Model Provider
apiKey *Requiredstring
modelName *Requiredstring
type *Requiredobject
Mistral AI Model Provider
apiKey *Requiredstring
modelName *Requiredstring
type *Requiredobject
baseUrl string
Ollama Model Provider
endpoint *Requiredstring
modelName *Requiredstring
type *Requiredobject
OpenAI Model Provider
apiKey *Requiredstring
modelName *Requiredstring
type *Requiredobject
baseUrl string
io.kestra.plugin.ai.domain.TokenUsage
inputTokenCount integer
outputTokenCount integer
totalTokenCount integer
Deepseek Model Provider
apiKey *Requiredstring
modelName *Requiredstring
type *Requiredobject
baseUrl string
Default
https://api.deepseek.com/v1
Amazon Bedrock Model Provider
accessKeyId *Requiredstring
modelName *Requiredstring
secretAccessKey *Requiredstring
type *Requiredobject
modelType string
Default
COHERE
Possible Values
COHERE
TITAN