genkernel / headshot-public
Just an experiment. Nothing new here.
- Public
- 2.4K runs
-
L40S
Prediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDevtnvzdbwkbpivznf2tcy5m4keStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 8.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, deformed, mutated text, watermark
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \ndeformed, mutated text, watermark", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 8.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \ndeformed, mutated text, watermark", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \ndeformed, mutated text, watermark", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \\ndeformed, mutated text, watermark", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:19:36.755923Z", "created_at": "2023-09-22T15:19:19.147247Z", "data_removed": false, "error": null, "id": "evtnvzdbwkbpivznf2tcy5m4ke", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \ndeformed, mutated text, watermark", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 15.886371, "total_time": 17.608676 }, "output": [ "https://pbxt.replicate.delivery/JpjyaecGjUXuda8aozfxD7zGf20gFOkx0lVuRIrjxiiQUsNjA/out-0.png" ], "started_at": "2023-09-22T15:19:20.869552Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/evtnvzdbwkbpivznf2tcy5m4ke", "cancel": "https://api.replicate.com/v1/predictions/evtnvzdbwkbpivznf2tcy5m4ke/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDtxei5ktbn32ovyvctqv7dniqomStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features
- refine
- expert_ensemble_refiner
- scheduler
- KarrasDPM
- lora_scale
- 0.7
- num_outputs
- 1
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.95
- negative_prompt
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "expert_ensemble_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.95, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", refine: "expert_ensemble_refiner", scheduler: "KarrasDPM", lora_scale: 0.7, num_outputs: 1, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.95, negative_prompt: "", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "expert_ensemble_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.95, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "expert_ensemble_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.95, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T14:55:08.554734Z", "created_at": "2023-09-22T14:54:51.889652Z", "data_removed": false, "error": null, "id": "txei5ktbn32ovyvctqv7dniqom", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "expert_ensemble_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.95, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 14.043741, "total_time": 16.665082 }, "output": [ "https://pbxt.replicate.delivery/7fhuGjpC0uysJiMcaRJd5LO5EgrEn261tQnjg78b1pCm5azIA/out-0.png" ], "started_at": "2023-09-22T14:54:54.510993Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/txei5ktbn32ovyvctqv7dniqom", "cancel": "https://api.replicate.com/v1/predictions/txei5ktbn32ovyvctqv7dniqom/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDgfbux3tbyt5zy473dwi5woosyeStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features
- refine
- no_refiner
- scheduler
- HeunDiscrete
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.35
- negative_prompt
- prompt_strength
- 0.8
- num_inference_steps
- 40
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "HeunDiscrete", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.35, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 40 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", refine: "no_refiner", scheduler: "HeunDiscrete", lora_scale: 0.7, num_outputs: 1, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.35, negative_prompt: "", prompt_strength: 0.8, num_inference_steps: 40 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "HeunDiscrete", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.35, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 40 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "HeunDiscrete", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.35, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 40 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T14:57:40.884446Z", "created_at": "2023-09-22T14:57:17.652391Z", "data_removed": false, "error": null, "id": "gfbux3tbyt5zy473dwi5woosye", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "HeunDiscrete", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.35, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 40 }, "logs": null, "metrics": { "predict_time": 22.862087, "total_time": 23.232055 }, "output": [ "https://pbxt.replicate.delivery/QWsMXqrVkPquI1wEGzdnKHDLyshB7oZfUCAxD7TB5BXy6azIA/out-0.png" ], "started_at": "2023-09-22T14:57:18.022359Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/gfbux3tbyt5zy473dwi5woosye", "cancel": "https://api.replicate.com/v1/predictions/gfbux3tbyt5zy473dwi5woosye/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eID2d6xhxlb4k7tbwnsxn7bihddsaStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features
- refine
- no_refiner
- scheduler
- HeunDiscrete
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.35
- negative_prompt
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "HeunDiscrete", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.35, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", refine: "no_refiner", scheduler: "HeunDiscrete", lora_scale: 0.7, num_outputs: 1, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.35, negative_prompt: "", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "HeunDiscrete", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.35, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "HeunDiscrete", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.35, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T14:58:31.436428Z", "created_at": "2023-09-22T14:58:01.419720Z", "data_removed": false, "error": null, "id": "2d6xhxlb4k7tbwnsxn7bihddsa", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "HeunDiscrete", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.35, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 28.3359, "total_time": 30.016708 }, "output": [ "https://pbxt.replicate.delivery/GnSbJbc57f1JZyqofIOm5eA4WPLRboYNjFrEKGXm5CJssrNjA/out-0.png" ], "started_at": "2023-09-22T14:58:03.100528Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/2d6xhxlb4k7tbwnsxn7bihddsa", "cancel": "https://api.replicate.com/v1/predictions/2d6xhxlb4k7tbwnsxn7bihddsa/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDuv4frgdb27zzzay4mbvzgk3xcyStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features
- refine
- expert_ensemble_refiner
- scheduler
- HeunDiscrete
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "expert_ensemble_refiner", "scheduler": "HeunDiscrete", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", refine: "expert_ensemble_refiner", scheduler: "HeunDiscrete", lora_scale: 0.7, num_outputs: 1, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "expert_ensemble_refiner", "scheduler": "HeunDiscrete", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "expert_ensemble_refiner", "scheduler": "HeunDiscrete", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T14:59:25.818690Z", "created_at": "2023-09-22T14:59:02.728584Z", "data_removed": false, "error": null, "id": "uv4frgdb27zzzay4mbvzgk3xcy", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "expert_ensemble_refiner", "scheduler": "HeunDiscrete", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 21.948193, "total_time": 23.090106 }, "output": [ "https://pbxt.replicate.delivery/32vUvOMkT27zIZ7b7yAAypl1HMReK55YBBnl3Qf5infaurNjA/out-0.png" ], "started_at": "2023-09-22T14:59:03.870497Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/uv4frgdb27zzzay4mbvzgk3xcy", "cancel": "https://api.replicate.com/v1/predictions/uv4frgdb27zzzay4mbvzgk3xcy/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDaxyhcvdb32s44ehafqrigcaqzmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:00:53.517211Z", "created_at": "2023-09-22T15:00:38.401635Z", "data_removed": false, "error": null, "id": "axyhcvdb32s44ehafqrigcaqzm", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 14.927669, "total_time": 15.115576 }, "output": [ "https://pbxt.replicate.delivery/k2vfe3GOSfLrsIykPeeQo5PGNOqbs1iezAMU2xcxZytaJeazIA/out-0.png" ], "started_at": "2023-09-22T15:00:38.589542Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/axyhcvdb32s44ehafqrigcaqzm", "cancel": "https://api.replicate.com/v1/predictions/axyhcvdb32s44ehafqrigcaqzm/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDu3vwqflbi3ibcbsqdtv2xd2vrmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:03:34.655963Z", "created_at": "2023-09-22T15:03:19.363512Z", "data_removed": false, "error": null, "id": "u3vwqflbi3ibcbsqdtv2xd2vrm", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 15.08232, "total_time": 15.292451 }, "output": [ "https://pbxt.replicate.delivery/kuF6sMZ8eWxFC61E8uv5QEgURpOhPYxDQwGxHQRWeGfN2rNjA/out-0.png" ], "started_at": "2023-09-22T15:03:19.573643Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/u3vwqflbi3ibcbsqdtv2xd2vrm", "cancel": "https://api.replicate.com/v1/predictions/u3vwqflbi3ibcbsqdtv2xd2vrm/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDm2wmhitbynj2x7myj3adeuoyfuStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:05:59.416308Z", "created_at": "2023-09-22T15:05:42.993195Z", "data_removed": false, "error": null, "id": "m2wmhitbynj2x7myj3adeuoyfu", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 15.691063, "total_time": 16.423113 }, "output": [ "https://pbxt.replicate.delivery/AFvUy2hQsb6hONHMMpjnrnoa7OcWTswemJzB9kYOk0Are1mRA/out-0.png" ], "started_at": "2023-09-22T15:05:43.725245Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/m2wmhitbynj2x7myj3adeuoyfu", "cancel": "https://api.replicate.com/v1/predictions/m2wmhitbynj2x7myj3adeuoyfu/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eID5tka7jdbcspzz6ogaaqtkhrijiStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch
- prompt_strength
- 0.8
- num_inference_steps
- 30
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 30 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", prompt_strength: 0.8, num_inference_steps: 30 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 30 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:07:07.603071Z", "created_at": "2023-09-22T15:06:56.782725Z", "data_removed": false, "error": null, "id": "5tka7jdbcspzz6ogaaqtkhriji", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 30 }, "logs": null, "metrics": { "predict_time": 9.447789, "total_time": 10.820346 }, "output": [ "https://pbxt.replicate.delivery/1NDQHfEFLIRfwEHrIOxMY4UANuFd2yohMEi9gmeVgJz28rNjA/out-0.png" ], "started_at": "2023-09-22T15:06:58.155282Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/5tka7jdbcspzz6ogaaqtkhriji", "cancel": "https://api.replicate.com/v1/predictions/5tka7jdbcspzz6ogaaqtkhriji/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDg3weeqdbj7owzfkgrcmn5dwdsiStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch
- prompt_strength
- 0.8
- num_inference_steps
- 60
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 60 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", prompt_strength: 0.8, num_inference_steps: 60 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 60 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 60 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:08:51.044719Z", "created_at": "2023-09-22T15:08:32.539505Z", "data_removed": false, "error": null, "id": "g3weeqdbj7owzfkgrcmn5dwdsi", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 60 }, "logs": null, "metrics": { "predict_time": 17.667446, "total_time": 18.505214 }, "output": [ "https://pbxt.replicate.delivery/kmRpHTMcQbaQGlacSN3B1LXLz4L3lVAUFvRTpuEzIamAgtZE/out-0.png" ], "started_at": "2023-09-22T15:08:33.377273Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/g3weeqdbj7owzfkgrcmn5dwdsi", "cancel": "https://api.replicate.com/v1/predictions/g3weeqdbj7owzfkgrcmn5dwdsi/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDvrutojtbmwhb3md6xpopj2dn4aStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedby @genkernelInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch
- prompt_strength
- 0.8
- num_inference_steps
- 70
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 70 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", prompt_strength: 0.8, num_inference_steps: 70 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 70 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 70 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:10:04.594354Z", "created_at": "2023-09-22T15:09:42.649996Z", "data_removed": false, "error": null, "id": "vrutojtbmwhb3md6xpopj2dn4a", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, a futuristic visage with cybernetic enhancements seamlessly integrated into human features", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 70 }, "logs": null, "metrics": { "predict_time": 20.391145, "total_time": 21.944358 }, "output": [ "https://pbxt.replicate.delivery/lPvOmv2EvbqFKFVcVKzTjcRc4rIndCKSBH2eRn0VIAfMB2mRA/out-0.png" ], "started_at": "2023-09-22T15:09:44.203209Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/vrutojtbmwhb3md6xpopj2dn4a", "cancel": "https://api.replicate.com/v1/predictions/vrutojtbmwhb3md6xpopj2dn4a/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDgmwl3qtb753ezes5i5uzaadmemStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:11:29.108606Z", "created_at": "2023-09-22T15:11:12.358676Z", "data_removed": false, "error": null, "id": "gmwl3qtb753ezes5i5uzaadmem", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 15.418108, "total_time": 16.74993 }, "output": [ "https://pbxt.replicate.delivery/IvcCCXycNx6BBhEn1Ub9Unn0wnrLMvhhN8pkXZvQluEogtZE/out-0.png" ], "started_at": "2023-09-22T15:11:13.690498Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/gmwl3qtb753ezes5i5uzaadmem", "cancel": "https://api.replicate.com/v1/predictions/gmwl3qtb753ezes5i5uzaadmem/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDc43nm33b4duvb7rytwphx4szkuStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch
- prompt_strength
- 0.8
- num_inference_steps
- 80
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 80 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", prompt_strength: 0.8, num_inference_steps: 80 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 80 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 80 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:12:22.922299Z", "created_at": "2023-09-22T15:11:58.611212Z", "data_removed": false, "error": null, "id": "c43nm33b4duvb7rytwphx4szku", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 80 }, "logs": null, "metrics": { "predict_time": 23.139486, "total_time": 24.311087 }, "output": [ "https://pbxt.replicate.delivery/CuYGLty29FJCHFzujlf9VIo5Mtc9RSly97gXoD2SI1YrBbzIA/out-0.png" ], "started_at": "2023-09-22T15:11:59.782813Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/c43nm33b4duvb7rytwphx4szku", "cancel": "https://api.replicate.com/v1/predictions/c43nm33b4duvb7rytwphx4szku/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDig6f3e3bngs3gvj5kxt7lgupsqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 8.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 8.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:13:20.239917Z", "created_at": "2023-09-22T15:13:04.075424Z", "data_removed": false, "error": null, "id": "ig6f3e3bngs3gvj5kxt7lgupsq", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 14.964472, "total_time": 16.164493 }, "output": [ "https://pbxt.replicate.delivery/QnnOy1eDTy1RfEVMKHvUoT1zDXBrI8NAskCFz1WFJPJPE2mRA/out-0.png" ], "started_at": "2023-09-22T15:13:05.275445Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ig6f3e3bngs3gvj5kxt7lgupsq", "cancel": "https://api.replicate.com/v1/predictions/ig6f3e3bngs3gvj5kxt7lgupsq/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDya7rrolbcaxf6vhrgb6swojgteStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.8
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 8.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.8, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.8, num_outputs: 1, guidance_scale: 8.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.8, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.8, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:13:49.578696Z", "created_at": "2023-09-22T15:13:32.214062Z", "data_removed": false, "error": null, "id": "ya7rrolbcaxf6vhrgb6swojgte", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.8, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 16.03727, "total_time": 17.364634 }, "output": [ "https://pbxt.replicate.delivery/j4aHLOkiJIL5H5UjeprbehoHhupZHfojV7x6Jvz1kfO1SYbGB/out-0.png" ], "started_at": "2023-09-22T15:13:33.541426Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ya7rrolbcaxf6vhrgb6swojgte", "cancel": "https://api.replicate.com/v1/predictions/ya7rrolbcaxf6vhrgb6swojgte/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDm4yqjetbv7rxumchkglnegcwzmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.6
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 8.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.6, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.6, num_outputs: 1, guidance_scale: 8.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:16:14.081552Z", "created_at": "2023-09-22T15:15:58.720812Z", "data_removed": false, "error": null, "id": "m4yqjetbv7rxumchkglnegcwzm", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.6, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 15.121481, "total_time": 15.36074 }, "output": [ "https://pbxt.replicate.delivery/6ItDp5qYcqbOIJhqN9lGOSVfQfaR2K2WjrMb0I1Wyoy9G2mRA/out-0.png" ], "started_at": "2023-09-22T15:15:58.960071Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/m4yqjetbv7rxumchkglnegcwzm", "cancel": "https://api.replicate.com/v1/predictions/m4yqjetbv7rxumchkglnegcwzm/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDd6ccpglbn2ca7a67ijvyoiv374StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 8.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 8.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:16:44.941807Z", "created_at": "2023-09-22T15:16:27.981764Z", "data_removed": false, "error": null, "id": "d6ccpglbn2ca7a67ijvyoiv374", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, wearing stylish classic suit, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 15.17863, "total_time": 16.960043 }, "output": [ "https://pbxt.replicate.delivery/E8oCD1EWt2orLFeveIipS2Fh2fKdPWIJlV7ajU9SVGM4OsNjA/out-0.png" ], "started_at": "2023-09-22T15:16:29.763177Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/d6ccpglbn2ca7a67ijvyoiv374", "cancel": "https://api.replicate.com/v1/predictions/d6ccpglbn2ca7a67ijvyoiv374/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDbvhyvvlbfqmfmkcuybh6gs2zfqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 8.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 8.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:17:31.175730Z", "created_at": "2023-09-22T15:17:14.405096Z", "data_removed": false, "error": null, "id": "bvhyvvlbfqmfmkcuybh6gs2zfq", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 15.097484, "total_time": 16.770634 }, "output": [ "https://pbxt.replicate.delivery/QNRG3jNxObojFpnY6TPd1HhBpZSQgklnqFFURvOTBEsCitZE/out-0.png" ], "started_at": "2023-09-22T15:17:16.078246Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/bvhyvvlbfqmfmkcuybh6gs2zfq", "cancel": "https://api.replicate.com/v1/predictions/bvhyvvlbfqmfmkcuybh6gs2zfq/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDakkinrlbackd3twfovoofrnwv4StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 8.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 8.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:18:02.750103Z", "created_at": "2023-09-22T15:17:47.047922Z", "data_removed": false, "error": null, "id": "akkinrlbackd3twfovoofrnwv4", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 15.059723, "total_time": 15.702181 }, "output": [ "https://pbxt.replicate.delivery/hB2iw4baJd5dL5MoazDem4lDBUB3S4ZIxZSiMIZRrSBVEbzIA/out-0.png" ], "started_at": "2023-09-22T15:17:47.690380Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/akkinrlbackd3twfovoofrnwv4", "cancel": "https://api.replicate.com/v1/predictions/akkinrlbackd3twfovoofrnwv4/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eIDj66gielb76kspech5zaxzcyhkaStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.7
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 8.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, deformed, mutated text, watermark
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \ndeformed, mutated text, watermark", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.7, num_outputs: 1, guidance_scale: 8.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \ndeformed, mutated text, watermark", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \ndeformed, mutated text, watermark", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \\ndeformed, mutated text, watermark", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T15:19:01.139278Z", "created_at": "2023-09-22T15:18:43.955927Z", "data_removed": false, "error": null, "id": "j66gielb76kspech5zaxzcyhka", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK, dressed in a halloween costume, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.7, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \ndeformed, mutated text, watermark", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 15.824049, "total_time": 17.183351 }, "output": [ "https://pbxt.replicate.delivery/sReoD11AP8yFOCf12uosaWHQR7ZHmGBDSpc8ffeT6hZkMx2MC/out-0.png" ], "started_at": "2023-09-22T15:18:45.315229Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/j66gielb76kspech5zaxzcyhka", "cancel": "https://api.replicate.com/v1/predictions/j66gielb76kspech5zaxzcyhka/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated inPrediction
genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293eID5d3okudbswu62w42mvqnvp72miStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- full body, a photo of TOK, bald, dressed as a jedi from star wars, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination
- refine
- no_refiner
- scheduler
- K_EULER_ANCESTRAL
- lora_scale
- 0.8
- num_outputs
- 1
- refine_steps
- null
- guidance_scale
- 8.5
- apply_watermark
- high_noise_frac
- 0.9
- negative_prompt
- worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, deformed, mutated text, watermark
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "full body, a photo of TOK, bald, dressed as a jedi from star wars, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.8, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \ndeformed, mutated text, watermark", "prompt_strength": 0.8, "num_inference_steps": 50 }
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", { input: { width: 1024, height: 1024, prompt: "full body, a photo of TOK, bald, dressed as a jedi from star wars, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", refine: "no_refiner", scheduler: "K_EULER_ANCESTRAL", lora_scale: 0.8, num_outputs: 1, guidance_scale: 8.5, apply_watermark: false, high_noise_frac: 0.9, negative_prompt: "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \ndeformed, mutated text, watermark", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
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 genkernel/headshot-public using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", input={ "width": 1024, "height": 1024, "prompt": "full body, a photo of TOK, bald, dressed as a jedi from star wars, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.8, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": False, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \ndeformed, mutated text, watermark", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run genkernel/headshot-public 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": "genkernel/headshot-public:f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e", "input": { "width": 1024, "height": 1024, "prompt": "full body, a photo of TOK, bald, dressed as a jedi from star wars, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.8, "num_outputs": 1, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \\ndeformed, mutated text, watermark", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-09-22T18:50:28.399766Z", "created_at": "2023-09-22T18:50:12.259065Z", "data_removed": false, "error": null, "id": "5d3okudbswu62w42mvqnvp72mi", "input": { "width": 1024, "height": 1024, "prompt": "full body, a photo of TOK, bald, dressed as a jedi from star wars, RAW photo, subject, 8k uhd, dslr, soft lighting, high quality, clearly face, clear facial features, 35mm lens, f/1.8, natural lighting, global illumination", "refine": "no_refiner", "scheduler": "K_EULER_ANCESTRAL", "lora_scale": 0.8, "num_outputs": 1, "refine_steps": null, "guidance_scale": 8.5, "apply_watermark": false, "high_noise_frac": 0.9, "negative_prompt": "worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch, text, watermark, medium quality, blurry, censored, wrinkles, \ndeformed, mutated text, watermark", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 14.936375, "total_time": 16.140701 }, "output": [ "https://pbxt.replicate.delivery/R2wXBZhXedVPXyuwN46stSyoBwok3ulipeYV2ZGZ50azP5mRA/out-0.png" ], "started_at": "2023-09-22T18:50:13.463391Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/5d3okudbswu62w42mvqnvp72mi", "cancel": "https://api.replicate.com/v1/predictions/5d3okudbswu62w42mvqnvp72mi/cancel" }, "version": "f889ba013f4785999ac7c260c556e8af4591385fe6e9d269f04098b5f0e7293e" }
Generated in
Want to make some of these yourself?
Run this model