We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70ca64a commit cfafee4Copy full SHA for cfafee4
1 file changed
README.md
@@ -12,6 +12,8 @@ and everything else you can do with
12
13
## Installation
14
15
+This library requires Node.js >= 18.
16
+
17
Install it from npm:
18
19
```bash
@@ -20,7 +22,7 @@ npm install replicate
20
22
21
23
## Usage
24
-Create the client:
25
+Import or require the package:
26
27
```js
28
// CommonJS (default or using .cjs extension)
@@ -30,9 +32,11 @@ const Replicate = require("replicate");
30
32
import Replicate from "replicate";
31
33
```
34
-```
35
+Instantiate the client:
36
37
+```js
38
const replicate = new Replicate({
- // get your token from https://replicate.com/account
39
+ // get your token from https://replicate.com/account/api-tokens
40
auth: "my api token", // defaults to process.env.REPLICATE_API_TOKEN
41
});
42
0 commit comments