KosmoKrator

data

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.

Eden AI CLI Setup

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

Install, configure, and verify
# 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 reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
api_key EDEN_AI_API_KEY Secret secret yes API Key
url EDEN_AI_URL URL url no Legacy V2 URL
v3_url EDEN_AI_V3_URL URL url no V3 URL

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call eden-ai.edenai_chat_completions '{}' --json
Provider shortcut
kosmo integrations:eden-ai edenai_chat_completions '{}' --json

Discovery

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

Discovery commands
kosmo integrations:docs eden-ai --json
kosmo integrations:docs eden-ai.edenai_chat_completions --json
kosmo integrations:schema eden-ai.edenai_chat_completions --json
kosmo integrations:search "Eden AI" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

eden-ai.edenai_chat_completions

Create a V3 chat completion.

Write write
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_chat_completions '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_chat_completions '{}' --json

eden-ai.edenai_list_models

List V3 LLM models.

Read read
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_list_models '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_list_models '{}' --json

eden-ai.edenai_universal_ai

Call V3 Universal AI synchronously.

Write write
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_universal_ai '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_universal_ai '{}' --json

eden-ai.edenai_universal_ai_async

Submit a V3 Universal AI async job.

Write write
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_universal_ai_async '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_universal_ai_async '{}' --json

eden-ai.edenai_get_universal_ai_job

Get a V3 async job result.

Read read
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_get_universal_ai_job '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_get_universal_ai_job '{}' --json

eden-ai.edenai_list_features

List V3 expert model features.

Read read
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_list_features '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_list_features '{}' --json

eden-ai.edenai_get_feature_info

Get V3 feature discovery info.

Read read
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_get_feature_info '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_get_feature_info '{}' --json

eden-ai.edenai_upload_file

Upload a file to V3 storage.

Write write
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_upload_file '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_upload_file '{}' --json

eden-ai.edenai_delete_all_uploaded_files

Delete all uploaded V3 files.

Write write
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_delete_all_uploaded_files '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_delete_all_uploaded_files '{}' --json

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.

Write write
Parameters
providers, text, conversation, temperature, max_tokens, fallback_providers
Generic 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
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

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.

Read read
Parameters
providers, image_url, image_base64, features, fallback_providers
Generic 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
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

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.

Write write
Parameters
providers, text, source_language, target_language, fallback_providers
Generic 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
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

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.

Read read
Parameters
providers, audio_url, audio_base64, language, speakers, fallback_providers
Generic 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
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

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.

Read read
Parameters
providers, document_url, document_base64, language, fallback_providers
Generic 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
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

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

Read read
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_get_current_user '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_get_current_user '{}' --json

eden-ai.edenai_api_get

Call a legacy V2 GET endpoint.

Read read
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_api_get '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_api_get '{}' --json

eden-ai.edenai_api_post

Call a legacy V2 POST endpoint.

Write write
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_api_post '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_api_post '{}' --json

eden-ai.edenai_v3_api_get

Call a V3 GET endpoint.

Read read
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_v3_api_get '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_v3_api_get '{}' --json

eden-ai.edenai_v3_api_post

Call a V3 POST endpoint.

Write write
Parameters
none
Generic call
kosmo integrations:call eden-ai.edenai_v3_api_post '{}' --json
Shortcut
kosmo integrations:eden-ai edenai_v3_api_post '{}' --json

Function Schemas

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

eden-ai.edenai_chat_completions 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_chat_completions --json
ParameterTypeRequiredDescription
No parameters.
eden-ai.edenai_list_models 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_list_models --json
ParameterTypeRequiredDescription
No parameters.
eden-ai.edenai_universal_ai 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_universal_ai --json
ParameterTypeRequiredDescription
No parameters.
eden-ai.edenai_universal_ai_async 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_universal_ai_async --json
ParameterTypeRequiredDescription
No parameters.
eden-ai.edenai_get_universal_ai_job 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_get_universal_ai_job --json
ParameterTypeRequiredDescription
No parameters.
eden-ai.edenai_list_features 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_list_features --json
ParameterTypeRequiredDescription
No parameters.
eden-ai.edenai_get_feature_info 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_get_feature_info --json
ParameterTypeRequiredDescription
No parameters.
eden-ai.edenai_upload_file 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_upload_file --json
ParameterTypeRequiredDescription
No parameters.
eden-ai.edenai_delete_all_uploaded_files 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_delete_all_uploaded_files --json
ParameterTypeRequiredDescription
No parameters.
eden-ai.edenai_generate_text 6 parameters
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 5 parameters
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 5 parameters
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 6 parameters
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 5 parameters
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 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_get_current_user --json
ParameterTypeRequiredDescription
No parameters.
eden-ai.edenai_api_get 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_api_get --json
ParameterTypeRequiredDescription
No parameters.
eden-ai.edenai_api_post 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_api_post --json
ParameterTypeRequiredDescription
No parameters.
eden-ai.edenai_v3_api_get 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_v3_api_get --json
ParameterTypeRequiredDescription
No parameters.
eden-ai.edenai_v3_api_post 0 parameters
Schema command
kosmo integrations:schema eden-ai.edenai_v3_api_post --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.