Eden AI
eden_aiEden AI provides one API for accessing and orchestrating AI models across multiple providers for text, image, audio, document, and multimodal workloads.
Acciones disponibles (10)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Count Anthropic TokensEDEN_AI_COUNT_ANTHROPIC_TOKENSAcciónCount input tokens for an Anthropic-format message request before generation, including system content and tool definitions.
EDEN_AI_COUNT_ANTHROPIC_TOKENSAcciónCount input tokens for an Anthropic-format message request before generation, including system content and tool definitions.
Parámetros de entrada
modelstringObligatorioAnthropic-compatible model ID whose tokenizer should be used.
toolsobject[]Anthropic tool definitions included in the measured request.
systemanySystem text or text content blocks included in the token count.
messagesobject[]ObligatorioOrdered, non-empty Anthropic-format messages to measure.
tool_choiceobjectTool-selection configuration included in the measured request.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Anthropic MessageEDEN_AI_CREATE_ANTHROPIC_MESSAGEAcciónGenerate a non-streaming Anthropic-compatible message with content blocks, stop reason, token usage, provider metadata, and Eden AI cost. Each call runs a paid model and consumes Eden AI credits.
EDEN_AI_CREATE_ANTHROPIC_MESSAGEAcciónGenerate a non-streaming Anthropic-compatible message with content blocks, stop reason, token usage, provider metadata, and Eden AI cost. Each call runs a paid model and consumes Eden AI credits.
Parámetros de entrada
modelstringObligatorioAnthropic-compatible model ID in 'provider/model' form.
top_pnumberNucleus sampling probability from 0 through 1.
systemanySystem prompt as text or an ordered list of Anthropic content blocks.
messagesobject[]ObligatorioOrdered, non-empty Anthropic-format user and assistant conversation messages.
fallbacksstring[]Up to three fallback model IDs to try in order if the primary model fails.
max_tokensintegerMaximum number of tokens to generate; must be at least 1.
temperaturenumberSampling temperature from 0 through 2.
stop_sequencesstring[]Text sequences that stop generation when encountered.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Chat CompletionEDEN_AI_CREATE_CHAT_COMPLETIONAcciónGenerate a non-streaming OpenAI-compatible chat completion with a current Eden AI model and return its choices, token usage, provider, and cost. Each call runs a paid model and consumes Eden AI credits.
EDEN_AI_CREATE_CHAT_COMPLETIONAcciónGenerate a non-streaming OpenAI-compatible chat completion with a current Eden AI model and return its choices, token usage, provider, and cost. Each call runs a paid model and consumes Eden AI credits.
Parámetros de entrada
modelstringObligatorioCurrent model ID in 'provider/model' form from DISCOVER_CAPABILITIES, or '@edenai' for dynamic routing.
messagesobject[]ObligatorioOrdered, non-empty text conversation sent to the model.
fallbacksstring[]Up to three model IDs to try in order if the primary model fails.
max_tokensintegerMaximum number of tokens to generate; must be at least 1.
temperaturenumberSampling temperature from 0 through 2.
response_formatobjectProvider-compatible response format configuration, including optional JSON Schema output.
reasoning_effortstringenumReasoning effort for models that support configurable reasoning.
minimallowmediumhighmaxxhighdisablenonerouter_candidatesstring[]Candidate model IDs considered for dynamic routing; valid only when model is '@edenai'.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create EmbeddingsEDEN_AI_CREATE_EMBEDDINGSAcciónCreate embeddings for one text or a batch of texts and return vectors with model, usage, provider, and cost metadata. Each call runs a paid model and consumes Eden AI credits.
EDEN_AI_CREATE_EMBEDDINGSAcciónCreate embeddings for one text or a batch of texts and return vectors with model, usage, provider, and cost metadata. Each call runs a paid model and consumes Eden AI credits.
Parámetros de entrada
userstringStable end-user identifier for provider abuse monitoring.
inputanyObligatorioOne non-empty text or a non-empty batch of up to 2048 texts to embed.
modelstringObligatorioEmbedding model ID in 'provider/model' form from Discover AI Capabilities.
dimensionsintegerPositive reduced vector size for models that support configurable dimensions.
encoding_formatstringenumReturn each embedding as float values or a base64-encoded string.
floatbase64
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create ResponseEDEN_AI_CREATE_RESPONSEAcciónCreate or continue a synchronous OpenAI Responses-compatible text response, stored by default for later retrieval, and return its ID, structured output, text, usage, provider, and cost.
EDEN_AI_CREATE_RESPONSEAcciónCreate or continue a synchronous OpenAI Responses-compatible text response, stored by default for later retrieval, and return its ID, structured output, text, usage, provider, and cost.
Parámetros de entrada
inputstringText input for a new turn; may be omitted only when previous_response_id supplies conversation state.
modelstringObligatorioCurrent model ID in 'provider/model' form from DISCOVER_CAPABILITIES.
storebooleanStore the response so GET_RESPONSE can retrieve it later.
fallbacksstring[]Up to three fallback model IDs tried in order.
temperaturenumberSampling temperature from 0 through 2.
instructionsstringSystem or developer instructions for this response; not inherited from the previous response.
max_output_tokensintegerRequested maximum output tokens; Eden AI or the provider may enforce a higher minimum.
previous_response_idstringStored response ID to continue a server-managed conversation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Discover AI CapabilitiesEDEN_AI_DISCOVER_CAPABILITIESAcciónFind current Eden AI models or inspect Universal AI feature schemas, providers, pricing, and regions before an execution call.
EDEN_AI_DISCOVER_CAPABILITIESAcciónFind current Eden AI models or inspect Universal AI feature schemas, providers, pricing, and regions before an execution call.
Parámetros de entrada
querystringCase-insensitive text matched against model IDs, model names, alias_of, feature names, and subfeature names.
regionstringKeep records available in this region code, such as 'eu'.
featurestringUniversal AI feature such as 'text'; omit to list all feature groups.
providerstringKeep model or Universal AI provider records matching this provider name.
model_typestringenumModel catalog to search when discovery_type is 'models'.
allembeddingsmoderationsubfeaturestringUniversal AI subfeature such as 'moderation'; requires feature and returns its simplified runtime schema.
max_resultsintegerMaximum matching records to return after local filtering (1-100).
discovery_typestringenumChoose 'models' for executable model records or 'universal_ai' for feature and input-schema discovery.
modelsuniversal_ai
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Cost OverviewEDEN_AI_GET_COST_OVERVIEWAcciónReturn current account credits and, when a date range is supplied, aggregated consumption filtered by provider or subfeature.
EDEN_AI_GET_COST_OVERVIEWAcciónReturn current account credits and, when a date range is supplied, aggregated consumption filtered by provider or subfeature.
Parámetros de entrada
end_datestringdateLast UTC calendar date to include (YYYY-MM-DD); requires start_date.
providerstringLimit consumption data to one provider; requires a date range.
start_datestringdateFirst UTC calendar date to include (YYYY-MM-DD); requires end_date.
subfeaturestringLimit consumption data to one Eden AI subfeature; requires a date range.
aggregationstringenumTime bucket for consumption data when a date range is supplied.
dailyweeklymonthlyyearly
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get ResponseEDEN_AI_GET_RESPONSEAcciónRetrieve a previously stored Responses API object by ID, including its status, text output, structured output, usage, and canonical model.
EDEN_AI_GET_RESPONSEAcciónRetrieve a previously stored Responses API object by ID, including its status, text output, structured output, usage, and canonical model.
Parámetros de entrada
response_idstringObligatorioResponse ID returned by CREATE_RESPONSE.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Moderate TextEDEN_AI_MODERATE_TEXTAcciónClassify one text or a batch of texts for safety categories and return flags, category scores, applied input types, provider, and cost. Each call runs a paid model and consumes Eden AI credits.
EDEN_AI_MODERATE_TEXTAcciónClassify one text or a batch of texts for safety categories and return flags, category scores, applied input types, provider, and cost. Each call runs a paid model and consumes Eden AI credits.
Parámetros de entrada
inputanyObligatorioOne text or a non-empty batch of texts to classify for safety.
modelstringModeration model ID in 'provider/model' form. Discover current alternatives before overriding this default.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Run Universal AIEDEN_AI_RUN_UNIVERSAL_AIAcciónRun one synchronous Eden AI Universal AI feature using a current model and feature-specific input. Call DISCOVER_CAPABILITIES first for the exact model ID and runtime input schema. Returns normalized output, provider, and cost, with the raw provider response only when requested. Each call runs a paid model and consumes Eden AI credits.
EDEN_AI_RUN_UNIVERSAL_AIAcciónRun one synchronous Eden AI Universal AI feature using a current model and feature-specific input. Call DISCOVER_CAPABILITIES first for the exact model ID and runtime input schema. Returns normalized output, provider, and cost, with the raw provider response only when requested. Each call runs a paid model and consumes Eden AI credits.
Parámetros de entrada
inputobjectObligatorioNon-empty feature-specific input object. Copy the exact field names and value shapes returned by DISCOVER_CAPABILITIES for the selected feature and subfeature; Eden AI validates this object dynamically at runtime.
modelstringObligatorioFull model ID in 'feature/subfeature/provider[/model]' form. Call DISCOVER_CAPABILITIES immediately before this tool to obtain a current model ID and its exact input schema.
fallbacksstring[]Up to three fallback provider names, provider/model identifiers, or full Universal AI model IDs, tried in order.
provider_paramsobjectProvider-specific parameters documented in the discovered feature schema. Omit this object unless the selected provider requires or supports them.
show_original_responsebooleanInclude the raw provider response in addition to Eden AI's normalized output. Leave false for a smaller, provider-independent result.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not