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 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.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
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.
kosmo integrations:call eden-ai.edenai_chat_completions '{}' --json 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.
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 - Parameters
- none
kosmo integrations:call eden-ai.edenai_chat_completions '{}' --json kosmo integrations:eden-ai edenai_chat_completions '{}' --json eden-ai.edenai_list_models
List V3 LLM models.
read - Parameters
- none
kosmo integrations:call eden-ai.edenai_list_models '{}' --json kosmo integrations:eden-ai edenai_list_models '{}' --json eden-ai.edenai_universal_ai
Call V3 Universal AI synchronously.
write - Parameters
- none
kosmo integrations:call eden-ai.edenai_universal_ai '{}' --json kosmo integrations:eden-ai edenai_universal_ai '{}' --json eden-ai.edenai_universal_ai_async
Submit a V3 Universal AI async job.
write - Parameters
- none
kosmo integrations:call eden-ai.edenai_universal_ai_async '{}' --json kosmo integrations:eden-ai edenai_universal_ai_async '{}' --json eden-ai.edenai_get_universal_ai_job
Get a V3 async job result.
read - Parameters
- none
kosmo integrations:call eden-ai.edenai_get_universal_ai_job '{}' --json kosmo integrations:eden-ai edenai_get_universal_ai_job '{}' --json eden-ai.edenai_list_features
List V3 expert model features.
read - Parameters
- none
kosmo integrations:call eden-ai.edenai_list_features '{}' --json kosmo integrations:eden-ai edenai_list_features '{}' --json eden-ai.edenai_get_feature_info
Get V3 feature discovery info.
read - Parameters
- none
kosmo integrations:call eden-ai.edenai_get_feature_info '{}' --json kosmo integrations:eden-ai edenai_get_feature_info '{}' --json eden-ai.edenai_upload_file
Upload a file to V3 storage.
write - Parameters
- none
kosmo integrations:call eden-ai.edenai_upload_file '{}' --json kosmo integrations:eden-ai edenai_upload_file '{}' --json eden-ai.edenai_delete_all_uploaded_files
Delete all uploaded V3 files.
write - Parameters
- none
kosmo integrations:call eden-ai.edenai_delete_all_uploaded_files '{}' --json 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 - Parameters
- providers, text, conversation, temperature, max_tokens, fallback_providers
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 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 - Parameters
- providers, image_url, image_base64, features, fallback_providers
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 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 - Parameters
- providers, text, source_language, target_language, fallback_providers
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 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 - Parameters
- providers, audio_url, audio_base64, language, speakers, fallback_providers
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 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 - Parameters
- providers, document_url, document_base64, language, fallback_providers
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 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 - Parameters
- none
kosmo integrations:call eden-ai.edenai_get_current_user '{}' --json kosmo integrations:eden-ai edenai_get_current_user '{}' --json eden-ai.edenai_api_get
Call a legacy V2 GET endpoint.
read - Parameters
- none
kosmo integrations:call eden-ai.edenai_api_get '{}' --json kosmo integrations:eden-ai edenai_api_get '{}' --json eden-ai.edenai_api_post
Call a legacy V2 POST endpoint.
write - Parameters
- none
kosmo integrations:call eden-ai.edenai_api_post '{}' --json kosmo integrations:eden-ai edenai_api_post '{}' --json eden-ai.edenai_v3_api_get
Call a V3 GET endpoint.
read - Parameters
- none
kosmo integrations:call eden-ai.edenai_v3_api_get '{}' --json kosmo integrations:eden-ai edenai_v3_api_get '{}' --json eden-ai.edenai_v3_api_post
Call a V3 POST endpoint.
write - Parameters
- none
kosmo integrations:call eden-ai.edenai_v3_api_post '{}' --json 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
kosmo integrations:schema eden-ai.edenai_chat_completions --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
eden-ai.edenai_list_models 0 parameters
kosmo integrations:schema eden-ai.edenai_list_models --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
eden-ai.edenai_universal_ai 0 parameters
kosmo integrations:schema eden-ai.edenai_universal_ai --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
eden-ai.edenai_universal_ai_async 0 parameters
kosmo integrations:schema eden-ai.edenai_universal_ai_async --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
eden-ai.edenai_get_universal_ai_job 0 parameters
kosmo integrations:schema eden-ai.edenai_get_universal_ai_job --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
eden-ai.edenai_list_features 0 parameters
kosmo integrations:schema eden-ai.edenai_list_features --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
eden-ai.edenai_get_feature_info 0 parameters
kosmo integrations:schema eden-ai.edenai_get_feature_info --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
eden-ai.edenai_upload_file 0 parameters
kosmo integrations:schema eden-ai.edenai_upload_file --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
eden-ai.edenai_delete_all_uploaded_files 0 parameters
kosmo integrations:schema eden-ai.edenai_delete_all_uploaded_files --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
eden-ai.edenai_generate_text 6 parameters
kosmo integrations:schema eden-ai.edenai_generate_text --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema eden-ai.edenai_analyze_image --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema eden-ai.edenai_translate_text --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema eden-ai.edenai_transcribe_audio --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema eden-ai.edenai_ocr --json | Parameter | Type | Required | Description |
|---|---|---|---|
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
kosmo integrations:schema eden-ai.edenai_get_current_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
eden-ai.edenai_api_get 0 parameters
kosmo integrations:schema eden-ai.edenai_api_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
eden-ai.edenai_api_post 0 parameters
kosmo integrations:schema eden-ai.edenai_api_post --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
eden-ai.edenai_v3_api_get 0 parameters
kosmo integrations:schema eden-ai.edenai_v3_api_get --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
eden-ai.edenai_v3_api_post 0 parameters
kosmo integrations:schema eden-ai.edenai_v3_api_post --json | Parameter | Type | Required | Description |
|---|---|---|---|
| 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.