Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

elizaos-plugin-elizacloud

Python implementation of the elizaOS Cloud plugin for multi-model AI generation.

Installation

pip install elizaos-plugin-elizacloud

Usage

import asyncio
from elizaos_plugin_elizacloud import (
    ElizaCloudClient,
    ElizaCloudConfig,
    TextGenerationParams,
    TextEmbeddingParams,
    ImageGenerationParams,
)

async def main():
    # Configure the client
    config = ElizaCloudConfig(
        api_key="eliza_xxxxx",  # Get from https://www.elizacloud.ai/dashboard/api-keys
        base_url="https://www.elizacloud.ai/api/v1",
    )

    async with ElizaCloudClient(config) as client:
        # Text generation
        text = await client.generate_text(
            TextGenerationParams(prompt="What is the meaning of life?"),
            model_size="large",
        )
        print(f"Generated text: {text}")

        # Embeddings
        embedding = await client.generate_embedding(
            TextEmbeddingParams(text="Hello, world!")
        )
        print(f"Embedding dimension: {len(embedding)}")

        # Batch embeddings
        embeddings = await client.generate_embedding(
            TextEmbeddingParams(texts=["Hello", "World", "!"])
        )
        print(f"Batch embeddings: {len(embeddings)}")

        # Image generation
        images = await client.generate_image(
            ImageGenerationParams(
                prompt="A beautiful sunset over the ocean",
                count=1,
                size="1024x1024",
            )
        )
        print(f"Generated image URL: {images[0]}")

asyncio.run(main())

Features

  • Text Generation: Small (fast) and large (powerful) model support
  • Embeddings: Single and batch text embedding with rate limit handling
  • Image Generation: DALL-E style image generation
  • Image Description: Vision model for describing images
  • Text-to-Speech: Multiple voice options
  • Transcription: Whisper-based audio transcription

Configuration

Setting Description Default
api_key elizaOS Cloud API key (required) -
base_url Base URL for API requests https://www.elizacloud.ai/api/v1
small_model Model for quick tasks gpt-5-mini
large_model Model for complex tasks gpt-5
embedding_model Model for embeddings text-embedding-3-small
embedding_dimensions Embedding vector size 1536

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elizaos_plugin_elizacloud-2.0.0a5.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elizaos_plugin_elizacloud-2.0.0a5-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file elizaos_plugin_elizacloud-2.0.0a5.tar.gz.

File metadata

File hashes

Hashes for elizaos_plugin_elizacloud-2.0.0a5.tar.gz
Algorithm Hash digest
SHA256 3d1821ab1670eba0cd153e8211129bf42ccbf61d6556cf71e082ea2633095b08
MD5 73c3265d4fff91ee034d4e966699d396
BLAKE2b-256 458ca9d79977adcae72701fdc1d16d5d2dc32c91f60a0a125eb6d9a96fca4dcc

See more details on using hashes here.

File details

Details for the file elizaos_plugin_elizacloud-2.0.0a5-py3-none-any.whl.

File metadata

File hashes

Hashes for elizaos_plugin_elizacloud-2.0.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 359f199bf2f9076a04fb01c135a5b4c712293505ebdd0da9a8caf3d35574aa6f
MD5 38dca167dd50f77c77cc8656a5551ef5
BLAKE2b-256 138bedf91e2a27c4b584bba86e3f90256b823221b615ca10bec2e0a002520aac

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.0a5 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page