peter65374
/
sdxl-gongbao
finetuned sdxl 1.0 with food named 'gongbao chicken' images
- Public
- 208 runs
-
L40S
- SDXL fine-tune
Prediction
peter65374/sdxl-gongbao:d1482b21IDwciwlqdby4hibecui52fhync4qStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 768
- height
- 512
- prompt
- a photo of TOK plate, a glass of Bundaberg juice and vegetable salad on a table
- refine
- no_refiner
- scheduler
- K_EULER
- lora_scale
- 0.8
- num_outputs
- 2
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw
- prompt_strength
- 0.8
- num_inference_steps
- 30
{ "image": "https://replicate.delivery/pbxt/JXq6GWMe7YRjxu8Mc7gGkLecuqrnBI23rrX8bj7F0m8iYyjk/%E9%A4%90%E6%A1%8C%E8%83%8C%E6%99%AF1.png", "width": 768, "height": 512, "prompt": "a photo of TOK plate, a glass of Bundaberg juice and vegetable salad on a table", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", { input: { image: "https://replicate.delivery/pbxt/JXq6GWMe7YRjxu8Mc7gGkLecuqrnBI23rrX8bj7F0m8iYyjk/%E9%A4%90%E6%A1%8C%E8%83%8C%E6%99%AF1.png", width: 768, height: 512, prompt: "a photo of TOK plate, a glass of Bundaberg juice and vegetable salad on a table", refine: "no_refiner", scheduler: "K_EULER", lora_scale: 0.8, num_outputs: 2, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.8, negative_prompt: "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", prompt_strength: 0.8, num_inference_steps: 30 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", input={ "image": "https://replicate.delivery/pbxt/JXq6GWMe7YRjxu8Mc7gGkLecuqrnBI23rrX8bj7F0m8iYyjk/%E9%A4%90%E6%A1%8C%E8%83%8C%E6%99%AF1.png", "width": 768, "height": 512, "prompt": "a photo of TOK plate, a glass of Bundaberg juice and vegetable salad on a table", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run peter65374/sdxl-gongbao 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": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", "input": { "image": "https://replicate.delivery/pbxt/JXq6GWMe7YRjxu8Mc7gGkLecuqrnBI23rrX8bj7F0m8iYyjk/%E9%A4%90%E6%A1%8C%E8%83%8C%E6%99%AF1.png", "width": 768, "height": 512, "prompt": "a photo of TOK plate, a glass of Bundaberg juice and vegetable salad on a table", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "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.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run peter65374/sdxl-gongbao using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29 \ -i 'image="https://replicate.delivery/pbxt/JXq6GWMe7YRjxu8Mc7gGkLecuqrnBI23rrX8bj7F0m8iYyjk/%E9%A4%90%E6%A1%8C%E8%83%8C%E6%99%AF1.png"' \ -i 'width=768' \ -i 'height=512' \ -i 'prompt="a photo of TOK plate, a glass of Bundaberg juice and vegetable salad on a table"' \ -i 'refine="no_refiner"' \ -i 'scheduler="K_EULER"' \ -i 'lora_scale=0.8' \ -i 'num_outputs=2' \ -i 'guidance_scale=7.5' \ -i 'apply_watermark=false' \ -i 'high_noise_frac=0.8' \ -i 'negative_prompt="unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw"' \ -i 'prompt_strength=0.8' \ -i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Pull and run peter65374/sdxl-gongbao using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/JXq6GWMe7YRjxu8Mc7gGkLecuqrnBI23rrX8bj7F0m8iYyjk/%E9%A4%90%E6%A1%8C%E8%83%8C%E6%99%AF1.png", "width": 768, "height": 512, "prompt": "a photo of TOK plate, a glass of Bundaberg juice and vegetable salad on a table", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-09-17T18:12:30.981086Z", "created_at": "2023-09-17T18:12:18.955470Z", "data_removed": false, "error": null, "id": "wciwlqdby4hibecui52fhync4q", "input": { "image": "https://replicate.delivery/pbxt/JXq6GWMe7YRjxu8Mc7gGkLecuqrnBI23rrX8bj7F0m8iYyjk/%E9%A4%90%E6%A1%8C%E8%83%8C%E6%99%AF1.png", "width": 768, "height": 512, "prompt": "a photo of TOK plate, a glass of Bundaberg juice and vegetable salad on a table", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }, "logs": null, "metrics": { "predict_time": 11.715589, "total_time": 12.025616 }, "output": [ "https://replicate.delivery/pbxt/QYhYDdOm5RY3NR9fbkp6tQc16ifhqCmmBh58xHDKWdZJOPlRA/out-0.png", "https://replicate.delivery/pbxt/jEj6FXmEwIJYPVVWAKZceBQHuL44YIwGEdaMp1CJ9CDHnnyIA/out-1.png" ], "started_at": "2023-09-17T18:12:19.265497Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/wciwlqdby4hibecui52fhync4q", "cancel": "https://api.replicate.com/v1/predictions/wciwlqdby4hibecui52fhync4q/cancel" }, "version": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29" }
Generated inPrediction
peter65374/sdxl-gongbao:d1482b21IDgqq6c5dbvcsciwxxldbjaljwwyStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK plate on a cloth on the table
- refine
- no_refiner
- scheduler
- K_EULER
- lora_scale
- 0.8
- num_outputs
- 2
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw
- prompt_strength
- 0.8
- num_inference_steps
- 30
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK plate on a cloth on the table", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", { input: { width: 1024, height: 1024, prompt: "a photo of TOK plate on a cloth on the table", refine: "no_refiner", scheduler: "K_EULER", lora_scale: 0.8, num_outputs: 2, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.8, negative_prompt: "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", prompt_strength: 0.8, num_inference_steps: 30 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK plate on a cloth on the table", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run peter65374/sdxl-gongbao 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": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK plate on a cloth on the table", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "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.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run peter65374/sdxl-gongbao using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29 \ -i 'width=1024' \ -i 'height=1024' \ -i 'prompt="a photo of TOK plate on a cloth on the table"' \ -i 'refine="no_refiner"' \ -i 'scheduler="K_EULER"' \ -i 'lora_scale=0.8' \ -i 'num_outputs=2' \ -i 'guidance_scale=7.5' \ -i 'apply_watermark=false' \ -i 'high_noise_frac=0.8' \ -i 'negative_prompt="unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw"' \ -i 'prompt_strength=0.8' \ -i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Pull and run peter65374/sdxl-gongbao using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK plate on a cloth on the table", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-09-15T06:13:15.211911Z", "created_at": "2023-09-15T06:12:53.436886Z", "data_removed": false, "error": null, "id": "gqq6c5dbvcsciwxxldbjaljwwy", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK plate on a cloth on the table", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }, "logs": null, "metrics": { "predict_time": 19.912563, "total_time": 21.775025 }, "output": [ "https://replicate.delivery/pbxt/tiKXiRYRDYbwNp1FBDuijxaceC5eAcFC9YxiFgYbQ2z6f0IjA/out-0.png", "https://replicate.delivery/pbxt/BeaIG8RXAx0TFSaDnSBl6ESCgmzsKVEO7giVrYVJrHI9PNyIA/out-1.png" ], "started_at": "2023-09-15T06:12:55.299348Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/gqq6c5dbvcsciwxxldbjaljwwy", "cancel": "https://api.replicate.com/v1/predictions/gqq6c5dbvcsciwxxldbjaljwwy/cancel" }, "version": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29" }
Generated inPrediction
peter65374/sdxl-gongbao:d1482b21ID2g2exxlb4xogzuykx2bhjqrraqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK plates, these are some vegetables on a plate with tomatoes in the background
- refine
- no_refiner
- scheduler
- DPMSolverMultistep
- lora_scale
- 0.8
- num_outputs
- 2
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw
- prompt_strength
- 0.8
- num_inference_steps
- 30
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK plates, these are some vegetables on a plate with tomatoes in the background", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", { input: { width: 1024, height: 1024, prompt: "a photo of TOK plates, these are some vegetables on a plate with tomatoes in the background", refine: "no_refiner", scheduler: "DPMSolverMultistep", lora_scale: 0.8, num_outputs: 2, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.8, negative_prompt: "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", prompt_strength: 0.8, num_inference_steps: 30 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK plates, these are some vegetables on a plate with tomatoes in the background", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run peter65374/sdxl-gongbao 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": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK plates, these are some vegetables on a plate with tomatoes in the background", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "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.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run peter65374/sdxl-gongbao using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29 \ -i 'width=1024' \ -i 'height=1024' \ -i 'prompt="a photo of TOK plates, these are some vegetables on a plate with tomatoes in the background"' \ -i 'refine="no_refiner"' \ -i 'scheduler="DPMSolverMultistep"' \ -i 'lora_scale=0.8' \ -i 'num_outputs=2' \ -i 'guidance_scale=7.5' \ -i 'apply_watermark=false' \ -i 'high_noise_frac=0.8' \ -i 'negative_prompt="unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw"' \ -i 'prompt_strength=0.8' \ -i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Pull and run peter65374/sdxl-gongbao using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK plates, these are some vegetables on a plate with tomatoes in the background", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-09-15T06:14:49.985516Z", "created_at": "2023-09-15T06:14:29.592242Z", "data_removed": false, "error": null, "id": "2g2exxlb4xogzuykx2bhjqrraq", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK plates, these are some vegetables on a plate with tomatoes in the background", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }, "logs": null, "metrics": { "predict_time": 19.869461, "total_time": 20.393274 }, "output": [ "https://replicate.delivery/pbxt/VKPG7djdkSZyCZDYCyFlWUeOpYFg5sXev41HSO4fxaSyC1IjA/out-0.png", "https://replicate.delivery/pbxt/eB5GvmwZ0y0dd6gsth2Hi46tM7qd7VhDILHOxTSz5GrsQNyIA/out-1.png" ], "started_at": "2023-09-15T06:14:30.116055Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/2g2exxlb4xogzuykx2bhjqrraq", "cancel": "https://api.replicate.com/v1/predictions/2g2exxlb4xogzuykx2bhjqrraq/cancel" }, "version": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29" }
Generated inPrediction
peter65374/sdxl-gongbao:d1482b21IDpugbo73bmyglzwe7xomsa2t7suStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK plate with Thai style rice and vegetables and fruit on a plate
- refine
- no_refiner
- scheduler
- DPMSolverMultistep
- lora_scale
- 0.8
- num_outputs
- 2
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw
- prompt_strength
- 0.8
- num_inference_steps
- 30
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK plate with Thai style rice and vegetables and fruit on a plate", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", { input: { width: 1024, height: 1024, prompt: "a photo of TOK plate with Thai style rice and vegetables and fruit on a plate", refine: "no_refiner", scheduler: "DPMSolverMultistep", lora_scale: 0.8, num_outputs: 2, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.8, negative_prompt: "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", prompt_strength: 0.8, num_inference_steps: 30 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK plate with Thai style rice and vegetables and fruit on a plate", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run peter65374/sdxl-gongbao 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": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK plate with Thai style rice and vegetables and fruit on a plate", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "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.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run peter65374/sdxl-gongbao using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29 \ -i 'width=1024' \ -i 'height=1024' \ -i 'prompt="a photo of TOK plate with Thai style rice and vegetables and fruit on a plate"' \ -i 'refine="no_refiner"' \ -i 'scheduler="DPMSolverMultistep"' \ -i 'lora_scale=0.8' \ -i 'num_outputs=2' \ -i 'guidance_scale=7.5' \ -i 'apply_watermark=false' \ -i 'high_noise_frac=0.8' \ -i 'negative_prompt="unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw"' \ -i 'prompt_strength=0.8' \ -i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Pull and run peter65374/sdxl-gongbao using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK plate with Thai style rice and vegetables and fruit on a plate", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-09-15T06:16:17.034780Z", "created_at": "2023-09-15T06:15:56.221636Z", "data_removed": false, "error": null, "id": "pugbo73bmyglzwe7xomsa2t7su", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK plate with Thai style rice and vegetables and fruit on a plate", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }, "logs": null, "metrics": { "predict_time": 20.0414, "total_time": 20.813144 }, "output": [ "https://replicate.delivery/pbxt/ZYSHKpiz39opKVssJ4a71kQ7GV6mTcJCKhRIuREATY5roGZE/out-0.png", "https://replicate.delivery/pbxt/kOlqcjQETQZYCtK5MnTwrIeWiuO4P0VAPTrlBMr0TTRYRNyIA/out-1.png" ], "started_at": "2023-09-15T06:15:56.993380Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/pugbo73bmyglzwe7xomsa2t7su", "cancel": "https://api.replicate.com/v1/predictions/pugbo73bmyglzwe7xomsa2t7su/cancel" }, "version": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29" }
Generated inPrediction
peter65374/sdxl-gongbao:d1482b21IDixgrxydbw6owen3kb534ebuhaqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK several plates on a table, several people hold up a bottle of ginger beer behind table remote background shot
- refine
- no_refiner
- scheduler
- K_EULER
- lora_scale
- 0.8
- num_outputs
- 2
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw
- prompt_strength
- 0.8
- num_inference_steps
- 30
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK several plates on a table, several people hold up a bottle of ginger beer behind table remote background shot", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", { input: { width: 1024, height: 1024, prompt: "a photo of TOK several plates on a table, several people hold up a bottle of ginger beer behind table remote background shot", refine: "no_refiner", scheduler: "K_EULER", lora_scale: 0.8, num_outputs: 2, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.8, negative_prompt: "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", prompt_strength: 0.8, num_inference_steps: 30 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK several plates on a table, several people hold up a bottle of ginger beer behind table remote background shot", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run peter65374/sdxl-gongbao 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": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK several plates on a table, several people hold up a bottle of ginger beer behind table remote background shot", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "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.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run peter65374/sdxl-gongbao using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29 \ -i 'width=1024' \ -i 'height=1024' \ -i 'prompt="a photo of TOK several plates on a table, several people hold up a bottle of ginger beer behind table remote background shot"' \ -i 'refine="no_refiner"' \ -i 'scheduler="K_EULER"' \ -i 'lora_scale=0.8' \ -i 'num_outputs=2' \ -i 'guidance_scale=7.5' \ -i 'apply_watermark=false' \ -i 'high_noise_frac=0.8' \ -i 'negative_prompt="unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw"' \ -i 'prompt_strength=0.8' \ -i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Pull and run peter65374/sdxl-gongbao using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK several plates on a table, several people hold up a bottle of ginger beer behind table remote background shot", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-09-15T06:22:30.222179Z", "created_at": "2023-09-15T06:22:10.236467Z", "data_removed": false, "error": null, "id": "ixgrxydbw6owen3kb534ebuhaq", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK several plates on a table, several people hold up a bottle of ginger beer behind table remote background shot", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }, "logs": null, "metrics": { "predict_time": 19.36899, "total_time": 19.985712 }, "output": [ "https://replicate.delivery/pbxt/r6ozJByloOISBVizqRDQxgk9PM2GDeFygJq2r5hIvK1SUNyIA/out-0.png", "https://replicate.delivery/pbxt/XJie8UAlSQ2jX6mk5BwRAh4BpeulYS0fL9ltatXvV4WLR1IjA/out-1.png" ], "started_at": "2023-09-15T06:22:10.853189Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ixgrxydbw6owen3kb534ebuhaq", "cancel": "https://api.replicate.com/v1/predictions/ixgrxydbw6owen3kb534ebuhaq/cancel" }, "version": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29" }
Generated inPrediction
peter65374/sdxl-gongbao:d1482b21IDmohdkx3bv2jx5xxmk3pgzzdjyeStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- a photo of TOK plate, someone is eating with a sauce
- refine
- no_refiner
- scheduler
- DPMSolverMultistep
- lora_scale
- 0.8
- num_outputs
- 2
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw
- prompt_strength
- 0.8
- num_inference_steps
- 30
{ "width": 1024, "height": 1024, "prompt": "a photo of TOK plate, someone is eating with a sauce", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", { input: { width: 1024, height: 1024, prompt: "a photo of TOK plate, someone is eating with a sauce", refine: "no_refiner", scheduler: "DPMSolverMultistep", lora_scale: 0.8, num_outputs: 2, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.8, negative_prompt: "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", prompt_strength: 0.8, num_inference_steps: 30 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", input={ "width": 1024, "height": 1024, "prompt": "a photo of TOK plate, someone is eating with a sauce", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run peter65374/sdxl-gongbao 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": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK plate, someone is eating with a sauce", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "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.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run peter65374/sdxl-gongbao using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29 \ -i 'width=1024' \ -i 'height=1024' \ -i 'prompt="a photo of TOK plate, someone is eating with a sauce"' \ -i 'refine="no_refiner"' \ -i 'scheduler="DPMSolverMultistep"' \ -i 'lora_scale=0.8' \ -i 'num_outputs=2' \ -i 'guidance_scale=7.5' \ -i 'apply_watermark=false' \ -i 'high_noise_frac=0.8' \ -i 'negative_prompt="unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw"' \ -i 'prompt_strength=0.8' \ -i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Pull and run peter65374/sdxl-gongbao using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK plate, someone is eating with a sauce", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-09-15T06:17:58.124683Z", "created_at": "2023-09-15T06:17:38.291648Z", "data_removed": false, "error": null, "id": "mohdkx3bv2jx5xxmk3pgzzdjye", "input": { "width": 1024, "height": 1024, "prompt": "a photo of TOK plate, someone is eating with a sauce", "refine": "no_refiner", "scheduler": "DPMSolverMultistep", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }, "logs": null, "metrics": { "predict_time": 19.065599, "total_time": 19.833035 }, "output": [ "https://replicate.delivery/pbxt/xE0WChoeJF1SZKflJCXOC4I41XpiUkwfSCfZCuTe2gfdFpGZE/out-0.png", "https://replicate.delivery/pbxt/QjMOMOpHvgohJlQJ3We3zLJ7kb4I4kNBJdcHAqvr2PoKSNyIA/out-1.png" ], "started_at": "2023-09-15T06:17:39.059084Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/mohdkx3bv2jx5xxmk3pgzzdjye", "cancel": "https://api.replicate.com/v1/predictions/mohdkx3bv2jx5xxmk3pgzzdjye/cancel" }, "version": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29" }
Generated inPrediction
peter65374/sdxl-gongbao:d1482b21IDzuqy5rlblrxbqqx726hzsckusmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 512
- prompt
- a photo of TOK plates, 3 plates are lined up with drinks on a table in a garden restaurant
- refine
- no_refiner
- scheduler
- K_EULER
- lora_scale
- 0.8
- num_outputs
- 2
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw
- prompt_strength
- 0.8
- num_inference_steps
- 30
{ "width": 1024, "height": 512, "prompt": "a photo of TOK plates, 3 plates are lined up with drinks on a table in a garden restaurant", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", { input: { width: 1024, height: 512, prompt: "a photo of TOK plates, 3 plates are lined up with drinks on a table in a garden restaurant", refine: "no_refiner", scheduler: "K_EULER", lora_scale: 0.8, num_outputs: 2, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.8, negative_prompt: "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", prompt_strength: 0.8, num_inference_steps: 30 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", input={ "width": 1024, "height": 512, "prompt": "a photo of TOK plates, 3 plates are lined up with drinks on a table in a garden restaurant", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run peter65374/sdxl-gongbao 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": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", "input": { "width": 1024, "height": 512, "prompt": "a photo of TOK plates, 3 plates are lined up with drinks on a table in a garden restaurant", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "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.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run peter65374/sdxl-gongbao using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29 \ -i 'width=1024' \ -i 'height=512' \ -i 'prompt="a photo of TOK plates, 3 plates are lined up with drinks on a table in a garden restaurant"' \ -i 'refine="no_refiner"' \ -i 'scheduler="K_EULER"' \ -i 'lora_scale=0.8' \ -i 'num_outputs=2' \ -i 'guidance_scale=7.5' \ -i 'apply_watermark=false' \ -i 'high_noise_frac=0.8' \ -i 'negative_prompt="unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw"' \ -i 'prompt_strength=0.8' \ -i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Pull and run peter65374/sdxl-gongbao using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 1024, "height": 512, "prompt": "a photo of TOK plates, 3 plates are lined up with drinks on a table in a garden restaurant", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-09-15T06:29:55.400720Z", "created_at": "2023-09-15T06:29:44.754392Z", "data_removed": false, "error": null, "id": "zuqy5rlblrxbqqx726hzsckusm", "input": { "width": 1024, "height": 512, "prompt": "a photo of TOK plates, 3 plates are lined up with drinks on a table in a garden restaurant", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }, "logs": null, "metrics": { "predict_time": 10.07166, "total_time": 10.646328 }, "output": [ "https://replicate.delivery/pbxt/jctzkIhWvEpOD1Aag1VXQn0CJLFsuwSO2dtnvBzfOfVivakRA/out-0.png", "https://replicate.delivery/pbxt/HuqHH9HuBYqxPxnfLMdV7tilmIeGO5odezrg9cmq1E9GfqRGB/out-1.png" ], "started_at": "2023-09-15T06:29:45.329060Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/zuqy5rlblrxbqqx726hzsckusm", "cancel": "https://api.replicate.com/v1/predictions/zuqy5rlblrxbqqx726hzsckusm/cancel" }, "version": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29" }
Generated inPrediction
peter65374/sdxl-gongbao:d1482b21IDnln2jodbadv2pxt2v2i2t5zigqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 512
- prompt
- a photo of TOK plate, a bowl of spicy meat and and a curry crab with Bundaberg juice drinks on a table in a garden restaurant
- refine
- no_refiner
- scheduler
- K_EULER
- lora_scale
- 0.8
- num_outputs
- 2
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw
- prompt_strength
- 0.8
- num_inference_steps
- 30
{ "width": 1024, "height": 512, "prompt": "a photo of TOK plate, a bowl of spicy meat and and a curry crab with Bundaberg juice drinks on a table in a garden restaurant", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", { input: { width: 1024, height: 512, prompt: "a photo of TOK plate, a bowl of spicy meat and and a curry crab with Bundaberg juice drinks on a table in a garden restaurant", refine: "no_refiner", scheduler: "K_EULER", lora_scale: 0.8, num_outputs: 2, guidance_scale: 7.5, apply_watermark: false, high_noise_frac: 0.8, negative_prompt: "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", prompt_strength: 0.8, num_inference_steps: 30 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run peter65374/sdxl-gongbao using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "peter65374/sdxl-gongbao:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", input={ "width": 1024, "height": 512, "prompt": "a photo of TOK plate, a bowl of spicy meat and and a curry crab with Bundaberg juice drinks on a table in a garden restaurant", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": False, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run peter65374/sdxl-gongbao 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": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29", "input": { "width": 1024, "height": 512, "prompt": "a photo of TOK plate, a bowl of spicy meat and and a curry crab with Bundaberg juice drinks on a table in a garden restaurant", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "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.
Install Cogbrew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run peter65374/sdxl-gongbao using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29 \ -i 'width=1024' \ -i 'height=512' \ -i 'prompt="a photo of TOK plate, a bowl of spicy meat and and a curry crab with Bundaberg juice drinks on a table in a garden restaurant"' \ -i 'refine="no_refiner"' \ -i 'scheduler="K_EULER"' \ -i 'lora_scale=0.8' \ -i 'num_outputs=2' \ -i 'guidance_scale=7.5' \ -i 'apply_watermark=false' \ -i 'high_noise_frac=0.8' \ -i 'negative_prompt="unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw"' \ -i 'prompt_strength=0.8' \ -i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Pull and run peter65374/sdxl-gongbao using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/peter65374/sdxl-gongbao@sha256:d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 1024, "height": 512, "prompt": "a photo of TOK plate, a bowl of spicy meat and and a curry crab with Bundaberg juice drinks on a table in a garden restaurant", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
Output
{ "completed_at": "2023-09-15T06:44:13.648306Z", "created_at": "2023-09-15T06:44:02.442195Z", "data_removed": false, "error": null, "id": "nln2jodbadv2pxt2v2i2t5zigq", "input": { "width": 1024, "height": 512, "prompt": "a photo of TOK plate, a bowl of spicy meat and and a curry crab with Bundaberg juice drinks on a table in a garden restaurant", "refine": "no_refiner", "scheduler": "K_EULER", "lora_scale": 0.8, "num_outputs": 2, "guidance_scale": 7.5, "apply_watermark": false, "high_noise_frac": 0.8, "negative_prompt": "unrealistic, poor texture, poor quality, bad material, soft detail, bad pictures, (bad hand), ((low quality)), ((worst quality)), nsfw", "prompt_strength": 0.8, "num_inference_steps": 30 }, "logs": null, "metrics": { "predict_time": 10.281856, "total_time": 11.206111 }, "output": [ "https://replicate.delivery/pbxt/cT1ErbC9QLrvKt4pAmtqSlhfaJx75IH7OaB0bSaRXjHe8akRA/out-0.png", "https://replicate.delivery/pbxt/Nv8N1GnbK16uN5pJjywwEjiIlAyRJOUgbPx0tX1pGzZPvGZE/out-1.png" ], "started_at": "2023-09-15T06:44:03.366450Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/nln2jodbadv2pxt2v2i2t5zigq", "cancel": "https://api.replicate.com/v1/predictions/nln2jodbadv2pxt2v2i2t5zigq/cancel" }, "version": "d1482b21e7b16dd914a74db9e9d877341f2c3197a25c695afac57402708fac29" }
Generated in
Want to make some of these yourself?
Run this model