generate_image_from_text
Create custom images from text descriptions using AI image generation. Convert your ideas into visual content by providing descriptive prompts.
Instructions
Generate an image based on the given text prompt using the configured image provider.
Args:
prompt: User's text prompt describing the desired image to generate
model_type: Optional model type for Google provider ("gemini" or "imagen").
If not specified, uses the default from GOOGLE_MODEL env var.
Returns:
Path to the generated image file using the configured provider's image generation capabilities
Input Schema
Name | Required | Description | Default |
---|---|---|---|
model_type | No | ||
prompt | Yes |
Input Schema (JSON Schema)
{
"properties": {
"model_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Model Type"
},
"prompt": {
"title": "Prompt",
"type": "string"
}
},
"required": [
"prompt"
],
"type": "object"
}