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.
underthestar2021 /hello_flat_anime:987583c1
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run underthestar2021/hello_flat_anime using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"underthestar2021/hello_flat_anime:987583c11ae36464567dd2171e73bebe1ede090366f1dfb286cb3bf7732836cb",
{
input: {
prompt: "a photo of an astronaut riding a horse on mars",
ai_random: "ai_random",
clip_skip: 2,
pipe_type: "txt2img",
scheduler: "DPM++ SDE Karras",
lora_model: "empty",
num_outputs: 1,
resize_mode: "fill",
target_width: 512,
target_height: 720,
callback_steps: 4,
guidance_scale: 7.5,
controlnet_type: "canny",
prompt_strength: 0.7,
show_system_info: false,
swap_face_enable: true,
controlnet_enable: true,
face_editor_enable: false,
canny_low_threshold: 100,
codeformer_fidelity: 0.7,
num_inference_steps: 26,
restore_face_enable: true,
canny_high_threshold: 200,
control_guidance_end: 1,
firebase_api_version: 4,
restore_face_upscale: 1,
cross_attention_scale: 0.8,
face_editor_mask_blur: 12,
face_editor_mask_size: 6,
face_editor_strength1: 0.4,
face_editor_strength2: 0.05,
restore_face_upsample: true,
control_guidance_start: 0,
face_editor_confidence: 0.97,
controlnet_conditioning_scale: 1,
restore_face_background_enhance: true
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run underthestar2021/hello_flat_anime using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"underthestar2021/hello_flat_anime:987583c11ae36464567dd2171e73bebe1ede090366f1dfb286cb3bf7732836cb",
input={
"prompt": "a photo of an astronaut riding a horse on mars",
"ai_random": "ai_random",
"clip_skip": 2,
"pipe_type": "txt2img",
"scheduler": "DPM++ SDE Karras",
"lora_model": "empty",
"num_outputs": 1,
"resize_mode": "fill",
"target_width": 512,
"target_height": 720,
"callback_steps": 4,
"guidance_scale": 7.5,
"controlnet_type": "canny",
"prompt_strength": 0.7,
"show_system_info": False,
"swap_face_enable": True,
"controlnet_enable": True,
"face_editor_enable": False,
"canny_low_threshold": 100,
"codeformer_fidelity": 0.7,
"num_inference_steps": 26,
"restore_face_enable": True,
"canny_high_threshold": 200,
"control_guidance_end": 1,
"firebase_api_version": 4,
"restore_face_upscale": 1,
"cross_attention_scale": 0.8,
"face_editor_mask_blur": 12,
"face_editor_mask_size": 6,
"face_editor_strength1": 0.4,
"face_editor_strength2": 0.05,
"restore_face_upsample": True,
"control_guidance_start": 0,
"face_editor_confidence": 0.97,
"controlnet_conditioning_scale": 1,
"restore_face_background_enhance": True
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run underthestar2021/hello_flat_anime 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": "987583c11ae36464567dd2171e73bebe1ede090366f1dfb286cb3bf7732836cb",
"input": {
"prompt": "a photo of an astronaut riding a horse on mars",
"ai_random": "ai_random",
"clip_skip": 2,
"pipe_type": "txt2img",
"scheduler": "DPM++ SDE Karras",
"lora_model": "empty",
"num_outputs": 1,
"resize_mode": "fill",
"target_width": 512,
"target_height": 720,
"callback_steps": 4,
"guidance_scale": 7.5,
"controlnet_type": "canny",
"prompt_strength": 0.7,
"show_system_info": false,
"swap_face_enable": true,
"controlnet_enable": true,
"face_editor_enable": false,
"canny_low_threshold": 100,
"codeformer_fidelity": 0.7,
"num_inference_steps": 26,
"restore_face_enable": true,
"canny_high_threshold": 200,
"control_guidance_end": 1,
"firebase_api_version": 4,
"restore_face_upscale": 1,
"cross_attention_scale": 0.8,
"face_editor_mask_blur": 12,
"face_editor_mask_size": 6,
"face_editor_strength1": 0.4,
"face_editor_strength2": 0.05,
"restore_face_upsample": true,
"control_guidance_start": 0,
"face_editor_confidence": 0.97,
"controlnet_conditioning_scale": 1,
"restore_face_background_enhance": true
}
}' \
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.