leia-api-sdk

0.7.2 • Public • Published

LEIA API SDK for Node.js npm version

LEIA API allows you to use a wide range of Deep Learning tools to inject intelligence into your projects.

Getting started

npm install leia-api-sdk

  • Get an API key

  • Read the documentation

  • Create a LeiaAPI object and authenticate to use the API

const leiaAPI = new LeiaAPI()
leiaAPI.login('apiKey').then((application) => {
    console.log("you", application)
})
...
leiaAPI.addDocument('test.jpg', image.buffer).then((document) => {
   documentId = document.id
   return leiaAPI.addModel('my model', model.buffer)
}).then((model) => {
   return leiaAPI.applyModelToDocument(model.id, [documentId])
}).then((job) => {
   ...
   // Poll job for result
   leiaAPI.getJob(job.id).then((job) => {
      console.log(job.result)
   })
   ...
})

You can also read the LEIA API documentation on leia.io.

Licence

Apache 2.0

Package Sidebar

Install

npm i leia-api-sdk

Weekly Downloads

1

Version

0.7.2

License

Apache-2.0

Unpacked Size

1.97 MB

Total Files

63

Last publish

Collaborators

  • sbstcano
  • leiaio