File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ and everything else you can do with
12
12
13
13
## Installation
14
14
15
+ This library requires Node.js >= 18.
16
+
15
17
Install it from npm:
16
18
17
19
``` bash
@@ -20,7 +22,7 @@ npm install replicate
20
22
21
23
## Usage
22
24
23
- Create the client :
25
+ Import or require the package :
24
26
25
27
``` js
26
28
// CommonJS (default or using .cjs extension)
@@ -30,9 +32,11 @@ const Replicate = require("replicate");
30
32
import Replicate from " replicate" ;
31
33
```
32
34
33
- ```
35
+ Instantiate the client:
36
+
37
+ ``` js
34
38
const replicate = new Replicate ({
35
- // get your token from https://replicate.com/account
39
+ // get your token from https://replicate.com/account/api-tokens
36
40
auth: " my api token" , // defaults to process.env.REPLICATE_API_TOKEN
37
41
});
38
42
```
You can’t perform that action at this time.
0 commit comments