This workflow is designed to help organizations and brands create vibrant New Year greeting cards or posters that highlight their brand name and welcome the upcoming year with a festive spirit. By utilizing ChatGPT for prompt generation along with a blend of Flux 1.1 Pro, Ideogram, and Recraft v3 models, users can produce a unique, visually striking New Year design that reflects both professionalism and excitement for the new beginnings. This setup offers flexibility, allowing users to experiment with diverse artistic styles, themes, and celebratory colors.
Prompt Generation:
Image Generation:
Customization and Style Tuning:
This workflow offers a streamlined, flexible solution for creating custom New Year greeting cards or posters. By combining ChatGPT-powered prompts with multiple text-to-image models, users can develop personalized New Year designs that are visually engaging, joyful, and memorable.
Last updated 6 Nov 2024
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/672b3a0f8422a5baceb96168-v1";
const data = {
str_gl3y5f: "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
{
"image_7j90h": "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.