1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const axios = require('axios');
const api_key = "YOUR API KEY";
const url = "https://api.segmind.com/workflows/66d1c6bf7d2d7d898909ffec-v2";
const data = {
text_prompt: "the user input string"
};
axios.post(url, data, {
headers: {
'x-api-key': api_key,
'Content-Type': 'application/json'
}
}).then((response) => {
console.log(response.data);
});
1
2
3
4
5
{
"poll_url": "<base_url>/requests/<some_request_id>",
"request_id": "some_request_id",
"status": "QUEUED"
}
You can poll the above link to get the status and output of your request.
1
2
3
{
"output_image": "image in URL Format"
}
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
This workflow makes use of the Flux models to generate any style of stickers you want by just describing it in words through prompts.
AI-powered tools are now capable of creating unique and eye-catching stickers, once a domain exclusively reserved for skilled artists. This article delves into the fascinating process of using AI to generate stickers.
You just need to input a prompt to the Flux model node which turns the provided text description to a desired sticker.
These are some prompt examples you can try, you can change the description to any other animal, pet or object:
"A fluffy white puppy with big, round eyes and floppy ears, wearing a red bandana. Kawaii Sticker style, flat colors, turnaround page, white background."
"A playful golden retriever puppy rolling in a field of daisies. Kawaii sticker style, flat colors, turnaround page, white background."
"A tiny dachshund puppy wearing a pink tutu and a crown. Kawaii sticker style, flat colors, turnaround page, white background."
"A sleepy bulldog puppy snoring in a cozy bed. Kawaii sticker style, flat colors, turnaround page, white background."
"A happy beagle puppy chasing butterflies in a meadow. Kawaii sticker style, flat colors, turnaround page, white background."
You can explore other styles of stickers in the prompt like graffiti style, vinyl style etc
Input the prompt: choose any style of sticker you want take example prompt as reference
Run: Click the "Run" button to create a sticker.
The intersection of AI and sticker design has opened up exciting new possibilities for creators and enthusiasts alike. With AI-powered tools, anyone can explore their imagination and bring their sticker ideas to life.