Skip to main content
API keys are currently in beta. If you’d like to use the SDK, please reach out to the devs on Discord.
The Eden SDK is a JavaScript library for interacting with the Eden API. The SDK allows you to make creation requests programatically and integrate Eden-facing widgets into your own applications. It is available as an npm package, with a commonjs version and Python SDK also planned for the near future. Full API documentation is available at https://api.eden.art/documentation. Some browsers have issues opening the documentation, so if you have trouble, try using a different browser or use incognito mode.

Get API credentials

To get an API key, please message one of the devs in the Discord and ask for one.

Installation

Make a creation

A full list of generators and their config parameters can be found in the creation tool. All requests to Eden go through the EdenClient class. To make a task request, target a specific generator (e.g. “create”) with a configuration object. For example:

Manual task polling

Alternatively, you can create a task and poll for the result manually:
The tasks.create method is asynchronous and will immediately return a taskResult object with an ID for that task (or an error message). If you want to wait for the task to complete, you can poll the task until it is done:

Hello Eden

Example React App

An example React app which shows how to authenticate with the Eden SDK and make creations in a boilerplate NextJS web application