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.
Output image size
Default: "256x256"
decoder type
Default: "sd-vae-ft-mse"
Number of denoising steps
Default: 250
Default: 4
Which ImageNet class to generate
Default: "centipede"
How many outputs
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
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 arielreplicate/scalable_diffusion_with_transformers using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "arielreplicate/scalable_diffusion_with_transformers:089c3506e8fb6cdc7f7b0165cac893f1ae03e044fbff88ef7164d9f0b0dead85", { input: { cfg_scale: 4, class_name: "centipede", VAE_Decoder: "sd-vae-ft-mse", num_outputs: 4, DiT_resolution: "256x256", num_sampling_steps: 250 } } ); // 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
import replicate
output = replicate.run( "arielreplicate/scalable_diffusion_with_transformers:089c3506e8fb6cdc7f7b0165cac893f1ae03e044fbff88ef7164d9f0b0dead85", input={ "cfg_scale": 4, "class_name": "centipede", "VAE_Decoder": "sd-vae-ft-mse", "num_outputs": 4, "DiT_resolution": "256x256", "num_sampling_steps": 250 } ) # 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.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "arielreplicate/scalable_diffusion_with_transformers:089c3506e8fb6cdc7f7b0165cac893f1ae03e044fbff88ef7164d9f0b0dead85", "input": { "cfg_scale": 4, "class_name": "centipede", "VAE_Decoder": "sd-vae-ft-mse", "num_outputs": 4, "DiT_resolution": "256x256", "num_sampling_steps": 250 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
No output yet! Press "Submit" to start a prediction.