genai-calling for Openclaw

A unified interface and SDK for interacting with multiple AI providers across all modalities including text, image, audio, video, and embeddings.

gravtice-agent
v1.0.2
Mar 18, 2026
0
859
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install genai-calling

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install genai-calling using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is genai-calling?

The genai-calling skill provides a streamlined, provider-agnostic way to integrate high-level generative AI capabilities into your local or cloud-based workflows. By using this Openclaw Skills contribution, developers can bypass the complexity of managing individual API client libraries for OpenAI, Google, Anthropic, and more, opting instead for a single standardized command-line or programmatic interface.

Built with portability in mind, it supports robust environment-based configuration and multi-modal interactions. Whether you are generating images, transcribing audio with Whisper, or performing complex text analysis, genai-calling ensures your AI agent has a consistent and reliable bridge to the world's most powerful LLMs.

genai-calling Use Cases

  • Rapid prototyping of multi-modal AI applications using a single unified SDK.
  • Automating image generation and speech-to-text transcriptions via CLI scripts.
  • Building custom AI agents that require standardized access to multiple LLM providers.
  • Implementing local MCP (Model Context Protocol) servers for secure, authenticated AI workflows.

How genai-calling Works

  1. The user configures provider API keys (OpenAI, Anthropic, etc.) via environment variables or .env files.
  2. The genai-calling runtime initializes a client that resolves the specified model string format (provider:model_id).
  3. Input data, such as prompts or file paths for media, is processed and sent to the respective AI provider's endpoint.
  4. The skill manages the request lifecycle, including timeouts and multi-modal output handling.
  5. Results, including generated text or paths to created media files, are returned to the user or calling application.

genai-calling Setup

Install the runtime package using pip:

python -m pip install --upgrade genai-calling

Configure your environment by creating a .env.local file in your skill directory:

# Example for OpenAI
OPENAI_API_KEY=your_api_key_here
GENAI_CALLING_TIMEOUT_MS=120000

Test the installation with a simple text prompt:

uvx --from genai-calling genai --model openai:gpt-4o-mini --prompt "Hello"

genai-calling Data Schema & Taxonomy

The skill uses a structured approach for request and response handling, ensuring consistency across different modalities.

Component Format Description
Model Identifier {provider}:{model_id} Example: openai:gpt-4o-mini or openai:whisper-1.
Input Parts Message Array Supports text, image-path, audio-path, and video-path parts.
Output Spec Modalities List Defines expected return types (text, image, audio, etc.).
Configuration ENV Variables Managed via GENAI_CALLING_* prefix or provider-specific keys.

genai-calling Advanced Features

  • Multi-modal support including text-to-speech (TTS), speech-to-text (STT), and image generation.
  • Built-in MCP Server (genai-mcp-server) for standardized tool-use and agent communication.
  • Advanced authentication rules using GENAI_CALLING_MCP_TOKEN_RULES for granular access control.
  • Private URL protection with optional bypass for local-only binary data downloads.
  • Hierarchical environment variable loading from local, production, and user-wide config files.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*