If you're looking for an API, here is a sample code in NodeJS to help you out.
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/672a4ec8fb16e356ec8bc825-v1";
const data = {
str_7v9xi: "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
{
"image_cj8bz": "image in URL Format",
"image_e1o0d": "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.
Unlock the full potential of generative AI with Segmind. Create stunning visuals and innovative designs with total creative control. Take advantage of powerful development tools to automate processes and models, elevating your creative workflow.
Run generative AI models with minimal latencies and setup costs, optimizing resource use and speed.
Run generative AI models with minimal latencies and setup costs, optimizing resource use and speed.
Run generative AI models with minimal latencies and setup costs, optimizing resource use and speed.
Run generative AI models with minimal latencies and setup costs, optimizing resource use and speed.
This workflow is crafted to help organizations and brands create festive Christmas greeting cards or posters that showcase their name and holiday spirit. By leveraging ChatGPT for prompt generation and a combination of Flux 1.1 Pro, Ideogram, and Recraft v3 models, users can produce a unique, visually appealing holiday design that reflects both professionalism and seasonal warmth. This setup allows easy customization, enabling users to experiment with different artistic styles, themes, and colors.
Prompt Generation:
Image Generation:
Customization and Style Tuning:
This workflow offers a flexible and streamlined solution for creating custom Christmas greeting cards or posters. With ChatGPT-driven prompts and multiple text-to-image models, users can create personalized holiday designs that are visually compelling, warm, and memorable.
Last updated 5 Nov 2024
Recraft V3, the latest iteration of Recraft AI, offers a significant advancement in AI-driven image generation. This state-of-the-art model is designed to produce high-quality, detailed vector graphics, catering to the needs of designers, artists, and content creators alike.
Flux 1.1 Pro is a cutting-edge image generation tool offering exceptional speed, quality, and customization. Ideal for digital artists, designers, and content creators.
Ideogram Text to Image: Turn your ideas into stunning visuals instantly with this powerful AI tool. Create captivating designs, realistic images, and more. Perfect for artists, designers, and anyone seeking creative inspiration.
GPT-4o (“o” for “omni”) is our most advanced model. It is multimodal (accepting text or image inputs and outputting text), and it has the same high intelligence as GPT-4 Turbo but is much more efficient—it generates text 2x faster and is 50% cheaper. Additionally, GPT-4o has the best vision and performance across non-English languages of any of our models. GPT-4o is available in the OpenAI API to paying customers.