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/66fe8fb71a960e9b0091661e-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_h0hlp": "image in URL Format",
"image_w1d50j": "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 help users create a unique lettermark logo for any brand using advanced generative AI tools. It leverages ChatGPT for prompt generation based on provided example prompts, and Flux 1.1 Pro, Ideogram, and Recraft v3 models to produce high-quality text-to-image logo outputs. By using these powerful models, users can generate a logo with custom styles and even experiment with different artistic variations.
Prompt Creation:
Image Generation:
Customization and Fine-Tuning:
This workflow is highly customizable, enabling users to create logos tailored to their brand's identity. By combining ChatGPT's prompt creation with various text-to-image models, users can easily experiment with styles, colors, and visual elements, resulting in a high-quality, unique lettermark logo.
Updated on 5 Nov 2024