File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,18 @@ const replicate = new Replicate({
2626Run 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 " };
3131const output = await replicate .run (model, { input });
32+ // ['https://replicate.delivery/pbxt/GtQb3Sgve42ZZyVnt8xjquFk9EX5LP0fF68NTIWlgBMUpguQA/out-0.png']
3233```
3334
3435You can also run a model in the backround:
3536
3637``` js
3738let 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});
You can’t perform that action at this time.
0 commit comments