0.4.2 • Published 9 months ago

@edenlabs/eden-sdk v0.4.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 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

9 months ago

0.3.9

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.8

1 year ago

0.3.7

1 year ago

0.4.1

11 months ago

0.4.0

11 months ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

2 years ago

0.3.0

2 years ago

0.3.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago