File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change 1
- # Replicate JavaScript client
1
+ # Replicate Node.js client
2
2
3
- SDK for [ Replicate’s REST API ] ( https://replicate.com/docs/reference/http ) .
3
+ A Node.js client for [ Replicate] ( https://replicate.com ) . It lets you run models from your Node.js code, and do various other things on Replicate .
4
4
5
5
## Installation
6
6
7
- This is not on npm yet, but you can install it from GitHub :
7
+ Install it from npm :
8
8
9
9
``` bash
10
- npm install replicate/replicate-javascript
10
+ npm install replicate
11
11
```
12
12
13
13
## Usage
@@ -31,7 +31,7 @@ const input = { text: "Hello, world!" };
31
31
const output = await replicate .run (model, { input });
32
32
```
33
33
34
- You can also run a model without awaiting the result :
34
+ You can also run a model in the backround :
35
35
36
36
``` js
37
37
let prediction = await replicate .predictions .create ({
@@ -55,13 +55,6 @@ Or wait for the prediction to finish:
55
55
prediction = await replicate .wait (prediction);
56
56
```
57
57
58
- ## Features
59
-
60
- - [x] async API
61
- - [x] Type annotations
62
- - [x] Tests
63
- - [x] Pagination
64
-
65
58
## API
66
59
67
60
### Constructor
You can’t perform that action at this time.
0 commit comments