Skip to content

Multimodal ​

Optional extras:

bash
pip install --extra-index-url https://elsai-agents.elsai.ai/root/ "elsai-agents-tools[diagram]==0.3.0"
pip install --extra-index-url https://elsai-agents.elsai.ai/root/ "elsai-agents-tools[twelvelabs]==0.3.0"

Tools ​

generate_image_stability ​

Generate images from text prompts using Stability AI models with configurable size and style

Environment variables ​

VariableRequiredDefaultDescription
STABILITY_API_KEYyes—Stability AI API key
STABILITY_MODEL_IDoptionalstability.stable-image-core-v1:1Stability model to use
STABILITY_OUTPUT_DIRoptionalunsetIf set, save generated images to this folder

image_reader ​

Load local image files and return descriptions or extracted text for vision-style agent reasoning

Environment variables ​

No dedicated environment variables.

generate_image ​

Generate images from prompts using Amazon Bedrock image models (e.g. Titan, Stable Diffusion)

Environment variables ​

VariableRequiredDefaultDescription
AWS_REGIONyes—AWS region for Bedrock / Polly when not already set in your environment

nova_reels ​

Create short videos from text prompts with Amazon Nova Reels on Bedrock

Environment variables ​

VariableRequiredDefaultDescription
AWS_REGIONyes—AWS region for Bedrock / Polly when not already set in your environment
NOVA_REEL_DEFAULT_SEEDoptional0Default random seed for video generation
NOVA_REEL_DEFAULT_FPSoptional24Default frames per second
NOVA_REEL_DEFAULT_DIMENSIONoptional1280x720Default video size
NOVA_REEL_DEFAULT_MAX_RESULTSoptional10Default max results when listing jobs

speak ​

Convert text to speech using macOS say locally or Amazon Polly in the cloud

Environment variables ​

VariableRequiredDefaultDescription
AWS_REGIONyes—AWS region for Bedrock / Polly when not already set in your environment
SPEAK_DEFAULT_VOICE_IDoptionalJoannaDefault Polly / macOS voice
SPEAK_DEFAULT_OUTPUT_PATHoptionalspeech_output.mp3Default path for saved audio
SPEAK_DEFAULT_MODEoptionalfastDefault speak mode
SPEAK_DEFAULT_STYLEoptionalgreenDefault console style
SPEAK_DEFAULT_PLAY_AUDIOoptionalTruePlay audio automatically after generation

diagram ​

Render cloud architecture and UML diagrams from agent descriptions (AWS, Azure, GCP, and generic)

Extra: diagram

Environment variables ​

No dedicated environment variables.

chat_video ​

Ask questions about uploaded video content using TwelveLabs multimodal understanding

Extra: twelvelabs

Environment variables ​

VariableRequiredDefaultDescription
TWELVELABS_API_KEYyes—TwelveLabs API key
TWELVELABS_PEGASUS_INDEX_IDyes—Default index for chat_video (or pass it as a tool argument)

search_video ​

Semantic search across indexed video libraries to find clips matching a natural-language query

Extra: twelvelabs

Environment variables ​

VariableRequiredDefaultDescription
TWELVELABS_API_KEYyes—TwelveLabs API key
TWELVELABS_MARENGO_INDEX_IDyes—Default index for search_video (or pass it as a tool argument)

Examples ​

Requires OPENAI_API_KEY and AWS credentials (Bedrock image models / Polly). Set AWS_DEFAULT_REGION=us-west-2 if not already configured.

bash
pip install --extra-index-url https://elsai-agents.elsai.ai/root/ elsai-agents==0.3.5
pip install --extra-index-url https://core-packages.elsai.ai/root/elsai-model/ "elsai-model[openai]==2.1.1"
pip install --extra-index-url https://elsai-agents.elsai.ai/root/ elsai-agents-tools==0.3.0
python
import os

from elsai import Agent
from elsai.agent import AgentConfig
from elsai_model.openai import OpenAIModel
from elsai_tools.generate_image import generate_image
from elsai_tools.speak import speak

agent = Agent(
    model=OpenAIModel(
        model_id="gpt-4o-mini",
        client_args={"api_key": os.environ["OPENAI_API_KEY"]},
    ),
    tools=[generate_image, speak],
    system_prompt=(
        "Use generate_image and speak when the user asks for images or speech. "
        "After using tools, answer the user clearly in plain text."
    ),
    config=AgentConfig(name="multimodal_assistant"),
)

result = agent(
    "Generate a simple image of a steampunk robot playing chess, "
    "then speak a one-sentence confirmation that the image was created."
)
print(result)

Parameter reference: Multimodal API.

See also ​

Copyright © 2026 elsai foundry.