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.
sontungpytn /genshin-ai-image-x:e2065a0c
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 sontungpytn/genshin-ai-image-x using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"sontungpytn/genshin-ai-image-x:e2065a0c6eb872aa60221ebb409805759ab2d874d0bb4e9b361482fe08169336",
{
input: {
width: 512,
height: 1024,
prompt: "1girl, symbol shaped pupils,,portrait,solo, full body,looking at viewer,detailed background,detailed face,trapper,tracker,brown fur lined leather clothing,belt,coat,rugged,trappers hat,scarf,,fantasy frontier cinematic atmosphere,,very detailed faces,smile,long hair,ghost,mid shot,full body,smile",
character: "hutaodef",
scheduler: "K_EULER",
num_outputs: 1,
guidance_scale: 7,
negative_prompt: "paintings, sketches, bad hands, fingers, (worst quality:2), (low quality:2), 2girls, bad artist, text, error",
num_inference_steps: 24
}
}
);
// 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 sontungpytn/genshin-ai-image-x using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"sontungpytn/genshin-ai-image-x:e2065a0c6eb872aa60221ebb409805759ab2d874d0bb4e9b361482fe08169336",
input={
"width": 512,
"height": 1024,
"prompt": "1girl, symbol shaped pupils,,portrait,solo, full body,looking at viewer,detailed background,detailed face,trapper,tracker,brown fur lined leather clothing,belt,coat,rugged,trappers hat,scarf,,fantasy frontier cinematic atmosphere,,very detailed faces,smile,long hair,ghost,mid shot,full body,smile",
"character": "hutaodef",
"scheduler": "K_EULER",
"num_outputs": 1,
"guidance_scale": 7,
"negative_prompt": "paintings, sketches, bad hands, fingers, (worst quality:2), (low quality:2), 2girls, bad artist, text, error",
"num_inference_steps": 24
}
)
print(output)
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 sontungpytn/genshin-ai-image-x 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": "sontungpytn/genshin-ai-image-x:e2065a0c6eb872aa60221ebb409805759ab2d874d0bb4e9b361482fe08169336",
"input": {
"width": 512,
"height": 1024,
"prompt": "1girl, symbol shaped pupils,,portrait,solo, full body,looking at viewer,detailed background,detailed face,trapper,tracker,brown fur lined leather clothing,belt,coat,rugged,trappers hat,scarf,,fantasy frontier cinematic atmosphere,,very detailed faces,smile,long hair,ghost,mid shot,full body,smile",
"character": "hutaodef",
"scheduler": "K_EULER",
"num_outputs": 1,
"guidance_scale": 7,
"negative_prompt": "paintings, sketches, bad hands, fingers, (worst quality:2), (low quality:2), 2girls, bad artist, text, error",
"num_inference_steps": 24
}
}' \
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
{
"completed_at": "2023-11-17T04:13:56.042365Z",
"created_at": "2023-11-17T04:13:45.903765Z",
"data_removed": false,
"error": null,
"id": "plepl3jbz2g5x7mmvhrzvufqii",
"input": {
"width": 512,
"height": 1024,
"prompt": "1girl, symbol shaped pupils,,portrait,solo, full body,looking at viewer,detailed background,detailed face,trapper,tracker,brown fur lined leather clothing,belt,coat,rugged,trappers hat,scarf,,fantasy frontier cinematic atmosphere,,very detailed faces,smile,long hair,ghost,mid shot,full body,smile",
"character": "hutaodef",
"scheduler": "K_EULER",
"num_outputs": 1,
"guidance_scale": 7,
"negative_prompt": "paintings, sketches, bad hands, fingers, (worst quality:2), (low quality:2), 2girls, bad artist, text, error",
"num_inference_steps": 24
},
"logs": "Using seed: 16379458\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['fantasy frontier cinematic atmosphere,, very detailed faces, smile, long hair, ghost, mid shot, full body, smile']\n 0%| | 0/24 [00:00<?, ?it/s]\n 4%|▍ | 1/24 [00:00<00:10, 2.27it/s]\n 8%|▊ | 2/24 [00:00<00:08, 2.60it/s]\n 12%|█▎ | 3/24 [00:01<00:07, 2.72it/s]\n 17%|█▋ | 4/24 [00:01<00:07, 2.76it/s]\n 21%|██ | 5/24 [00:01<00:06, 2.80it/s]\n 25%|██▌ | 6/24 [00:02<00:06, 2.83it/s]\n 29%|██▉ | 7/24 [00:02<00:06, 2.82it/s]\n 33%|███▎ | 8/24 [00:02<00:05, 2.84it/s]\n 38%|███▊ | 9/24 [00:03<00:05, 2.85it/s]\n 42%|████▏ | 10/24 [00:03<00:04, 2.83it/s]\n 46%|████▌ | 11/24 [00:03<00:04, 2.84it/s]\n 50%|█████ | 12/24 [00:04<00:04, 2.84it/s]\n 54%|█████▍ | 13/24 [00:04<00:03, 2.84it/s]\n 58%|█████▊ | 14/24 [00:04<00:03, 2.85it/s]\n 62%|██████▎ | 15/24 [00:05<00:03, 2.85it/s]\n 67%|██████▋ | 16/24 [00:05<00:02, 2.85it/s]\n 71%|███████ | 17/24 [00:06<00:02, 2.85it/s]\n 75%|███████▌ | 18/24 [00:06<00:02, 2.84it/s]\n 79%|███████▉ | 19/24 [00:06<00:01, 2.85it/s]\n 83%|████████▎ | 20/24 [00:07<00:01, 2.84it/s]\n 88%|████████▊ | 21/24 [00:07<00:01, 2.84it/s]\n 92%|█████████▏| 22/24 [00:07<00:00, 2.84it/s]\n 96%|█████████▌| 23/24 [00:08<00:00, 2.83it/s]\n100%|██████████| 24/24 [00:08<00:00, 2.84it/s]\n100%|██████████| 24/24 [00:08<00:00, 2.82it/s]",
"metrics": {
"predict_time": 10.12294,
"total_time": 10.1386
},
"output": [
"https://replicate.delivery/pbxt/017TZ25gSS6UHRFSUEZDPCi6bCsorlSx5baVU0NAlcfB1k8IA/out-0.png"
],
"started_at": "2023-11-17T04:13:45.919425Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/plepl3jbz2g5x7mmvhrzvufqii",
"cancel": "https://api.replicate.com/v1/predictions/plepl3jbz2g5x7mmvhrzvufqii/cancel"
},
"version": "e2065a0c6eb872aa60221ebb409805759ab2d874d0bb4e9b361482fe08169336"
}
Using seed: 16379458
The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['fantasy frontier cinematic atmosphere,, very detailed faces, smile, long hair, ghost, mid shot, full body, smile']
0%| | 0/24 [00:00<?, ?it/s]
4%|▍ | 1/24 [00:00<00:10, 2.27it/s]
8%|▊ | 2/24 [00:00<00:08, 2.60it/s]
12%|█▎ | 3/24 [00:01<00:07, 2.72it/s]
17%|█▋ | 4/24 [00:01<00:07, 2.76it/s]
21%|██ | 5/24 [00:01<00:06, 2.80it/s]
25%|██▌ | 6/24 [00:02<00:06, 2.83it/s]
29%|██▉ | 7/24 [00:02<00:06, 2.82it/s]
33%|███▎ | 8/24 [00:02<00:05, 2.84it/s]
38%|███▊ | 9/24 [00:03<00:05, 2.85it/s]
42%|████▏ | 10/24 [00:03<00:04, 2.83it/s]
46%|████▌ | 11/24 [00:03<00:04, 2.84it/s]
50%|█████ | 12/24 [00:04<00:04, 2.84it/s]
54%|█████▍ | 13/24 [00:04<00:03, 2.84it/s]
58%|█████▊ | 14/24 [00:04<00:03, 2.85it/s]
62%|██████▎ | 15/24 [00:05<00:03, 2.85it/s]
67%|██████▋ | 16/24 [00:05<00:02, 2.85it/s]
71%|███████ | 17/24 [00:06<00:02, 2.85it/s]
75%|███████▌ | 18/24 [00:06<00:02, 2.84it/s]
79%|███████▉ | 19/24 [00:06<00:01, 2.85it/s]
83%|████████▎ | 20/24 [00:07<00:01, 2.84it/s]
88%|████████▊ | 21/24 [00:07<00:01, 2.84it/s]
92%|█████████▏| 22/24 [00:07<00:00, 2.84it/s]
96%|█████████▌| 23/24 [00:08<00:00, 2.83it/s]
100%|██████████| 24/24 [00:08<00:00, 2.84it/s]
100%|██████████| 24/24 [00:08<00:00, 2.82it/s]