Skip to content

Commit b8199f5

Browse files
authored
Make it real
1 parent 5f3d5d4 commit b8199f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ const replicate = new Replicate({
2626
Run a model and await the result:
2727

2828
```js
29-
const model = "owner/model:version-id";
30-
const input = { text: "Hello, world!" };
29+
const model = "stability-ai/stable-diffusion:27b93a2413e7f36cd83da926f3656280b2931564ff050bf9575f1fdf9bcd7478";
30+
const input = { prompt: "a 19th century portrait of a raccoon gentleman wearing a suit" };
3131
const output = await replicate.run(model, { input });
32+
// ['https://replicate.delivery/pbxt/GtQb3Sgve42ZZyVnt8xjquFk9EX5LP0fF68NTIWlgBMUpguQA/out-0.png']
3233
```
3334

3435
You can also run a model in the backround:
3536

3637
```js
3738
let prediction = await replicate.predictions.create({
38-
version: "<MODEL VERSION>",
39+
version: "27b93a2413e7f36cd83da926f3656280b2931564ff050bf9575f1fdf9bcd7478",
3940
input: {
40-
// your model inputs need to be set here
4141
prompt: "painting of a cat by andy warhol",
4242
},
4343
});

0 commit comments

Comments
 (0)