Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
zust-ai /zust-diffusion:fe567b41
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run zust-ai/zust-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"zust-ai/zust-diffusion:fe567b4133fea42898f1d7f0ec03e644242feebd83eb47dee11d5f6a7cc0719a",
{
input: {
erode: 0,
width: 768,
height: 768,
prompt: "['standing on a dark marble platform, heavy shadow, in an outdoor patio, plants, flowers, fairy lights, product photography, high definition, ultra realistic, intricate']",
platform: "{'top': 0.71484375, 'left': 0.08203125, 'scale': 0.0013020833333333333, 'image_url': 'https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/test_platform.png'}",
subjects: "[{'top': 0.15885416666666666, 'left': 0.2916666666666667, 'scale': 0.0013020833333333333, 'image_url': 'https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/test_subject.png'}]",
template: "{'display_url': 'https://raw.githubusercontent.com/zust-ai/product-ai-training/main/backgrounds/p1.png', 'updated_at': 1685447490212, 'name': 'Cherry Blossom', 'created_at': 1685447490212, 'category': 'studio', '_version': 1, 'product_category': ['fmcg'], 'id': 'vPpz1JUh8nN9qWaFfVlP', 'variants': [{'id': '6m95Ldic4RgPsFol7cVZ', 'aspect_ratio': '2:3', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2873901965228871, 0.7939756567570426, 0.7245003918793749, 0.8234708742813466], 'background': {'top': 1.1102230246251565e-16, 'updated_at': 1685453827069, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2F6m95Ldic4RgPsFol7cVZ%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685453827057, 'scale': 0.0009765625, 'id': '26867', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2F6m95Ldic4RgPsFol7cVZ%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': '8t0vJRFEYzhEWvkFFRzL', 'aspect_ratio': '1:1', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2743155110235001, 0.784389846119357, 0.7574043422765313, 0.8430193382726614], 'background': {'top': 0, 'updated_at': 1685447813973, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2F8t0vJRFEYzhEWvkFFRzL%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685447813315, 'scale': 0.0009765625, 'id': '58676', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2F8t0vJRFEYzhEWvkFFRzL%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'JSaURKLpRkYRfqVKiIMi', 'aspect_ratio': '2:3', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.24940248222300615, 0.8036925402129088, 0.7432336859660815, 0.8595621556888488], 'background': {'top': 1.1102230246251565e-16, 'updated_at': 1685453886436, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FJSaURKLpRkYRfqVKiIMi%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685453886422, 'scale': 0.0009765625, 'id': '31892', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FJSaURKLpRkYRfqVKiIMi%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'JaGDkYy9eNU9xFYmDS7C', 'aspect_ratio': '3:2', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2572767857142857, 0.8682716481198474, 0.7415625, 0.9492691405325123], 'background': {'top': 5.551115123125783e-17, 'updated_at': 1685454070939, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FJaGDkYy9eNU9xFYmDS7C%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685454070928, 'scale': 0.0006510416666666666, 'id': '38093', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FJaGDkYy9eNU9xFYmDS7C%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'OJ7y71qDUh1zjQFbfOoF', 'aspect_ratio': '1:1', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2700297967377858, 0.7872469889764998, 0.7531186279908171, 0.8458764811298043], 'background': {'top': 0, 'updated_at': 1685447788313, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FOJ7y71qDUh1zjQFbfOoF%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685447787434, 'scale': 0.0009765625, 'id': '47054', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FOJ7y71qDUh1zjQFbfOoF%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'OgGdf0BR5BgMcb9weqQE', 'aspect_ratio': '2:3', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2743802076719484, 0.8259025595406021, 0.7682114114150238, 0.8595621556888488], 'background': {'top': 1.1102230246251565e-16, 'updated_at': 1685453925253, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FOgGdf0BR5BgMcb9weqQE%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685453925241, 'scale': 0.0009765625, 'id': '36141', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FOgGdf0BR5BgMcb9weqQE%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'UO9fxHwNQyCi9IXxdJNO', 'aspect_ratio': '3:2', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.37448581693432254, 0.8875505822337976, 0.6672767857142857, 0.919279687466368], 'background': {'top': 5.551115123125783e-17, 'updated_at': 1685454102887, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FUO9fxHwNQyCi9IXxdJNO%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685454102874, 'scale': 0.0006510416666666666, 'id': '48782', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FUO9fxHwNQyCi9IXxdJNO%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'WzAGcwGXxBCdAF7cBTNq', 'aspect_ratio': '2:3', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2681357763097128, 0.8134094236687742, 0.7619669800527882, 0.8553977770649062], 'background': {'top': 1.1102230246251565e-16, 'updated_at': 1685453947787, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FWzAGcwGXxBCdAF7cBTNq%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685453947778, 'scale': 0.0009765625, 'id': '70990', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FWzAGcwGXxBCdAF7cBTNq%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'bSP4wHknXCICeEmXvLw0', 'aspect_ratio': '1:1', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.29111727873324905, 0.7987645438253943, 0.6910760157273919, 0.8473050525583758], 'background': {'top': 0, 'updated_at': 1685447016271, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FbSP4wHknXCICeEmXvLw0%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685447016254, 'scale': 0.0009765625, 'id': '11089', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FbSP4wHknXCICeEmXvLw0%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'fC2m6MliBeSriPDDJKnI', 'aspect_ratio': '3:2', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.38311450799809155, 0.8597032329580921, 0.6885714285714286, 0.8957165457715404], 'background': {'top': 5.551115123125783e-17, 'updated_at': 1685454039386, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FfC2m6MliBeSriPDDJKnI%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685454039373, 'scale': 0.0006510416666666666, 'id': '15750', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FfC2m6MliBeSriPDDJKnI%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'h8spbQK3BXV4qde8uB67', 'aspect_ratio': '3:2', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.37448581693432254, 0.8832663746529197, 0.6672767857142857, 0.9235638950472459], 'background': {'top': 5.551115123125783e-17, 'updated_at': 1685454138518, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2Fh8spbQK3BXV4qde8uB67%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685454138504, 'scale': 0.0006510416666666666, 'id': '62969', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2Fh8spbQK3BXV4qde8uB67%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'ii1D10E50Dv0U7911itn', 'aspect_ratio': '1:1', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.38860122530921426, 0.6185714285714285, 0.6321648860910154, 0.63159076684409], 'background': {'top': 0, 'updated_at': 1685447838052, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2Fii1D10E50Dv0U7911itn%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685447837365, 'scale': 0.0009765625, 'id': '77124', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2Fii1D10E50Dv0U7911itn%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'ooGqu9RoLyPSggJNsGL3', 'aspect_ratio': '1:1', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2169643371536056, 0.7617410199892515, 0.7925045871559633, 0.8315907668440901], 'background': {'top': 0, 'updated_at': 1685447625625, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FooGqu9RoLyPSggJNsGL3%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685447624625, 'scale': 0.0009765625, 'id': '17799', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FooGqu9RoLyPSggJNsGL3%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}]}",
pipe_type: "txt2img",
background: "{'top': 0, 'left': 0, 'scale': 0.0013020833333333333, 'image_url': 'https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/test_background.png'}",
with_detail: false,
is_heartbeat: false,
use_template: false,
with_cleanup: false,
dilate_strength: 4,
negative_prompt: "['float, leavitate, fog, haze, low contrast, ugly, blur, floating, levitated, text, signature, watermark']",
prompt_strength: 7.5,
background_strength: 0.8,
num_inference_steps: 30,
num_images_per_prompt: 1,
subject_control_strength: 0.8,
platform_control_strength: 0.2
}
}
);
// 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.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run zust-ai/zust-diffusion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zust-ai/zust-diffusion:fe567b4133fea42898f1d7f0ec03e644242feebd83eb47dee11d5f6a7cc0719a",
input={
"erode": 0,
"width": 768,
"height": 768,
"prompt": "['standing on a dark marble platform, heavy shadow, in an outdoor patio, plants, flowers, fairy lights, product photography, high definition, ultra realistic, intricate']",
"platform": "{'top': 0.71484375, 'left': 0.08203125, 'scale': 0.0013020833333333333, 'image_url': 'https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/test_platform.png'}",
"subjects": "[{'top': 0.15885416666666666, 'left': 0.2916666666666667, 'scale': 0.0013020833333333333, 'image_url': 'https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/test_subject.png'}]",
"template": "{'display_url': 'https://raw.githubusercontent.com/zust-ai/product-ai-training/main/backgrounds/p1.png', 'updated_at': 1685447490212, 'name': 'Cherry Blossom', 'created_at': 1685447490212, 'category': 'studio', '_version': 1, 'product_category': ['fmcg'], 'id': 'vPpz1JUh8nN9qWaFfVlP', 'variants': [{'id': '6m95Ldic4RgPsFol7cVZ', 'aspect_ratio': '2:3', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2873901965228871, 0.7939756567570426, 0.7245003918793749, 0.8234708742813466], 'background': {'top': 1.1102230246251565e-16, 'updated_at': 1685453827069, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2F6m95Ldic4RgPsFol7cVZ%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685453827057, 'scale': 0.0009765625, 'id': '26867', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2F6m95Ldic4RgPsFol7cVZ%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': '8t0vJRFEYzhEWvkFFRzL', 'aspect_ratio': '1:1', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2743155110235001, 0.784389846119357, 0.7574043422765313, 0.8430193382726614], 'background': {'top': 0, 'updated_at': 1685447813973, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2F8t0vJRFEYzhEWvkFFRzL%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685447813315, 'scale': 0.0009765625, 'id': '58676', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2F8t0vJRFEYzhEWvkFFRzL%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'JSaURKLpRkYRfqVKiIMi', 'aspect_ratio': '2:3', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.24940248222300615, 0.8036925402129088, 0.7432336859660815, 0.8595621556888488], 'background': {'top': 1.1102230246251565e-16, 'updated_at': 1685453886436, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FJSaURKLpRkYRfqVKiIMi%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685453886422, 'scale': 0.0009765625, 'id': '31892', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FJSaURKLpRkYRfqVKiIMi%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'JaGDkYy9eNU9xFYmDS7C', 'aspect_ratio': '3:2', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2572767857142857, 0.8682716481198474, 0.7415625, 0.9492691405325123], 'background': {'top': 5.551115123125783e-17, 'updated_at': 1685454070939, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FJaGDkYy9eNU9xFYmDS7C%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685454070928, 'scale': 0.0006510416666666666, 'id': '38093', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FJaGDkYy9eNU9xFYmDS7C%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'OJ7y71qDUh1zjQFbfOoF', 'aspect_ratio': '1:1', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2700297967377858, 0.7872469889764998, 0.7531186279908171, 0.8458764811298043], 'background': {'top': 0, 'updated_at': 1685447788313, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FOJ7y71qDUh1zjQFbfOoF%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685447787434, 'scale': 0.0009765625, 'id': '47054', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FOJ7y71qDUh1zjQFbfOoF%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'OgGdf0BR5BgMcb9weqQE', 'aspect_ratio': '2:3', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2743802076719484, 0.8259025595406021, 0.7682114114150238, 0.8595621556888488], 'background': {'top': 1.1102230246251565e-16, 'updated_at': 1685453925253, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FOgGdf0BR5BgMcb9weqQE%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685453925241, 'scale': 0.0009765625, 'id': '36141', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FOgGdf0BR5BgMcb9weqQE%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'UO9fxHwNQyCi9IXxdJNO', 'aspect_ratio': '3:2', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.37448581693432254, 0.8875505822337976, 0.6672767857142857, 0.919279687466368], 'background': {'top': 5.551115123125783e-17, 'updated_at': 1685454102887, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FUO9fxHwNQyCi9IXxdJNO%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685454102874, 'scale': 0.0006510416666666666, 'id': '48782', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FUO9fxHwNQyCi9IXxdJNO%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'WzAGcwGXxBCdAF7cBTNq', 'aspect_ratio': '2:3', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2681357763097128, 0.8134094236687742, 0.7619669800527882, 0.8553977770649062], 'background': {'top': 1.1102230246251565e-16, 'updated_at': 1685453947787, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FWzAGcwGXxBCdAF7cBTNq%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685453947778, 'scale': 0.0009765625, 'id': '70990', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FWzAGcwGXxBCdAF7cBTNq%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'bSP4wHknXCICeEmXvLw0', 'aspect_ratio': '1:1', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.29111727873324905, 0.7987645438253943, 0.6910760157273919, 0.8473050525583758], 'background': {'top': 0, 'updated_at': 1685447016271, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FbSP4wHknXCICeEmXvLw0%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685447016254, 'scale': 0.0009765625, 'id': '11089', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FbSP4wHknXCICeEmXvLw0%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'fC2m6MliBeSriPDDJKnI', 'aspect_ratio': '3:2', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.38311450799809155, 0.8597032329580921, 0.6885714285714286, 0.8957165457715404], 'background': {'top': 5.551115123125783e-17, 'updated_at': 1685454039386, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FfC2m6MliBeSriPDDJKnI%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685454039373, 'scale': 0.0006510416666666666, 'id': '15750', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FfC2m6MliBeSriPDDJKnI%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'h8spbQK3BXV4qde8uB67', 'aspect_ratio': '3:2', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.37448581693432254, 0.8832663746529197, 0.6672767857142857, 0.9235638950472459], 'background': {'top': 5.551115123125783e-17, 'updated_at': 1685454138518, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2Fh8spbQK3BXV4qde8uB67%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685454138504, 'scale': 0.0006510416666666666, 'id': '62969', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2Fh8spbQK3BXV4qde8uB67%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'ii1D10E50Dv0U7911itn', 'aspect_ratio': '1:1', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.38860122530921426, 0.6185714285714285, 0.6321648860910154, 0.63159076684409], 'background': {'top': 0, 'updated_at': 1685447838052, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2Fii1D10E50Dv0U7911itn%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685447837365, 'scale': 0.0009765625, 'id': '77124', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2Fii1D10E50Dv0U7911itn%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}, {'id': 'ooGqu9RoLyPSggJNsGL3', 'aspect_ratio': '1:1', 'negative_prompt': 'float, levitate, fog, haze, low contrast, ugly, blur', 'poc': [0.2169643371536056, 0.7617410199892515, 0.7925045871559633, 0.8315907668440901], 'background': {'top': 0, 'updated_at': 1685447625625, 'left': 0, 'src': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FooGqu9RoLyPSggJNsGL3%2Fbackground.png?alt=media', 'asset_type': 'background', 'created_at': 1685447624625, 'scale': 0.0009765625, 'id': '17799', '_version': 2, 'caption_prediction': '', 'image_url': 'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FooGqu9RoLyPSggJNsGL3%2Fbackground.png?alt=media'}, 'background_strength': 0.65, 'prompt_strength': 7.5, 'pipe_type': 'multi_img2img', 'background_control_strength': 0.4, 'use_background_as_platform': True, 'prompt': 'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate', '_version': 1, 'platform': None}]}",
"pipe_type": "txt2img",
"background": "{'top': 0, 'left': 0, 'scale': 0.0013020833333333333, 'image_url': 'https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/test_background.png'}",
"with_detail": False,
"is_heartbeat": False,
"use_template": False,
"with_cleanup": False,
"dilate_strength": 4,
"negative_prompt": "['float, leavitate, fog, haze, low contrast, ugly, blur, floating, levitated, text, signature, watermark']",
"prompt_strength": 7.5,
"background_strength": 0.8,
"num_inference_steps": 30,
"num_images_per_prompt": 1,
"subject_control_strength": 0.8,
"platform_control_strength": 0.2
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run zust-ai/zust-diffusion 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": "zust-ai/zust-diffusion:fe567b4133fea42898f1d7f0ec03e644242feebd83eb47dee11d5f6a7cc0719a",
"input": {
"erode": 0,
"width": 768,
"height": 768,
"prompt": "[\'standing on a dark marble platform, heavy shadow, in an outdoor patio, plants, flowers, fairy lights, product photography, high definition, ultra realistic, intricate\']",
"platform": "{\'top\': 0.71484375, \'left\': 0.08203125, \'scale\': 0.0013020833333333333, \'image_url\': \'https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/test_platform.png\'}",
"subjects": "[{\'top\': 0.15885416666666666, \'left\': 0.2916666666666667, \'scale\': 0.0013020833333333333, \'image_url\': \'https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/test_subject.png\'}]",
"template": "{\'display_url\': \'https://raw.githubusercontent.com/zust-ai/product-ai-training/main/backgrounds/p1.png\', \'updated_at\': 1685447490212, \'name\': \'Cherry Blossom\', \'created_at\': 1685447490212, \'category\': \'studio\', \'_version\': 1, \'product_category\': [\'fmcg\'], \'id\': \'vPpz1JUh8nN9qWaFfVlP\', \'variants\': [{\'id\': \'6m95Ldic4RgPsFol7cVZ\', \'aspect_ratio\': \'2:3\', \'negative_prompt\': \'float, levitate, fog, haze, low contrast, ugly, blur\', \'poc\': [0.2873901965228871, 0.7939756567570426, 0.7245003918793749, 0.8234708742813466], \'background\': {\'top\': 1.1102230246251565e-16, \'updated_at\': 1685453827069, \'left\': 0, \'src\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2F6m95Ldic4RgPsFol7cVZ%2Fbackground.png?alt=media\', \'asset_type\': \'background\', \'created_at\': 1685453827057, \'scale\': 0.0009765625, \'id\': \'26867\', \'_version\': 2, \'caption_prediction\': \'\', \'image_url\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2F6m95Ldic4RgPsFol7cVZ%2Fbackground.png?alt=media\'}, \'background_strength\': 0.65, \'prompt_strength\': 7.5, \'pipe_type\': \'multi_img2img\', \'background_control_strength\': 0.4, \'use_background_as_platform\': True, \'prompt\': \'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate\', \'_version\': 1, \'platform\': None}, {\'id\': \'8t0vJRFEYzhEWvkFFRzL\', \'aspect_ratio\': \'1:1\', \'negative_prompt\': \'float, levitate, fog, haze, low contrast, ugly, blur\', \'poc\': [0.2743155110235001, 0.784389846119357, 0.7574043422765313, 0.8430193382726614], \'background\': {\'top\': 0, \'updated_at\': 1685447813973, \'left\': 0, \'src\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2F8t0vJRFEYzhEWvkFFRzL%2Fbackground.png?alt=media\', \'asset_type\': \'background\', \'created_at\': 1685447813315, \'scale\': 0.0009765625, \'id\': \'58676\', \'_version\': 2, \'caption_prediction\': \'\', \'image_url\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2F8t0vJRFEYzhEWvkFFRzL%2Fbackground.png?alt=media\'}, \'background_strength\': 0.65, \'prompt_strength\': 7.5, \'pipe_type\': \'multi_img2img\', \'background_control_strength\': 0.4, \'use_background_as_platform\': True, \'prompt\': \'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate\', \'_version\': 1, \'platform\': None}, {\'id\': \'JSaURKLpRkYRfqVKiIMi\', \'aspect_ratio\': \'2:3\', \'negative_prompt\': \'float, levitate, fog, haze, low contrast, ugly, blur\', \'poc\': [0.24940248222300615, 0.8036925402129088, 0.7432336859660815, 0.8595621556888488], \'background\': {\'top\': 1.1102230246251565e-16, \'updated_at\': 1685453886436, \'left\': 0, \'src\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FJSaURKLpRkYRfqVKiIMi%2Fbackground.png?alt=media\', \'asset_type\': \'background\', \'created_at\': 1685453886422, \'scale\': 0.0009765625, \'id\': \'31892\', \'_version\': 2, \'caption_prediction\': \'\', \'image_url\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FJSaURKLpRkYRfqVKiIMi%2Fbackground.png?alt=media\'}, \'background_strength\': 0.65, \'prompt_strength\': 7.5, \'pipe_type\': \'multi_img2img\', \'background_control_strength\': 0.4, \'use_background_as_platform\': True, \'prompt\': \'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate\', \'_version\': 1, \'platform\': None}, {\'id\': \'JaGDkYy9eNU9xFYmDS7C\', \'aspect_ratio\': \'3:2\', \'negative_prompt\': \'float, levitate, fog, haze, low contrast, ugly, blur\', \'poc\': [0.2572767857142857, 0.8682716481198474, 0.7415625, 0.9492691405325123], \'background\': {\'top\': 5.551115123125783e-17, \'updated_at\': 1685454070939, \'left\': 0, \'src\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FJaGDkYy9eNU9xFYmDS7C%2Fbackground.png?alt=media\', \'asset_type\': \'background\', \'created_at\': 1685454070928, \'scale\': 0.0006510416666666666, \'id\': \'38093\', \'_version\': 2, \'caption_prediction\': \'\', \'image_url\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FJaGDkYy9eNU9xFYmDS7C%2Fbackground.png?alt=media\'}, \'background_strength\': 0.65, \'prompt_strength\': 7.5, \'pipe_type\': \'multi_img2img\', \'background_control_strength\': 0.4, \'use_background_as_platform\': True, \'prompt\': \'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate\', \'_version\': 1, \'platform\': None}, {\'id\': \'OJ7y71qDUh1zjQFbfOoF\', \'aspect_ratio\': \'1:1\', \'negative_prompt\': \'float, levitate, fog, haze, low contrast, ugly, blur\', \'poc\': [0.2700297967377858, 0.7872469889764998, 0.7531186279908171, 0.8458764811298043], \'background\': {\'top\': 0, \'updated_at\': 1685447788313, \'left\': 0, \'src\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FOJ7y71qDUh1zjQFbfOoF%2Fbackground.png?alt=media\', \'asset_type\': \'background\', \'created_at\': 1685447787434, \'scale\': 0.0009765625, \'id\': \'47054\', \'_version\': 2, \'caption_prediction\': \'\', \'image_url\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FOJ7y71qDUh1zjQFbfOoF%2Fbackground.png?alt=media\'}, \'background_strength\': 0.65, \'prompt_strength\': 7.5, \'pipe_type\': \'multi_img2img\', \'background_control_strength\': 0.4, \'use_background_as_platform\': True, \'prompt\': \'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate\', \'_version\': 1, \'platform\': None}, {\'id\': \'OgGdf0BR5BgMcb9weqQE\', \'aspect_ratio\': \'2:3\', \'negative_prompt\': \'float, levitate, fog, haze, low contrast, ugly, blur\', \'poc\': [0.2743802076719484, 0.8259025595406021, 0.7682114114150238, 0.8595621556888488], \'background\': {\'top\': 1.1102230246251565e-16, \'updated_at\': 1685453925253, \'left\': 0, \'src\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FOgGdf0BR5BgMcb9weqQE%2Fbackground.png?alt=media\', \'asset_type\': \'background\', \'created_at\': 1685453925241, \'scale\': 0.0009765625, \'id\': \'36141\', \'_version\': 2, \'caption_prediction\': \'\', \'image_url\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FOgGdf0BR5BgMcb9weqQE%2Fbackground.png?alt=media\'}, \'background_strength\': 0.65, \'prompt_strength\': 7.5, \'pipe_type\': \'multi_img2img\', \'background_control_strength\': 0.4, \'use_background_as_platform\': True, \'prompt\': \'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate\', \'_version\': 1, \'platform\': None}, {\'id\': \'UO9fxHwNQyCi9IXxdJNO\', \'aspect_ratio\': \'3:2\', \'negative_prompt\': \'float, levitate, fog, haze, low contrast, ugly, blur\', \'poc\': [0.37448581693432254, 0.8875505822337976, 0.6672767857142857, 0.919279687466368], \'background\': {\'top\': 5.551115123125783e-17, \'updated_at\': 1685454102887, \'left\': 0, \'src\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FUO9fxHwNQyCi9IXxdJNO%2Fbackground.png?alt=media\', \'asset_type\': \'background\', \'created_at\': 1685454102874, \'scale\': 0.0006510416666666666, \'id\': \'48782\', \'_version\': 2, \'caption_prediction\': \'\', \'image_url\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FUO9fxHwNQyCi9IXxdJNO%2Fbackground.png?alt=media\'}, \'background_strength\': 0.65, \'prompt_strength\': 7.5, \'pipe_type\': \'multi_img2img\', \'background_control_strength\': 0.4, \'use_background_as_platform\': True, \'prompt\': \'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate\', \'_version\': 1, \'platform\': None}, {\'id\': \'WzAGcwGXxBCdAF7cBTNq\', \'aspect_ratio\': \'2:3\', \'negative_prompt\': \'float, levitate, fog, haze, low contrast, ugly, blur\', \'poc\': [0.2681357763097128, 0.8134094236687742, 0.7619669800527882, 0.8553977770649062], \'background\': {\'top\': 1.1102230246251565e-16, \'updated_at\': 1685453947787, \'left\': 0, \'src\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FWzAGcwGXxBCdAF7cBTNq%2Fbackground.png?alt=media\', \'asset_type\': \'background\', \'created_at\': 1685453947778, \'scale\': 0.0009765625, \'id\': \'70990\', \'_version\': 2, \'caption_prediction\': \'\', \'image_url\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FWzAGcwGXxBCdAF7cBTNq%2Fbackground.png?alt=media\'}, \'background_strength\': 0.65, \'prompt_strength\': 7.5, \'pipe_type\': \'multi_img2img\', \'background_control_strength\': 0.4, \'use_background_as_platform\': True, \'prompt\': \'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate\', \'_version\': 1, \'platform\': None}, {\'id\': \'bSP4wHknXCICeEmXvLw0\', \'aspect_ratio\': \'1:1\', \'negative_prompt\': \'float, levitate, fog, haze, low contrast, ugly, blur\', \'poc\': [0.29111727873324905, 0.7987645438253943, 0.6910760157273919, 0.8473050525583758], \'background\': {\'top\': 0, \'updated_at\': 1685447016271, \'left\': 0, \'src\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FbSP4wHknXCICeEmXvLw0%2Fbackground.png?alt=media\', \'asset_type\': \'background\', \'created_at\': 1685447016254, \'scale\': 0.0009765625, \'id\': \'11089\', \'_version\': 2, \'caption_prediction\': \'\', \'image_url\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FbSP4wHknXCICeEmXvLw0%2Fbackground.png?alt=media\'}, \'background_strength\': 0.65, \'prompt_strength\': 7.5, \'pipe_type\': \'multi_img2img\', \'background_control_strength\': 0.4, \'use_background_as_platform\': True, \'prompt\': \'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate\', \'_version\': 1, \'platform\': None}, {\'id\': \'fC2m6MliBeSriPDDJKnI\', \'aspect_ratio\': \'3:2\', \'negative_prompt\': \'float, levitate, fog, haze, low contrast, ugly, blur\', \'poc\': [0.38311450799809155, 0.8597032329580921, 0.6885714285714286, 0.8957165457715404], \'background\': {\'top\': 5.551115123125783e-17, \'updated_at\': 1685454039386, \'left\': 0, \'src\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FfC2m6MliBeSriPDDJKnI%2Fbackground.png?alt=media\', \'asset_type\': \'background\', \'created_at\': 1685454039373, \'scale\': 0.0006510416666666666, \'id\': \'15750\', \'_version\': 2, \'caption_prediction\': \'\', \'image_url\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FfC2m6MliBeSriPDDJKnI%2Fbackground.png?alt=media\'}, \'background_strength\': 0.65, \'prompt_strength\': 7.5, \'pipe_type\': \'multi_img2img\', \'background_control_strength\': 0.4, \'use_background_as_platform\': True, \'prompt\': \'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate\', \'_version\': 1, \'platform\': None}, {\'id\': \'h8spbQK3BXV4qde8uB67\', \'aspect_ratio\': \'3:2\', \'negative_prompt\': \'float, levitate, fog, haze, low contrast, ugly, blur\', \'poc\': [0.37448581693432254, 0.8832663746529197, 0.6672767857142857, 0.9235638950472459], \'background\': {\'top\': 5.551115123125783e-17, \'updated_at\': 1685454138518, \'left\': 0, \'src\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2Fh8spbQK3BXV4qde8uB67%2Fbackground.png?alt=media\', \'asset_type\': \'background\', \'created_at\': 1685454138504, \'scale\': 0.0006510416666666666, \'id\': \'62969\', \'_version\': 2, \'caption_prediction\': \'\', \'image_url\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2Fh8spbQK3BXV4qde8uB67%2Fbackground.png?alt=media\'}, \'background_strength\': 0.65, \'prompt_strength\': 7.5, \'pipe_type\': \'multi_img2img\', \'background_control_strength\': 0.4, \'use_background_as_platform\': True, \'prompt\': \'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate\', \'_version\': 1, \'platform\': None}, {\'id\': \'ii1D10E50Dv0U7911itn\', \'aspect_ratio\': \'1:1\', \'negative_prompt\': \'float, levitate, fog, haze, low contrast, ugly, blur\', \'poc\': [0.38860122530921426, 0.6185714285714285, 0.6321648860910154, 0.63159076684409], \'background\': {\'top\': 0, \'updated_at\': 1685447838052, \'left\': 0, \'src\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2Fii1D10E50Dv0U7911itn%2Fbackground.png?alt=media\', \'asset_type\': \'background\', \'created_at\': 1685447837365, \'scale\': 0.0009765625, \'id\': \'77124\', \'_version\': 2, \'caption_prediction\': \'\', \'image_url\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2Fii1D10E50Dv0U7911itn%2Fbackground.png?alt=media\'}, \'background_strength\': 0.65, \'prompt_strength\': 7.5, \'pipe_type\': \'multi_img2img\', \'background_control_strength\': 0.4, \'use_background_as_platform\': True, \'prompt\': \'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate\', \'_version\': 1, \'platform\': None}, {\'id\': \'ooGqu9RoLyPSggJNsGL3\', \'aspect_ratio\': \'1:1\', \'negative_prompt\': \'float, levitate, fog, haze, low contrast, ugly, blur\', \'poc\': [0.2169643371536056, 0.7617410199892515, 0.7925045871559633, 0.8315907668440901], \'background\': {\'top\': 0, \'updated_at\': 1685447625625, \'left\': 0, \'src\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FooGqu9RoLyPSggJNsGL3%2Fbackground.png?alt=media\', \'asset_type\': \'background\', \'created_at\': 1685447624625, \'scale\': 0.0009765625, \'id\': \'17799\', \'_version\': 2, \'caption_prediction\': \'\', \'image_url\': \'https://firebasestorage.googleapis.com/v0/b/zust-ai.appspot.com/o/templates%2FvPpz1JUh8nN9qWaFfVlP%2FooGqu9RoLyPSggJNsGL3%2Fbackground.png?alt=media\'}, \'background_strength\': 0.65, \'prompt_strength\': 7.5, \'pipe_type\': \'multi_img2img\', \'background_control_strength\': 0.4, \'use_background_as_platform\': True, \'prompt\': \'on a circular marble platform, pink texture wall in the background, cherry blossom decoration, heavy shadow, product photography, high definition, ultra realistic, intricate\', \'_version\': 1, \'platform\': None}]}",
"pipe_type": "txt2img",
"background": "{\'top\': 0, \'left\': 0, \'scale\': 0.0013020833333333333, \'image_url\': \'https://raw.githubusercontent.com/zust-ai/product-ai-training/main/test/test_background.png\'}",
"with_detail": false,
"is_heartbeat": false,
"use_template": false,
"with_cleanup": false,
"dilate_strength": 4,
"negative_prompt": "[\'float, leavitate, fog, haze, low contrast, ugly, blur, floating, levitated, text, signature, watermark\']",
"prompt_strength": 7.5,
"background_strength": 0.8,
"num_inference_steps": 30,
"num_images_per_prompt": 1,
"subject_control_strength": 0.8,
"platform_control_strength": 0.2
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
No output yet! Press "Submit" to start a prediction.