Skip to main content
Eden AI logo
  • Category: artificial intelligence
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 10
  • Triggers: 0
  • Slug: EDEN_AI
  • Version: 20261101_00

Tools

Slug: EDEN_AI_COUNT_ANTHROPIC_TOKENSCount input tokens for an Anthropic-format message request before generation, including system content and tool definitions.

Input Parameters

string
required
Anthropic-compatible model ID whose tokenizer should be used.
array
Anthropic tool definitions included in the measured request.
string
System text or text content blocks included in the token count.
array
required
Ordered, non-empty Anthropic-format messages to measure.
object
Tool-selection configuration included in the measured request.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: EDEN_AI_CREATE_ANTHROPIC_MESSAGEGenerate 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.

Input Parameters

string
required
Anthropic-compatible model ID in ‘provider/model’ form.
number
Nucleus sampling probability from 0 through 1.
string
System prompt as text or an ordered list of Anthropic content blocks.
array
required
Ordered, non-empty Anthropic-format user and assistant conversation messages.
array
Up to three fallback model IDs to try in order if the primary model fails.
integer
Maximum number of tokens to generate; must be at least 1.
number
Sampling temperature from 0 through 2.
array
Text sequences that stop generation when encountered.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: EDEN_AI_CREATE_CHAT_COMPLETIONGenerate a non-streaming OpenAI-compatible chat completion from a text-only conversation using an Eden AI model. Returns choices, token usage, provider, and cost; calls consume Eden AI credits.

Input Parameters

string
required
Current model ID in ‘provider/model’ form from DISCOVER_CAPABILITIES, or ‘@edenai’ for dynamic routing.
array
required
Ordered, non-empty text conversation sent to the model.
array
Up to three model IDs to try in order if the primary model fails.
integer
Maximum number of tokens to generate; must be at least 1.
number
Sampling temperature from 0 through 2.
object
Provider-compatible response format configuration, including optional JSON Schema output.
string ("minimal" | "low" | "medium" | "high" | "max" | "xhigh" | "disable" | "none")
Reasoning effort for models that support configurable reasoning.
array
Candidate model IDs considered for dynamic routing; valid only when model is ‘@edenai’.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: EDEN_AI_CREATE_EMBEDDINGSCreate 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.

Input Parameters

string
Stable end-user identifier for provider abuse monitoring.
string
required
One non-empty text or a non-empty batch of up to 2048 texts to embed.
string
required
Embedding model ID in ‘provider/model’ form from Discover AI Capabilities.
integer
Positive reduced vector size for models that support configurable dimensions.
string ("float" | "base64")
Return each embedding as float values or a base64-encoded string.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: EDEN_AI_CREATE_RESPONSECreate 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.

Input Parameters

string
Text input for a new turn; may be omitted only when previous_response_id supplies conversation state.
string
required
Current model ID in ‘provider/model’ form from DISCOVER_CAPABILITIES.
boolean
Store the response so GET_RESPONSE can retrieve it later.
array
Up to three fallback model IDs tried in order.
number
Sampling temperature from 0 through 2.
string
System or developer instructions for this response; not inherited from the previous response.
integer
Requested maximum output tokens; Eden AI or the provider may enforce a higher minimum.
string
Stored response ID to continue a server-managed conversation.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: EDEN_AI_DISCOVER_CAPABILITIESFind current Eden AI models or inspect Universal AI feature schemas, providers, pricing, and regions before an execution call.

Input Parameters

string
Case-insensitive text matched against model IDs, model names, alias_of, feature names, and subfeature names.
string
Keep records available in this region code, such as ‘eu’.
string
Universal AI feature such as ‘text’; omit to list all feature groups.
string
Keep model or Universal AI provider records matching this provider name.
string ("all" | "embeddings" | "moderation")
Model catalog to search when discovery_type is ‘models’.
string
Universal AI subfeature such as ‘moderation’; requires feature and returns its simplified runtime schema.
integer
Maximum matching records to return after local filtering (1-100).
string ("models" | "universal_ai")
Choose ‘models’ for executable model records or ‘universal_ai’ for feature and input-schema discovery.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: EDEN_AI_GET_COST_OVERVIEWReturn current account credits and, when a date range is supplied, aggregated consumption filtered by provider or subfeature.

Input Parameters

string
Last UTC calendar date to include (YYYY-MM-DD); requires start_date.
string
Limit consumption data to one provider; requires a date range.
string
First UTC calendar date to include (YYYY-MM-DD); requires end_date.
string
Limit consumption data to one Eden AI subfeature; requires a date range.
string ("daily" | "weekly" | "monthly" | "yearly")
Time bucket for consumption data when a date range is supplied.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: EDEN_AI_GET_RESPONSERetrieve a previously stored Responses API object by ID, including its status, text output, structured output, usage, and canonical model.

Input Parameters

string
required
Response ID returned by CREATE_RESPONSE.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: EDEN_AI_MODERATE_TEXTClassify 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.

Input Parameters

string
required
One text or a non-empty batch of texts to classify for safety.
string
Moderation model ID in ‘provider/model’ form. Discover current alternatives before overriding this default.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: EDEN_AI_RUN_UNIVERSAL_AIRun 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.

Input Parameters

object
required
Non-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.
string
required
Full 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.
array
Up to three fallback provider names, provider/model identifiers, or full Universal AI model IDs, tried in order.
object
Provider-specific parameters documented in the discovered feature schema. Omit this object unless the selected provider requires or supports them.
boolean
Include the raw provider response in addition to Eden AI’s normalized output. Leave false for a smaller, provider-independent result.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not