0.4.2 • Published 8 months ago

@edenlabs/eden-sdk v0.4.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Eden SDK

A thin wrapper around the Eden REST API. Inspect methods.ts for all available methods.

Creating an Eden instance

import { EdenClient } from "@edenlabs/eden-sdk";

const apiKey = 'YOUR_API_KEY';
const apiSecret = 'YOUR_API_SECRET';

const eden = new EdenClient({apiKey, apiSecret});

Making a creation

const config = {
  text_input: "Garden of Eden"
}

const input = {
  generatorName: "create",
  config
}

const result = await eden.tasks.create(input);

Uploading an image

import fs from 'fs'

const filepath = `${__dirname}/test.png`
const media = await fs.readFileSync(filepath)
const result = await client.media.upload({ media })

Generator info

To get all the generators available:

const generators = await eden.generators.list();
console.log(generators);
0.4.2

8 months ago

0.3.9

12 months ago

0.3.6

12 months ago

0.3.5

12 months ago

0.3.8

12 months ago

0.3.7

12 months ago

0.4.1

10 months ago

0.4.0

10 months ago

0.3.4

12 months ago

0.3.3

12 months ago

0.3.2

1 year ago

0.3.0

1 year ago

0.3.1

1 year ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago