Divertis commited on
Commit
ef78284
·
verified ·
1 Parent(s): b79aa06

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -14
README.md CHANGED
@@ -1,14 +1,4 @@
1
- import Replicate from "replicate";
2
-
3
- const replicate = new Replicate({
4
- auth: process.env.REPLICATE_API_TOKEN,
5
- });
6
-
7
- const output = await replicate.run(
8
- "divertisse/vaikina:9c57abac2b5019fa845c9092d21637237940b58c73fa4f85237438005cd6f8bc",
9
- {
10
- input: {
11
- prompt: "..."
12
- }
13
- }
14
- );
 
1
+ curl -s -X POST \
2
+ -d '{"version": "9c57abac2b5019fa845c9092d21637237940b58c73fa4f85237438005cd6f8bc", "input": {"prompt": "..."}}' \
3
+ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \
4
+ "https://api.replicate.com/v1/predictions"