Welcome
oosayam/ UnstableInkDream
API Sample: oosayam/UnstableInkDream
You don't have any projects yet. To be able to use our api service effectively, please sign in/up and create a project.
Get your api keyPrepare Authentication Signature
//Sign up Wiro dashboard and create project
export YOUR_API_KEY="{{useSelectedProjectAPIKey}}";
export YOUR_API_SECRET="XXXXXXXXX";
//unix time or any random integer value
export NONCE=$(date +%s);
//hmac-SHA256 (YOUR_API_SECRET+Nonce) with YOUR_API_KEY
export SIGNATURE="$(echo -n "${YOUR_API_SECRET}${NONCE}" | openssl dgst -sha256 -hmac "${YOUR_API_KEY}")";
Create a New Folder - Make HTTP Post Request
Create a New Folder - Response
Upload a File to the Folder - Make HTTP Post Request
Upload a File to the Folder - Response
Run Command - Make HTTP Post Request
curl -X POST "{{apiUrl}}/Run/{{toolSlugOwner}}/{{toolSlugProject}}" \
-H "Content-Type: {{contentType}}" \
-H "x-api-key: ${YOUR_API_KEY}" \
-H "x-nonce: ${NONCE}" \
-H "x-signature: ${SIGNATURE}" \
-d '{{toolParameters}}';
Run Command - Response
//response body
{
"errors": [],
"taskid": "2221",
"socketaccesstoken": "eDcCm5yyUfIvMFspTwww49OUfgXkQt",
"result": true
}
Get Task Detail - Make HTTP Post Request
curl -X POST "{{apiUrl}}/Task/Detail" \
-H "Content-Type: {{contentType}}" \
-H "x-api-key: ${YOUR_API_KEY}" \
-H "x-nonce: ${NONCE}" \
-H "x-signature: ${SIGNATURE}" \
-d '{
"tasktoken": 'eDcCm5yyUfIvMFspTwww49OUfgXkQt',
}';
Get Task Detail - Response
//response body
{
"total": "1",
"errors": [],
"tasklist": [
{
"id": "2221",
"uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd",
"name": "",
"socketaccesstoken": "eDcCm5yyUfIvMFspTwww49OUfgXkQt",
"parameters": {
"inputImage": "https://api.wiro.ai/v1/File/mCmUXgZLG1FNjjjwmbtPFr2LVJA112/inputImage-6060136.png"
},
"debugoutput": "",
"debugerror": "",
"starttime": "1734513809",
"endtime": "1734513813",
"elapsedseconds": "6.0000",
"status": "task_postprocess_end",
"cps": "0.000585000000",
"totalcost": "0.003510000000",
"guestid": null,
"projectid": "699",
"modelid": "598",
"description": "",
"basemodelid": "0",
"runtype": "model",
"modelfolderid": "",
"modelfileid": "",
"callbackurl": "",
"marketplaceid": null,
"createtime": "1734513807",
"canceltime": "0",
"assigntime": "1734513807",
"accepttime": "1734513807",
"preprocessstarttime": "1734513807",
"preprocessendtime": "1734513807",
"postprocessstarttime": "1734513813",
"postprocessendtime": "1734513814",
"pexit": "0",
"categories": "["tool","image-to-image","quick-showcase","compare-landscape"]",
"outputs": [
{
"id": "6bc392c93856dfce3a7d1b4261e15af3",
"name": "0.png",
"contenttype": "image/png",
"parentid": "6c1833f39da71e6175bf292b18779baf",
"uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd",
"size": "202472",
"addedtime": "1734513812",
"modifiedtime": "1734513812",
"accesskey": "dFKlMApaSgMeHKsJyaDeKrefcHahUK",
"foldercount": "0",
"filecount": "0",
"ispublic": 0,
"expiretime": null,
"url": "https://cdn1.wiro.ai/6a6af820-c5050aee-40bd7b83-a2e186c6-7f61f7da-3894e49c-fc0eeb66-9b500fe2/0.png"
}
],
"size": "202472"
}
],
"result": true
}
Get Task Process Information and Results with Socket Connection
<script type="text/javascript">
window.addEventListener('load',function() {
//Get socketAccessToken from task run response
var SocketAccessToken = 'eDcCm5yyUfIvMFspTwww49OUfgXkQt';
WebSocketConnect(SocketAccessToken);
});
//Connect socket with connection id and register task socket token
async function WebSocketConnect(accessTokenFromAPI) {
if ("WebSocket" in window) {
var ws = new WebSocket("wss://socket.wiro.ai/v1");
ws.onopen = function() {
//Register task socket token which has been obtained from task run API response
ws.send('{"type": "task_info", "tasktoken": "' + accessTokenFromAPI + '"}');
};
ws.onmessage = function (evt) {
var msg = evt.data;
try {
var debugHtml = document.getElementById('debug');
debugHtml.innerHTML = debugHtml.innerHTML + "\n" + msg;
var msgJSON = JSON.parse(msg);
console.log('msgJSON: ', msgJSON);
if(msgJSON.type != undefined)
{
console.log('msgJSON.target: ',msgJSON.target);
switch(msgJSON.type) {
case 'task_queue':
console.log('Your task has been waiting in the queue.');
break;
case 'task_accept':
console.log('Your task has been accepted by the worker.');
break;
case 'task_preprocess_start':
console.log('Your task preprocess has been started.');
break;
case 'task_preprocess_end':
console.log('Your task preprocess has been ended.');
break;
case 'task_assign':
console.log('Your task has been assigned GPU and waiting in the queue.');
break;
case 'task_start':
console.log('Your task has been started.');
break;
case 'task_output':
console.log('Your task has been started and printing output log.');
console.log('Log: ', msgJSON.message);
break;
case 'task_error':
console.log('Your task has been started and printing error log.');
console.log('Log: ', msgJSON.message);
break;
case 'task_output_full':
console.log('Your task has been completed and printing full output log.');
break;
case 'task_error_full':
console.log('Your task has been completed and printing full error log.');
break;
case 'task_end':
console.log('Your task has been completed.');
break;
case 'task_postprocess_start':
console.log('Your task postprocess has been started.');
break;
case 'task_postprocess_end':
console.log('Your task postprocess has been completed.');
console.log('Outputs: ', msgJSON.message);
//output files will add ui
msgJSON.message.forEach(function(currentValue, index, arr){
console.log(currentValue);
var filesHtml = document.getElementById('files');
filesHtml.innerHTML = filesHtml.innerHTML + '<img src="' + currentValue.url + '" style="height:300px;">'
});
break;
}
}
} catch (e) {
console.log('e: ', e);
console.log('msg: ', msg);
}
};
ws.onclose = function() {
alert("Connection is closed...");
};
} else {
alert("WebSocket NOT supported by your Browser!");
}
}
</script>
Prepare UI Elements Inside Body Tag
<div id="files"></div>
<pre id="debug"></pre>
anime-Hyper-VAE
我只是把UnstableinkdreamV9.0-anime 加上 HyperSD和VAE,其他沒變,給自己用的,其實可以不需要下載
然後因為hyper-sd
所以建議CFG 1.5~2
取樣方法 LCM
Schedule type Auto
Steps:8-20再多也沒啥意義
anime-Hyper-VAE
I just add HyperSD and VAE to UnstableinkdreamV9.0-anime , no other changes, for my own use, in fact, you do not need to download!
And because of hyper-sd
So we suggest CFG 1.5~2.
Sampling method LCM
Schedule type Auto
Steps:8-20 more steps is meaningless.
如果你喜歡我的工作可以幫我買杯咖啡,謝謝
If you like what I do, you can buy me a cup of coffee. Thanks.
私の仕事を気に入っていただけたら、コーヒーを一杯おごってください。 ありがとうございます。
9.0
It's just a minor tweak to make it more adaptable to all kinds of LORA.
Photo can be transformed into anime by LORA.
anime is also possible.
A few of the LORA I made can be put to good use.
https://civitai.com/models/271354
Specialised Negative
https://civitai.com/models/417945?modelVersionId=465621
只是小幅的微調,讓他更能夠良好的適應各種LORA
photo其實可以靠LORA轉變畫風成為動漫化
anime一樣也可以
幾個也是我做的LORA可以善用
https://civitai.com/models/271354
專用的Negative
https://civitai.com/models/417945?modelVersionId=465621
8.0
it, but I've updated it with LECO and I'm going to put up the photo version first.
Because it is impossible to combine animation and reality, after 7.5 it will be split into three genres - balance/anime/photoreal
But recently things have changed and with some new LECO training methods some of the concepts can be shaved off.
so you can use some lora to chage the style of base model
such as my lora
8.0-balance
2D,2.5D,3D All can do well
But it is better to be in 2.5D digital art or something like that in the direction of fineness, which can give you more surprises.
Better detailing, and can be combined with various LORA variations.
Just Try it
8.5-photoreal version
This is a very realistic model for photorealism and hyperrealism
V7.5-Anime
This is a very well in manga,anime....etc
https://civitai.com/models/131676/anime-minimalist
https://civitai.com/models/131537/racial-slider
https://civitai.com/models/131491/comic-linearts
https://civitai.com/models/131491/comic-linearts
https://civitai.com/models/127174/photo-paint-slider
https://civitai.com/models/127689/celluloid-photo
https://civitai.com/models/132532/leconegative
7.5
the April version of unstableinkdream
Because it is impossible to combine animation and reality, after 7.5 it will be split into three genres - balance/anime/photoreal
7.5-balance
photo anime , movie,manga, photorealism 2D,2.5D,3D
All can do well
Just Try it
7.5-photoreal version
This is a very realistic model for photorealism and hyperrealism ,and is also a bit naughty
V7.5-Anime
This is a very well in manga,anime....etc
V7.3
Using the MBW plug-in to remerge the model more detaile and style photoreal
V7.0
Not uploaded for a long time
Using the auto-MBW plug-in to remerge the model
Compared to V6 this is a more realistic model, but if the prompts are used properly it can also be used to produce anime.
To be honest, the pure models have not improved much since mid-January, most of the models are already adequate, controlling the network and LORA is more important.
The example is a quick draw of 45 cards using wildcrd and dynamicprompts, selected at random.
Why is it a lot of fantasy WAIFU style? I like it ...... But the other styles actually look ok too
I'll leave it to you to try it out
V6
Reconstruction the model to make the prompts itself can be used to create a variety of styles including realistic photos, realistic drawings, and animations like last three fig
model tag like : nvinkpunk,kuvshinov,dreamlikeart,samdoesart and modelshoot style analog style
will effective
and normal tag like : unreal engin 5,octane render, limited palette flat color,Hyperrealism,Photorealism photorealistic also worked well
some negative prompt was come from civitai and huggingface google can find it
V5photoreal- updated
To be honest, I'm sorry, this should come out together with yesterday's V5, one is more towards animation and the other more towards reality
But has not been adjusted very satisfactory, the effect is actually a bit close to V4
If you want to be more photo-realistic, please add (photorealistic) at the begin , and real person's name will effect
If you want to favor animation, please add (nvinkpunk,kuvshinov,dreamlikeart,samdoesart,modelshoot style,) at the end.........not only anime style but girls jump out lol
V5 updated
Enhances cartoonish and stylized intensity with better mastery of the face
model tag like : nvinkpunk,kuvshinov,dreamlikeart,samdoesart and modelshoot style will effective
and normal tag like : unreal engin 5,octane render, limited palette flat color,Hyperrealism,Photorealism also worked well
need nsfw in nagtive prompts
V4 updated
Dont ask me where are v2 or v3,mix a lot of model ,v4 is the best one
mix by V1,RPG,Protogen,dreamlikesamkuvshinov,inkpunk.......
model tag like : nvinkpunk,kuvshinov,dreamlikeart,samdoesart and modelshoot style will effective
and normal tag like : unreal engin 5,octane render, limited palette flat color,Hyperrealism,Photorealism also worked well
UnstableSamInkDream Diffusion
Combined from the following models
A:Unstable PhotoReal v0.5
B:inkpunk
https://huggingface.co/Envvi/Inkpunk-Diffusion
C:dreamlikesamkuvshinov
https://civitai.com/models/1473/dreamlikesamkuvshinov
A0.5+B0.5=D D0.6+C0.4=UnstableSamInkDream
Trigger Words:
nvinkpunk,dreamlikeart,samdoesart,kuvshinov,
Tools
View All
