Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and everything else you can do with

## Installation

This library requires Node.js >= 18.

Install it from npm:

```bash
Expand All @@ -20,7 +22,7 @@ npm install replicate

## Usage

Create the client:
Import or require the package:

```js
// CommonJS (default or using .cjs extension)
Expand All @@ -30,9 +32,11 @@ const Replicate = require("replicate");
import Replicate from "replicate";
```

```
Instantiate the client:

```js
const replicate = new Replicate({
// get your token from https://replicate.com/account
// get your token from https://replicate.com/account/api-tokens
auth: "my api token", // defaults to process.env.REPLICATE_API_TOKEN
});
```
Expand Down