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
1212
1313## Installation
1414
15+ This library requires Node.js >= 18.
16+
1517Install it from npm:
1618
1719``` bash
@@ -20,7 +22,7 @@ npm install replicate
2022
2123## Usage
2224
23- Create the client :
25+ Import or require the package :
2426
2527``` js
2628// CommonJS (default or using .cjs extension)
@@ -30,9 +32,11 @@ const Replicate = require("replicate");
3032import Replicate from " replicate" ;
3133```
3234
33- ```
35+ Instantiate the client:
36+
37+ ``` js
3438const replicate = new Replicate ({
35- // get your token from https://replicate.com/account
39+ // get your token from https://replicate.com/account/api-tokens
3640 auth: " my api token" , // defaults to process.env.REPLICATE_API_TOKEN
3741});
3842```
You can’t perform that action at this time.
0 commit comments