KosmoKrator

ai

Eden AI CLI for AI Agents

Use the Eden AI CLI from KosmoKrator to call Eden AI tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

6 functions 4 read 2 write API key auth

Eden AI CLI Setup

Eden AI can be configured headlessly with `kosmokrator integrations:configure eden-ai`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure eden-ai --set api_key="$EDEN_AI_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor eden-ai --json
kosmokrator integrations:status --json

Credentials

Authentication type: API key api_key. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
api_key EDEN_AI_API_KEY Secret secret yes API Key
url EDEN_AI_URL URL url no Eden AI URL

Call Eden AI Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call eden-ai.edenai_generate_text '{
  "providers": "example_providers",
  "text": "example_text",
  "conversation": "example_conversation",
  "temperature": 1,
  "max_tokens": 1,
  "fallback_providers": "example_fallback_providers"
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:eden-ai edenai_generate_text '{
  "providers": "example_providers",
  "text": "example_text",
  "conversation": "example_conversation",
  "temperature": 1,
  "max_tokens": 1,
  "fallback_providers": "example_fallback_providers"
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs eden-ai --json
kosmo integrations:docs eden-ai.edenai_generate_text --json
kosmo integrations:schema eden-ai.edenai_generate_text --json
kosmo integrations:search "Eden AI" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Eden AI.

eden-ai.edenai_generate_text

Write write

Generate text using AI models via Eden AI. Supports providers like OpenAI (GPT-4), Anthropic (Claude), Google (Gemini), Mistral, Cohere, and more. You can send a single prompt or a conversation history.

Parameters
providers, text, conversation, temperature, max_tokens, fallback_providers

Generic CLI call

kosmo integrations:call eden-ai.edenai_generate_text '{"providers":"example_providers","text":"example_text","conversation":"example_conversation","temperature":1,"max_tokens":1,"fallback_providers":"example_fallback_providers"}' --json

Provider shortcut

kosmo integrations:eden-ai edenai_generate_text '{"providers":"example_providers","text":"example_text","conversation":"example_conversation","temperature":1,"max_tokens":1,"fallback_providers":"example_fallback_providers"}' --json

eden-ai.edenai_analyze_image

Read read

Analyze images using AI models via Eden AI. Supports object detection, explicit content detection, scene description, and more. Provide an image as a URL or base64-encoded string.

Parameters
providers, image_url, image_base64, features, fallback_providers

Generic CLI call

kosmo integrations:call eden-ai.edenai_analyze_image '{"providers":"example_providers","image_url":"example_image_url","image_base64":"example_image_base64","features":"example_features","fallback_providers":"example_fallback_providers"}' --json

Provider shortcut

kosmo integrations:eden-ai edenai_analyze_image '{"providers":"example_providers","image_url":"example_image_url","image_base64":"example_image_base64","features":"example_features","fallback_providers":"example_fallback_providers"}' --json

eden-ai.edenai_translate_text

Write write

Translate text between languages using AI models via Eden AI. Supports providers like Google Translate, DeepL, Amazon Translate, Microsoft Translator, and more. Detects the source language automatically if not specified.

Parameters
providers, text, source_language, target_language, fallback_providers

Generic CLI call

kosmo integrations:call eden-ai.edenai_translate_text '{"providers":"example_providers","text":"example_text","source_language":"example_source_language","target_language":"example_target_language","fallback_providers":"example_fallback_providers"}' --json

Provider shortcut

kosmo integrations:eden-ai edenai_translate_text '{"providers":"example_providers","text":"example_text","source_language":"example_source_language","target_language":"example_target_language","fallback_providers":"example_fallback_providers"}' --json

eden-ai.edenai_transcribe_audio

Read read

Transcribe audio or video to text using AI models via Eden AI. Supports providers like OpenAI (Whisper), Google Speech-to-Text, Amazon Transcribe, Microsoft Azure, and more. Provide audio as a URL or base64-encoded string.

Parameters
providers, audio_url, audio_base64, language, speakers, fallback_providers

Generic CLI call

kosmo integrations:call eden-ai.edenai_transcribe_audio '{"providers":"example_providers","audio_url":"example_audio_url","audio_base64":"example_audio_base64","language":"example_language","speakers":1,"fallback_providers":"example_fallback_providers"}' --json

Provider shortcut

kosmo integrations:eden-ai edenai_transcribe_audio '{"providers":"example_providers","audio_url":"example_audio_url","audio_base64":"example_audio_base64","language":"example_language","speakers":1,"fallback_providers":"example_fallback_providers"}' --json

eden-ai.edenai_ocr

Read read

Extract text from images and documents using OCR via Eden AI. Supports providers like Google Cloud Vision, Amazon Textract, Microsoft Azure, and more. This is an async operation — the response may contain a public_job_id for tracking. Provide the document as a URL or base64-encoded string.

Parameters
providers, document_url, document_base64, language, fallback_providers

Generic CLI call

kosmo integrations:call eden-ai.edenai_ocr '{"providers":"example_providers","document_url":"example_document_url","document_base64":"example_document_base64","language":"example_language","fallback_providers":"example_fallback_providers"}' --json

Provider shortcut

kosmo integrations:eden-ai edenai_ocr '{"providers":"example_providers","document_url":"example_document_url","document_base64":"example_document_base64","language":"example_language","fallback_providers":"example_fallback_providers"}' --json

eden-ai.edenai_get_current_user

Read read

Get the current Eden AI user's account information, including email, plan, and usage details. Useful for verifying API connectivity and checking account status.

Parameters
none

Generic CLI call

kosmo integrations:call eden-ai.edenai_get_current_user '{}' --json

Provider shortcut

kosmo integrations:eden-ai edenai_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

eden-ai.edenai_generate_text

Generate text using AI models via Eden AI. Supports providers like OpenAI (GPT-4), Anthropic (Claude), Google (Gemini), Mistral, Cohere, and more. You can send a single prompt or a conversation history.

Operation
Write write
Schema command
kosmo integrations:schema eden-ai.edenai_generate_text --json
ParameterTypeRequiredDescription
providers string yes Comma-separated list of AI providers (e.g., "openai", "openai,anthropic", "google"). Use "openai" for GPT-4, "anthropic" for Claude, "google" for Gemini, "mistral" for Mistral, "cohere" for Cohere.
text string no The prompt text to send to the AI. Use this for simple single-turn generation.
conversation array no Conversation history as an array of message objects with "role" (system, user, assistant) and "message" keys. Use this for multi-turn conversations.
temperature number no Sampling temperature (0.0–1.0). Higher values increase randomness. Default: 0.0.
max_tokens integer no Maximum number of tokens to generate in the response.
fallback_providers string no Comma-separated list of fallback providers if the primary provider fails.

eden-ai.edenai_analyze_image

Analyze images using AI models via Eden AI. Supports object detection, explicit content detection, scene description, and more. Provide an image as a URL or base64-encoded string.

Operation
Read read
Schema command
kosmo integrations:schema eden-ai.edenai_analyze_image --json
ParameterTypeRequiredDescription
providers string yes Comma-separated list of AI providers (e.g., "google", "amazon", "microsoft").
image_url string no URL of the image to analyze. Use this OR image_base64, not both.
image_base64 string no Base64-encoded image data. Use this OR image_url, not both.
features array no Analysis features to request (e.g., ["explicit_content", "object_detection", "scene_classification"]).
fallback_providers string no Comma-separated list of fallback providers if the primary fails.

eden-ai.edenai_translate_text

Translate text between languages using AI models via Eden AI. Supports providers like Google Translate, DeepL, Amazon Translate, Microsoft Translator, and more. Detects the source language automatically if not specified.

Operation
Write write
Schema command
kosmo integrations:schema eden-ai.edenai_translate_text --json
ParameterTypeRequiredDescription
providers string yes Comma-separated list of translation providers (e.g., "google", "deepl", "amazon", "microsoft").
text string yes The text to translate.
source_language string no Source language code (e.g., "en", "fr", "de"). Omit to auto-detect.
target_language string yes Target language code (e.g., "en", "fr", "de", "es", "ja", "zh").
fallback_providers string no Comma-separated list of fallback providers if the primary fails.

eden-ai.edenai_transcribe_audio

Transcribe audio or video to text using AI models via Eden AI. Supports providers like OpenAI (Whisper), Google Speech-to-Text, Amazon Transcribe, Microsoft Azure, and more. Provide audio as a URL or base64-encoded string.

Operation
Read read
Schema command
kosmo integrations:schema eden-ai.edenai_transcribe_audio --json
ParameterTypeRequiredDescription
providers string yes Comma-separated list of transcription providers (e.g., "openai", "google", "amazon").
audio_url string no URL of the audio file to transcribe. Use this OR audio_base64, not both.
audio_base64 string no Base64-encoded audio data. Use this OR audio_url, not both.
language string no Language code for the audio (e.g., "en", "fr", "de"). Omit for auto-detection.
speakers integer no Number of speakers in the audio for speaker diarization.
fallback_providers string no Comma-separated list of fallback providers if the primary fails.

eden-ai.edenai_ocr

Extract text from images and documents using OCR via Eden AI. Supports providers like Google Cloud Vision, Amazon Textract, Microsoft Azure, and more. This is an async operation — the response may contain a public_job_id for tracking. Provide the document as a URL or base64-encoded string.

Operation
Read read
Schema command
kosmo integrations:schema eden-ai.edenai_ocr --json
ParameterTypeRequiredDescription
providers string yes Comma-separated list of OCR providers (e.g., "google", "amazon", "microsoft").
document_url string no URL of the image or document to process. Use this OR document_base64, not both.
document_base64 string no Base64-encoded document data. Use this OR document_url, not both.
language string no Language hint for OCR (e.g., "en", "fr", "de"). Improves accuracy for specific languages.
fallback_providers string no Comma-separated list of fallback providers if the primary fails.

eden-ai.edenai_get_current_user

Get the current Eden AI user's account information, including email, plan, and usage details. Useful for verifying API connectivity and checking account status.

Operation
Read read
Schema command
kosmo integrations:schema eden-ai.edenai_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.