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/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.
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 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
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.
Flux Pro is a state-of-the-art image generation with top of the line prompt following, visual quality, image detail and output diversity.
GPT-4 outperforms both previous large language models and as of 2023, most state-of-the-art systems (which often have benchmark-specific training or hand-engineering). On the MMLU benchmark, an English-language suite of multiple-choice questions covering 57 subjects, GPT-4 not only outperforms existing models by a considerable margin in English, but also demonstrates strong performance in other languages. Currently points to gpt-4-turbo-2024-04-09.