Welcome
Ciro_Negrogni/ Street Art v1.0
API Sample: Ciro_Negrogni/Street Art v1.0
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>
Example prompts:
Graffiti masterpiece:0.6 adorning a city alley, depicting a larger-than-life phoenix:0.4, its fiery feathers:0.4 ablaze with vibrant reds and oranges, embodying resilience and rebirth:0.2.
A vibrant street mural:0.7, celebrating cultural diversity:0.5, featuring a dynamic salsa dancer:0.4 in mid-twirl, exuding passion and rhythm:0.3, executed with vivid, expressive strokes:0.2.
An urban canvas:0.7 showcasing a thought-provoking social commentary:0.5, with a faceless figure:0.4 in grayscale, trapped behind a web of barbed wire:0.3, the stark realism:0.2 evoking a sense of societal confinement.
Graffiti artistry:0.6 portraying an enigmatic astronaut:0.4 floating among cosmic swirls:0.4, rendered in a surreal, dreamlike style:0.3, capturing the allure of the unknown:0.2.
A colossal street mural:0.7 featuring a vividly colored chameleon:0.5, blending seamlessly into a riot of urban patterns and textures:0.4, reflecting the concept of adaptation:0.3 with a touch of whimsy:0.2.
A graffiti masterpiece:0.6 depicting a multicultural tapestry:0.4, with faces of diverse ethnicities:0.4 emerging from a vibrant melting pot of colors:0.3, symbolizing unity amidst diversity:0.2.
Street art that pays homage to nature:0.6, with a majestic, photorealistic wolf:0.4, its piercing eyes:0.4 gazing into the urban jungle, a symbol of untamed spirit:0.3 amidst concrete confines:0.2.
A captivating mural:0.7 featuring a mythical kraken:0.5, its tentacles:0.4 intertwining with architectural elements, blurring the line between fantasy and reality:0.3, all executed with intricate precision:0.2.
Graffiti with a feminist message:0.6, portraying a defiant female figure:0.4, surrounded by a halo of empowered women of all backgrounds:0.3, rendered with bold, empowering strokes:0.2.
A mural celebrating music:0.6, with a soulful saxophonist:0.4 blowing vibrant musical notes:0.4 into the air, capturing the essence of jazz:0.3 with fluid and expressive lines:0.2.
Street art that delves into surrealism:0.6, featuring an otherworldly landscape:0.4 where skyscrapers morph into trees:0.4, and rivers cascade from faucets:0.3, all portrayed in a dreamy, Salvador Dali-esque style:0.2.
Graffiti that explores the theme of time:0.6, with a melting clock:0.4 suspended in mid-air, adorned with intricate gears and mechanisms:0.4, symbolizing the fluidity of existence:0.3 and the inevitability of change:0.2.
An urban masterpiece:0.7, portraying a surrealistic elephant:0.5 with butterfly wings:0.4, evoking the juxtaposition of strength and fragility:0.3, rendered with meticulous attention to detail:0.2.
Street art infused with mysticism:0.6, depicting an ancient sage:0.4 adorned in ornate robes, his third eye aglow:0.4 with divine insight, captured in a rich, mystical color palette:0.3.
A mural celebrating street culture:0.6, featuring a graffiti artist:0.4 in action, surrounded by an explosion of vibrant colors:0.4, capturing the raw energy and creativity of the urban art scene:0.3.
Graffiti with a political edge:0.6, showcasing a bold protest slogan:0.4 superimposed on a backdrop of riotous brushstrokes:0.4, conveying the urgency of the message:0.3 with a rebellious aesthetic:0.2.
A mesmerizing mural:0.7, depicting a cosmic dreamer:0.5, their body adorned with swirling galaxies:0.4, blending the boundaries between the self and the universe:0.3, executed with cosmic precision:0.2.
Street art that explores the concept of identity:0.6, with a faceless figure:0.4 morphing into a kaleidoscope of cultural symbols:0.4, challenging viewers to reflect on their own sense of self:0.3.
Graffiti that pays homage to the classics:0.6, featuring a reinterpretation of Michelangelo's "Creation of Adam":0.4, with a graffiti artist's hand reaching out to touch the divine:0.3, executed in a contemporary street art style:0.2.
An urban canvas:0.7 adorned with a whimsical menagerie:0.5 of anthropomorphic animals:0.4 engaged in everyday activities, inviting viewers into a playful and imaginative world:0.3, painted with vibrant, childlike strokes:0.2.
A graffiti masterpiece:0.6, depicting a fierce phoenix:0.4 emerging from a tangle of thorny vines:0.4, symbolizing resilience and renewal:0.3, rendered with bold and fiery brushwork:0.2.
Street art that explores the theme of dreams:0.6, with surrealistic landscapes:0.4 where clocks melt into puddles:0.4, and fish swim through the sky:0.3, all portrayed in a fantastical, Salvador Dali-inspired style:0.2.
A captivating mural:0.7 celebrating diversity:0.5, with a kaleidoscope of faces:0.4 from different cultures and backgrounds, coming together in a harmonious tapestry:0.3, painted with vibrant, celebratory colors:0.2.
Graffiti that delves into the world of mythology:0.6, featuring a majestic dragon:0.4, its scales glistening with iridescent colors:0.4, capturing the awe-inspiring grandeur of the mythical creature:0.3.
A mural paying tribute to the power of imagination:0.6, with a whimsical cityscape:0.4 that defies the laws of physics, executed with a playful and childlike innocence:0.3, inviting viewers to dream and explore:0.2.
Street art with a message of environmental awareness:0.6, featuring a delicate butterfly:0.4 with wings composed of intricate flora and fauna:0.4, highlighting the beauty and fragility of nature:0.3.
Graffiti that explores the concept of duality:0.6, with a split-faced figure:0.4, one side dark and one side light:0.4, reflecting the complexities of human nature:0.3, painted with striking contrasts:0.2.
An urban masterpiece:0.7, portraying a cosmic traveler:0.5 journeying through a celestial realm, their body adorned with swirling galaxies:0.4, capturing the sense of wonder and exploration:0.3, executed with cosmic precision:0.2.
Street art that celebrates the power of love:0.6, featuring an embrace between two figures:0.4, their bodies merging into a tangle of vibrant colors:0.4, symbolizing the unifying force of love:0.3, painted with passionate strokes:0.2.
A graffiti masterpiece:0.6, depicting a mythical phoenix:0.4 rising from a sea of flames:0.4, embodying the themes of transformation and rebirth:0.3, rendered with bold and fiery brushwork:0.2.
A vibrant street mural:0.7 celebrating the beauty of dance:0.5, with a graceful ballerina:0.4 frozen in a moment of elegance and motion:0.4, executed with fluid and expressive strokes:0.3.
Street art that explores the concept of timelessness:0.6, with a figure morphing into a clock:0.4, their body adorned with intricate gears and mechanisms:0.4, symbolizing the eternal nature of existence:0.3.
Graffiti that pays tribute to the power of unity:0.6, featuring a diverse group of people:0.4 holding hands in solidarity, against a backdrop of colorful patterns:0.4, conveying the strength of collective action:0.3.
A captivating mural:0.7 depicting a mystical forest:0.5, with trees that transform into ethereal creatures:0.4, inviting viewers to step into a world of enchantment:0.3, painted with intricate and fantastical details:0.2.
Street art infused with a sense of wonder:0.6, portraying a whimsical astronaut:0.4 floating among a sea of stars:0.4, capturing the childlike curiosity and awe of space exploration:0.3, executed with playful and imaginative strokes:0.2.
A mural that celebrates the resilience of nature:0.6, with a majestic eagle:0.4 soaring above a landscape scarred by industry:0.4, symbolizing the enduring spirit of the natural world:0.3, painted with vivid and striking contrasts:0.2.
Graffiti that delves into the theme of freedom:0.6, with a figure breaking free from chains:0.4, their wings unfurling in a burst of color:0.4, symbolizing the indomitable spirit of liberation:0.3, painted with bold and expressive strokes:0.2.
An urban masterpiece:0.7, portraying a cosmic explorer:0.5 venturing into the unknown, their body adorned with swirling galaxies:0.4, capturing the spirit of human curiosity and exploration:0.3, executed with cosmic precision:0.2.
Street art that celebrates the power of community:0.6, with a diverse group of people:0.4 coming together in a joyful embrace, their bodies merging into a tapestry of vibrant colors:0.4, symbolizing the strength of unity:0.3.
A graffiti masterpiece:0.6, depicting a mythic phoenix:0.4 emerging from a turbulent sea:0.4, embodying the themes of resilience and renewal:0.3, rendered with bold and fiery brushwork:0.2.
A satirical street mural:0.7, featuring a comically exaggerated politician:0.5 with a Pinocchio-like nose, caught in a web of lies:0.4, executed with bold, cartoonish strokes:0.3.
Graffiti with a witty twist:0.6, portraying a whimsical scene of animals:0.4 dressed in business attire, attending a board meeting in the forest:0.4, capturing the absurdity of corporate culture:0.3, rendered with playful and humorous details:0.2.
A vibrant and cartoony mural:0.7, depicting a superhero duck:0.5, clad in a cape and mask, ready to save the day:0.4, executed with bold and playful lines:0.3.
Street art with a humorous edge:0.6, featuring a larger-than-life chef:0.4, juggling oversized vegetables in a chaotic kitchen scene:0.4, capturing the hilarity of culinary mishaps:0.3, painted with exaggerated and comedic strokes:0.2.
A satirical take on consumerism:0.6, with a caricatured shopper:0.4 buried under an avalanche of shopping bags:0.4, poking fun at the materialistic culture:0.3, rendered in a cartoonish and exaggerated style:0.2.
Graffiti that lampoons the art world:0.6, with a beret-wearing artist:0.4 creating a masterpiece from a pile of garbage:0.4, satirizing the pretentiousness of contemporary art:0.3, painted with a tongue-in-cheek and comical flair:0.2.
A cartoony and satirical mural:0.7, depicting a superhero squirrel:0.5 battling an army of acorn-wielding villains:0.4, capturing the absurdity of the superhero genre:0.3, executed with exaggerated and playful lines:0.2.
Street art with a political punch:0.6, featuring a caricatured world leader:0.4, juggling international conflicts in a chaotic geopolitical circus:0.4, poking fun at global politics:0.3, painted with a sharp and satirical touch:0.2.
A whimsical and humorous mural:0.7, portraying a mischievous gnome:0.5, causing havoc in a peaceful garden:0.4, capturing the antics of folklore in a cartoonish and lighthearted style:0.3.
Graffiti that satirizes social media addiction:0.6, with a smartphone-headed figure:0.4, drowning in a sea of likes and emojis:0.4, poking fun at our digital obsession:0.3, rendered with a playful and exaggerated touch:0.2.
A satirical take on fast food culture:0.6, with a cartoonish hamburger:0.4, devouring a helpless potato in a hilarious food chain scene:0.4, capturing the absurdity of modern dietary habits:0.3, painted with exaggerated and comedic strokes:0.2.
Street art that humorously comments on climate change:0.6, featuring a polar bear in sunglasses:0.4, floating on an iceberg-turned-surfboard:0.4, poking fun at the dire consequences of environmental neglect:0.3, executed in a cartoonish and irreverent style:0.2.
A cartoony and satirical mural:0.7, depicting a bumbling detective:0.5, chasing a comically oversized magnifying glass:0.4, capturing the whimsy of classic detective stories in an exaggerated and playful manner:0.3.
Graffiti that parodies the fashion industry:0.6, with a fashionista catwalk featuring absurdly extravagant outfits:0.4, poking fun at haute couture:0.4, painted with a humorous and over-the-top flair:0.3.
Street art with a satirical twist on technology addiction:0.6, featuring a robot:0.4 glued to a smartphone, oblivious to the world around it:0.4, poking fun at our digital dependence:0.3, rendered in a cartoonish and cheeky style:0.2.
A satirical commentary on bureaucracy:0.6, with a cartoonish government official:0.4 buried under a mountain of paperwork:0.4, poking fun at red tape and inefficiency:0.3, painted with exaggerated and comical strokes:0.2.
A cartoony and satirical mural:0.7, depicting a larger-than-life cat:0.5 as a city mayor, surrounded by a cast of quirky animal citizens:0.4, capturing the humor and absurdity of political life:0.3, executed with playful and whimsical lines:0.2.
Graffiti that humorously explores the concept of time travel:0.6, with a retro-futuristic robot:0.4 in a time machine made from kitchen appliances:0.4, poking fun at sci-fi clichés:0.3, painted with a tongue-in-cheek and playful touch:0.2.
Street art with a satirical take on the selfie culture:0.6, featuring a figure covered in smartphone screens:0.4, unable to see beyond their own reflection:0.4, poking fun at narcissism:0.3, rendered in a cartoonish and irreverent style:0.2.
A whimsical and humorous mural:0.7, portraying a group of garden gnomes:0.5 engaged in a rock band performance:0.4, capturing the quirky and absurd in a playful and exaggerated style:0.3.
Tools
View All
