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.
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 --jsonkosmokrator integrations:doctor eden-ai --jsonkosmokrator integrations:status --json
Credentials
Authentication type: API keyapi_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
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.
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.
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.
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.
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.
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.
Get the current Eden AI user's account information, including email, plan, and usage details. Useful for verifying API connectivity and checking account status.
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.
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.
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.
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.
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.
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.
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.