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/66fe95191a960e9b00916620-v2";
const data = {
str_bvcxq: "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
4
5
{
"image_loluk": "image in URL Format",
"image_ieuvc": "image in URL Format",
"image_b9x38": "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 is designed to create emblem logos for organizations, using generative AI to develop unique and visually impactful designs. It combines ChatGPT for prompt generation with advanced text-to-image models, including Flux 1.1 Pro, Ideogram, and Recraft v3, to produce a high-quality emblem logo tailored to the organization’s name and vision. This setup allows for dynamic logo creation, with options to experiment and customize designs based on specific branding needs.
Prompt Generation:
Image Generation:
Customization and Flexibility:
This workflow offers a streamlined yet flexible approach for designing emblem logos, enabling organizations to create logos that capture their core values and purpose. By utilizing ChatGPT alongside various text-to-image models, users can easily explore styles, modify prompts, and achieve visually appealing, unique emblem logos.