Eden AI

Access multiple AI providers for text generation, image creation, and OCR through Eden AI.

AI and MLAPI key13 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (13)
  4. image_generation
  5. detect_language
  6. extract_entities
  7. extract_keywords
  8. generate_text
  9. invoice_parser
  10. moderate_text
  11. ocr_image
  12. receipt_parser
  13. spell_check
  14. summarize_text
  15. text_to_speech
  16. translate_text
  17. Details

Connect

Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.

  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("eden_ai", action, input) resolves with the provider's answer and rejects when Eden AI isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "eden_ai"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Eden AI when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellEdenAi = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Eden AI isn't connected.
  const output = await step.run("Eden AI", () =>
    step.ctx.integrations.invoke("eden_ai", "image_generation", {
      "provider": "<provider>",
      "text": "<prompt>",
      "resolution": "<resolution>"
    }),
  );
  step.ctx.log("Eden AI answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "eden_ai",
    "piece_action": "image_generation",
    "input": {
      "provider": "<provider>",
      "text": "<prompt>",
      "resolution": "<resolution>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/eden_ai/image_generation" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"provider":"<provider>","text":"<prompt>","resolution":"<resolution>"}}'

Actions

image_generation

Image Generation. Create images from text prompts using Eden AI. Supports multiple providers, models, and resolutions.

InputTypeDescription
providerrequiredid (picked from your account)The AI provider to use for image generation.
textrequiredlong textDescription of the desired image(s). Be specific and descriptive for best results.
resolutionrequiredid (picked from your account)The image resolution (e.g., 512x512, 1024x1024).
num_imagesoptionalnumberNumber of images to generate (1-10).
modeloptionalid (picked from your account)Specific model to use for image generation. Leave empty for provider default.
fallback_providersoptionalids (picked from your account)Alternative providers to try if the main provider fails (up to 5).
show_original_responseoptionalbooleanInclude the raw provider response in the output for debugging.

detect_language

Detect Language of Text. Detect the language used in a text using Eden AI. Supports multiple providers and models.

InputTypeDescription
providerrequiredid (picked from your account)The AI provider to use for language detection.
textrequiredlong textThe text to detect language for.
modeloptionaltextSpecific model to use (e.g., gpt-4o, grok-2-latest). Leave empty for default.
fallback_providersoptionalids (picked from your account)Alternative providers to try if the main provider fails (up to 5).
show_original_responseoptionalbooleanInclude the raw provider response in the output for debugging.

extract_entities

Extract Named Entities in Text. Identify entities (names, places) in text using Eden AI. Supports multiple providers, languages, and models.

InputTypeDescription
providerrequiredid (picked from your account)The AI provider to use for named entity recognition.
textrequiredlong textThe text to extract entities from.
languageoptionalid (picked from your account)The language of the input text. Choose "Auto Detection" if unsure.
modeloptionaltextSpecific model to use (e.g., gpt-4o, gemini-1.5-flash, grok-2-latest). Leave empty for default.
fallback_providersoptionalids (picked from your account)Alternative providers to try if the main provider fails (up to 5).
show_original_responseoptionalbooleanInclude the raw provider response in the output for debugging.

extract_keywords

Extract Keywords in Text. Identify important terms in a text using Eden AI. Supports multiple providers, languages, and models.

InputTypeDescription
providerrequiredid (picked from your account)The AI provider to use for keyword extraction.
textrequiredlong textThe text to extract keywords from.
languageoptionalid (picked from your account)The language of the input text. Choose "Auto Detection" if unsure.
modeloptionaltextSpecific model to use (e.g., gpt-4o, gpt-4, grok-2-latest). Leave empty for default.
fallback_providersoptionalids (picked from your account)Alternative providers to try if the main provider fails (up to 5).
show_original_responseoptionalbooleanInclude the raw provider response in the output for debugging.

generate_text

Generate Text. Generate text completions using various AI providers through Eden AI chat endpoint.

InputTypeDescription
providerrequiredid (picked from your account)The AI provider to use for text generation.
promptrequiredlong textThe main prompt or question you want the AI to respond to.
system_promptoptionallong textSystem message to set the behavior and context for the AI assistant (e.g., "You are a helpful coding assistant").
modeloptionaltextSpecific model to use (e.g., gpt-4o, claude-3-sonnet-latest, gemini-2.0-flash). Leave empty for provider-specific defaults.
temperatureoptionalnumberControls randomness (0.0-2.0). Higher values make output more creative.
max_completion_tokensoptionalnumberMaximum number of tokens to generate in the response.
reasoning_effortoptionalid (picked from your account)Level of reasoning depth for the response.
fallback_providersoptionalids (picked from your account)Alternative providers to try if the main provider fails.
include_imageoptionalbooleanInclude an image in your prompt (for vision-capable models).
image_urloptionaltextURL of the image to include in the prompt (only used if "Include Image" is enabled).

invoice_parser

Invoice Parser. Extract structured invoice data from files using Eden AI. Supports multiple providers, languages, and document types.

InputTypeDescription
providerrequiredid (picked from your account)The AI provider to use for financial document parsing.
filerequiredfileProvide the financial document file (PDF, image, etc).
document_typeoptionalid (picked from your account)The type of financial document to parse.
languageoptionalid (picked from your account)The language of the document. Choose "Auto Detection" if unsure.
modeloptionaltextSpecific model to use (e.g., gpt-4o, gpt-4o-mini, gpt-4-turbo). Leave empty for default.
file_passwordoptionaltextPassword for protected PDF files (if applicable).
convert_to_pdfoptionalbooleanConvert DOC/DOCX files to PDF format for better compatibility.
fallback_providersoptionalids (picked from your account)Alternative providers to try if the main provider fails (up to 5).
show_original_responseoptionalbooleanInclude the raw provider response in the output for debugging.

moderate_text

Moderate Text. Detect explicit or policy-violating text using Eden AI. Supports multiple providers, languages, and models.

InputTypeDescription
providerrequiredid (picked from your account)The AI provider to use for text moderation.
textrequiredlong textThe text to analyze for explicit or policy-violating content.
languageoptionalid (picked from your account)The language of the input text. Choose "Auto Detection" if unsure.
modeloptionaltextSpecific model to use (e.g., text-moderation-latest, text-moderation-stable). Leave empty for default.
fallback_providersoptionalids (picked from your account)Alternative providers to try if the main provider fails (up to 5).
show_original_responseoptionalbooleanInclude the raw provider response in the output for debugging.

ocr_image

Extract Text in Image (OCR). Extract text from images (OCR) using Eden AI. Supports multiple providers, languages, and bounding box coordinates.

InputTypeDescription
providerrequiredid (picked from your account)The AI provider to use for text extraction.
file_urlrequiredtextPublic URL to the image or document file.
languageoptionalid (picked from your account)The language of the text in the image. Choose "Auto Detection" if unsure.
file_passwordoptionaltextPassword for protected PDF files (if applicable).
attributes_as_listoptionalbooleanReturn extracted data with each attribute as a list instead of list of objects.
fallback_providersoptionalids (picked from your account)Alternative providers to try if the main provider fails (up to 5).
show_original_responseoptionalbooleanInclude the raw provider response in the output for debugging.

receipt_parser

Receipt Parser. Extract structured data from receipts and documents using Eden AI. Supports general data extraction with bounding boxes.

InputTypeDescription
providerrequiredid (picked from your account)The AI provider to use for data extraction.
file_urlrequiredtextPublic URL to the document file (PDF, image, etc).
file_passwordoptionaltextPassword for protected PDF files (if applicable).
convert_to_pdfoptionalbooleanConvert DOC/DOCX files to PDF format for better compatibility.
attributes_as_listoptionalbooleanReturn extracted data with each attribute as a list instead of list of objects.
fallback_providersoptionalids (picked from your account)Alternative providers to try if the main provider fails (up to 5).
show_original_responseoptionalbooleanInclude the raw provider response in the output for debugging.

spell_check

Spell Check. Identify and correct spelling or grammar errors using Eden AI. Supports multiple providers, languages, and models.

InputTypeDescription
providerrequiredid (picked from your account)The AI provider to use for spell checking and grammar correction.
textrequiredlong textThe text to check for spelling or grammar errors.
languageoptionalid (picked from your account)The language of the input text. Choose "Auto Detection" if unsure.
modeloptionaltextSpecific model to use (e.g., gpt-4o, gpt-4, grok-2-latest, command). Leave empty for default.
fallback_providersoptionalids (picked from your account)Alternative providers to try if the main provider fails (up to 5).
show_original_responseoptionalbooleanInclude the raw provider response in the output for debugging.

summarize_text

Summarize Text. Extract key sentences and create summaries from long text passages using various AI providers.

InputTypeDescription
providerrequiredid (picked from your account)The AI provider to use for text summarization.
textrequiredlong textThe text content you want to summarize. Can be articles, documents, or any long-form text.
output_sentencesoptionalnumberHow many sentences should the summary contain (1-20).
languageoptionalid (picked from your account)The language of the input text. Choose "Auto Detection" if unsure.
modeloptionaltextSpecific model to use (e.g., gpt-4, gpt-4o, summarize-xlarge). Leave empty for default.
fallback_providersoptionalids (picked from your account)Alternative providers to try if the main provider fails (up to 5).
show_original_responseoptionalbooleanInclude the raw provider response in the output for debugging.

text_to_speech

Generate Audio From Text. Convert text to spoken audio using Eden AI. Supports multiple providers, languages, and voice customization.

InputTypeDescription
providerrequiredid (picked from your account)The AI provider to use for text-to-speech synthesis.
textrequiredlong textThe text to convert to speech.
languageoptionalid (picked from your account)The language and locale for the speech synthesis (defaults to en-US if not specified).
optionoptionalid (picked from your account)Choose the voice gender for speech synthesis (defaults to Female if not specified).
rateoptionalnumberAdjust speaking rate (-100 to 100, where 0 is normal speed).
pitchoptionalnumberAdjust voice pitch (-100 to 100, where 0 is normal pitch).
volumeoptionalnumberAdjust audio volume (-100 to 100, where 0 is normal volume).
audio_formatoptionalid (picked from your account)The audio format for the generated speech (default: MP3).
sampling_rateoptionalnumberAudio sampling rate in Hz (0-200000, 0 for provider default).
fallback_providersoptionalids (picked from your account)Alternative providers to try if the main provider fails (up to 5).
show_original_responseoptionalbooleanInclude the raw provider response in the output for debugging.

translate_text

Translate Text. Translate text into different languages using Eden AI. Supports multiple providers, languages, and models.

InputTypeDescription
providerrequiredid (picked from your account)The AI provider to use for text translation.
textrequiredlong textThe text to translate.
source_languageoptionalid (picked from your account)The language of the input text. Choose "Auto Detection" to automatically detect the language.
target_languagerequiredid (picked from your account)The language to translate the text into.
modeloptionaltextSpecific model to use (e.g., gpt-4o, grok-2-latest). Leave empty for default.
fallback_providersoptionalids (picked from your account)Alternative providers to try if the main provider fails (up to 5).
show_original_responseoptionalbooleanInclude the raw provider response in the output for debugging.

Details

Id
eden_ai
Category
AI and ML
Tags
ai, aggregator, text, image, ocr
Package
@activepieces/piece-eden-ai@0.2.0
Runs
Through the integration runner