cjwbw / segmind-vegart
Fast Segmind-Vega with 2-8 inference steps.
Prediction
cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01IDhb56h7dbwvxugfdptt6qnfvhwqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- seed
- 758143278
- prompt
- backlight, wilderness woman hunting in jungle hiding behind leaves, face paintings closeup face portrait, detailed eyes, nature documentary, dry skin, fuzzy skin, lens flare
- negative_prompt
- (worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)
- num_inference_steps
- 4
{ "seed": 758143278, "prompt": "backlight, wilderness woman hunting in jungle hiding behind leaves, face paintings closeup face portrait, detailed eyes, nature documentary, dry skin, fuzzy skin, lens flare", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", { input: { seed: 758143278, prompt: "backlight, wilderness woman hunting in jungle hiding behind leaves, face paintings closeup face portrait, detailed eyes, nature documentary, dry skin, fuzzy skin, lens flare", negative_prompt: "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", num_inference_steps: 4 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", input={ "seed": 758143278, "prompt": "backlight, wilderness woman hunting in jungle hiding behind leaves, face paintings closeup face portrait, detailed eyes, nature documentary, dry skin, fuzzy skin, lens flare", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", "input": { "seed": 758143278, "prompt": "backlight, wilderness woman hunting in jungle hiding behind leaves, face paintings closeup face portrait, detailed eyes, nature documentary, dry skin, fuzzy skin, lens flare", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-12-13T06:36:02.426321Z", "created_at": "2023-12-13T06:36:00.278291Z", "data_removed": false, "error": null, "id": "hb56h7dbwvxugfdptt6qnfvhwq", "input": { "seed": 758143278, "prompt": "backlight, wilderness woman hunting in jungle hiding behind leaves, face paintings closeup face portrait, detailed eyes, nature documentary, dry skin, fuzzy skin, lens flare", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 }, "logs": "Using seed: 758143278\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.36it/s]\n100%|██████████| 4/4 [00:00<00:00, 18.43it/s]\n100%|██████████| 4/4 [00:00<00:00, 18.40it/s]", "metrics": { "predict_time": 2.114249, "total_time": 2.14803 }, "output": "https://replicate.delivery/pbxt/xk4MgydAxp4KF5eve4Ojupv31B0lsxmiTjRYZnegGLFjWgDkA/out.png", "started_at": "2023-12-13T06:36:00.312072Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/hb56h7dbwvxugfdptt6qnfvhwq", "cancel": "https://api.replicate.com/v1/predictions/hb56h7dbwvxugfdptt6qnfvhwq/cancel" }, "version": "95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01" }
Prediction
cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01IDxyhsxr3b6bjzcmfsa6lp53ns5aStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- seed
- 758143278
- prompt
- A cinematic shot of a racoon wearing an intricate italian priest robe, with a crown
- negative_prompt
- (worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)
- num_inference_steps
- 4
{ "seed": 758143278, "prompt": "A cinematic shot of a racoon wearing an intricate italian priest robe, with a crown", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", { input: { seed: 758143278, prompt: "A cinematic shot of a racoon wearing an intricate italian priest robe, with a crown", negative_prompt: "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", num_inference_steps: 4 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", input={ "seed": 758143278, "prompt": "A cinematic shot of a racoon wearing an intricate italian priest robe, with a crown", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", "input": { "seed": 758143278, "prompt": "A cinematic shot of a racoon wearing an intricate italian priest robe, with a crown", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-12-13T06:37:49.780145Z", "created_at": "2023-12-13T06:37:47.735848Z", "data_removed": false, "error": null, "id": "xyhsxr3b6bjzcmfsa6lp53ns5a", "input": { "seed": 758143278, "prompt": "A cinematic shot of a racoon wearing an intricate italian priest robe, with a crown", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 }, "logs": "Using seed: 758143278\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.42it/s]\n100%|██████████| 4/4 [00:00<00:00, 18.43it/s]\n100%|██████████| 4/4 [00:00<00:00, 18.42it/s]", "metrics": { "predict_time": 2.010444, "total_time": 2.044297 }, "output": "https://replicate.delivery/pbxt/Y1GOeXnl2uXJLae2fFEB70iXAyX0ccNT6aUeLQjwKs5wzAHIB/out.png", "started_at": "2023-12-13T06:37:47.769701Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/xyhsxr3b6bjzcmfsa6lp53ns5a", "cancel": "https://api.replicate.com/v1/predictions/xyhsxr3b6bjzcmfsa6lp53ns5a/cancel" }, "version": "95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01" }
Prediction
cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01IDlj6fkidb6r5wo57antwzju2qg4StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- A cute cat eating a slice of pizza, stunning color scheme, masterpiece, illustration
- negative_prompt
- (worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)
- num_inference_steps
- 4
{ "prompt": "A cute cat eating a slice of pizza, stunning color scheme, masterpiece, illustration", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", { input: { prompt: "A cute cat eating a slice of pizza, stunning color scheme, masterpiece, illustration", negative_prompt: "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", num_inference_steps: 4 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", input={ "prompt": "A cute cat eating a slice of pizza, stunning color scheme, masterpiece, illustration", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", "input": { "prompt": "A cute cat eating a slice of pizza, stunning color scheme, masterpiece, illustration", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-12-13T06:38:13.175282Z", "created_at": "2023-12-13T06:38:11.266076Z", "data_removed": false, "error": null, "id": "lj6fkidb6r5wo57antwzju2qg4", "input": { "prompt": "A cute cat eating a slice of pizza, stunning color scheme, masterpiece, illustration", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 }, "logs": "Using seed: 23595\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.40it/s]\n100%|██████████| 4/4 [00:00<00:00, 18.42it/s]\n100%|██████████| 4/4 [00:00<00:00, 18.41it/s]", "metrics": { "predict_time": 1.875271, "total_time": 1.909206 }, "output": "https://replicate.delivery/pbxt/7mP2B0ZfGiyfo0yhxhQtTGNHABonvjRmj7Pj8c369cMUNwBSA/out.png", "started_at": "2023-12-13T06:38:11.300011Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/lj6fkidb6r5wo57antwzju2qg4", "cancel": "https://api.replicate.com/v1/predictions/lj6fkidb6r5wo57antwzju2qg4/cancel" }, "version": "95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01" }
Prediction
cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01ID7drueudbjafegaesdnaqjehgxeStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- Self-portrait oil painting, a beautiful cyborg with golden hair, 8k
- negative_prompt
- (worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)
- num_inference_steps
- 4
{ "prompt": "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", { input: { prompt: "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k", negative_prompt: "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", num_inference_steps: 4 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", input={ "prompt": "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", "input": { "prompt": "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-12-13T06:40:26.371891Z", "created_at": "2023-12-13T06:40:24.210393Z", "data_removed": false, "error": null, "id": "7drueudbjafegaesdnaqjehgxe", "input": { "prompt": "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 }, "logs": "Using seed: 9680\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.42it/s]\n100%|██████████| 4/4 [00:00<00:00, 18.41it/s]\n100%|██████████| 4/4 [00:00<00:00, 18.40it/s]", "metrics": { "predict_time": 2.11465, "total_time": 2.161498 }, "output": "https://replicate.delivery/pbxt/gFfMeskyLnrcNULhkFOeI2yRv7Oe8wH903GFqSVoWf2K7BOQC/out.png", "started_at": "2023-12-13T06:40:24.257241Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/7drueudbjafegaesdnaqjehgxe", "cancel": "https://api.replicate.com/v1/predictions/7drueudbjafegaesdnaqjehgxe/cancel" }, "version": "95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01" }
Prediction
cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01IDgjly5xtblijzgd3epppfd2cpwaStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- Self-portrait oil painting, a beautiful cyborg with golden hair, 8k
- negative_prompt
- (worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)
- num_inference_steps
- 4
{ "prompt": "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", { input: { prompt: "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k", negative_prompt: "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", num_inference_steps: 4 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", input={ "prompt": "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", "input": { "prompt": "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-12-13T06:41:10.205995Z", "created_at": "2023-12-13T06:41:08.127190Z", "data_removed": false, "error": null, "id": "gjly5xtblijzgd3epppfd2cpwa", "input": { "prompt": "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 }, "logs": "Using seed: 12974\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.19it/s]\n100%|██████████| 4/4 [00:00<00:00, 18.26it/s]\n100%|██████████| 4/4 [00:00<00:00, 18.24it/s]", "metrics": { "predict_time": 2.044368, "total_time": 2.078805 }, "output": "https://replicate.delivery/pbxt/zLVEVzzBeBysWKrX6tUAomQAryHxd4wJpUApWGAmJO9CI4AJA/out.png", "started_at": "2023-12-13T06:41:08.161627Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/gjly5xtblijzgd3epppfd2cpwa", "cancel": "https://api.replicate.com/v1/predictions/gjly5xtblijzgd3epppfd2cpwa/cancel" }, "version": "95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01" }
Prediction
cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01IDuru4mitbf33hus26q2do2jbhoqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- prompt
- Envision a portrait of an elderly woman, her face a canvas of time, framed by a headscarf with muted tones of rust and cream. Her eyes, blue like faded denim. Her attire, simple yet dignified
- negative_prompt
- (worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)
- num_inference_steps
- 4
{ "prompt": "Envision a portrait of an elderly woman, her face a canvas of time, framed by a headscarf with muted tones of rust and cream. Her eyes, blue like faded denim. Her attire, simple yet dignified", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", { input: { prompt: "Envision a portrait of an elderly woman, her face a canvas of time, framed by a headscarf with muted tones of rust and cream. Her eyes, blue like faded denim. Her attire, simple yet dignified", negative_prompt: "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", num_inference_steps: 4 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", input={ "prompt": "Envision a portrait of an elderly woman, her face a canvas of time, framed by a headscarf with muted tones of rust and cream. Her eyes, blue like faded denim. Her attire, simple yet dignified", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run cjwbw/segmind-vegart using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "cjwbw/segmind-vegart:95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01", "input": { "prompt": "Envision a portrait of an elderly woman, her face a canvas of time, framed by a headscarf with muted tones of rust and cream. Her eyes, blue like faded denim. Her attire, simple yet dignified", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-12-13T06:41:23.687006Z", "created_at": "2023-12-13T06:41:21.537915Z", "data_removed": false, "error": null, "id": "uru4mitbf33hus26q2do2jbhoq", "input": { "prompt": "Envision a portrait of an elderly woman, her face a canvas of time, framed by a headscarf with muted tones of rust and cream. Her eyes, blue like faded denim. Her attire, simple yet dignified", "negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch)", "num_inference_steps": 4 }, "logs": "Using seed: 4076\n 0%| | 0/4 [00:00<?, ?it/s]\n 50%|█████ | 2/4 [00:00<00:00, 18.38it/s]\n100%|██████████| 4/4 [00:00<00:00, 18.43it/s]\n100%|██████████| 4/4 [00:00<00:00, 18.41it/s]", "metrics": { "predict_time": 2.115661, "total_time": 2.149091 }, "output": "https://replicate.delivery/pbxt/yy0HWeWYiHUqfksmA434CmT4VvBY8xmrg6UDDGqK4LHSQwBSA/out.png", "started_at": "2023-12-13T06:41:21.571345Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/uru4mitbf33hus26q2do2jbhoq", "cancel": "https://api.replicate.com/v1/predictions/uru4mitbf33hus26q2do2jbhoq/cancel" }, "version": "95be94f58749a793ad91388597f17882bb1bbc734daa892fc20fde789f9b1c01" }
Want to make some of these yourself?
Run this model