Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
akastercomcom committed Dec 11, 2023
1 parent 0117f23 commit a9a7bb1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# ainize-sdk
# ainize-js

A Typescript SDK for the Ainize, a system for running AI services on the AI Network.
A Typescript JS for the Ainize, a system for running AI services on the AI Network.

## Requirements
node >= 16

## usage
### Install
```bash
npm install @ainize-team/ainize-sdk
npm install @ainize-team/ainize-js

yarn install @ainize-team/ainize-sdk
yarn install @ainize-team/ainize-js
```

### Import
```typescript
import Ainize from '@ainize-team/ainize-sdk'
import Ainize from '@ainize-team/ainize-js'
const ainize = new Ainize(<CHAIN_ID>);
```

Expand Down Expand Up @@ -49,9 +49,9 @@ service.run();
```

### Using Service
You can use a service using `ainize.service(<SERVICE_NAME>)`.
You can use a service using `ainize.getService(<SERVICE_NAME>)`.
```typescript
const service = await ainize.service(<SERVICE_NAME>);
const service = await ainize.getService(<SERVICE_NAME>);
```

You should deposit AIN to credit before using service.
Expand Down

0 comments on commit a9a7bb1

Please sign in to comment.