Skip to main content
Atomic Agents sends its structured-output requests through an Instructor-wrapped OpenAI client, so pointing that client at https://api.edenai.run/v3 is the whole integration.

Overview

Atomic Agents is a lightweight, modular Python framework for building AI agents on composable, schema-driven building blocks (via Instructor and Pydantic). It works with Eden AI through its existing OpenAI-compatible client, so your agents reach models from OpenAI, Anthropic, Google, Mistral and more behind one key.

Installation

Eden AI reuses the OpenAI client and Instructor that Atomic Agents already relies on. Atomic Agents 2 needs Python 3.12 or later; on an older Python, pip installs the 1.x line, which has no AtomicAgent or AgentConfig.

Quick Start

Atomic Agents does not read an API key from the environment itself, so the snippets below read EDEN_AI_API_KEY. Export it first:
Wrap an OpenAI client pointed at Eden AI with Instructor, the same pattern used for any other OpenAI-compatible provider, and pass it to your agent:
Atomic Agents asks Instructor for structured output. Its default TOOLS mode sends a tool call, so pick models that support function calling. Every model named on this page does.

Model naming

Use the provider/model format, for example vertex/gemini-flash-latest, anthropic/claude-sonnet-latest or mistral/mistral-large-latest. To browse every id, see List LLM Models.

Switching models

Change the model string on AgentConfig to reach any Eden AI model, with no per-provider SDKs and no code changes:

Environment Variables

Atomic Agents reads no Eden AI variable of its own. EDEN_AI_API_KEY is the name the snippets on this page use, so you can rename it as long as you change the os.getenv call to match.

Next Steps