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/66b518aa31bd2081a8de2a98-v4";
const data = {
Blog_title_and_description: "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
6
7
8
{
"key_q5n7z": "image in URL Format",
"key_x973z": "image in URL Format",
"key_0abd0g": "image in URL Format",
"key_uyi3o": "image in URL Format",
"key_xm8dr": "image in URL Format",
"key_kkx0a": "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 AI-powered workflow is designed to automate the creation of eye-catching featured images for blog posts. By leveraging advanced generative models, it ensures that each featured image aligns perfectly with the blog’s content and aesthetic. Here’s how it works, model by model:
GPT-4O for Prompt Creation: The workflow begins by taking in the blog's title and description. GPT-4O then crafts two prompts—one for a realistic style and one for an illustration style—setting the creative direction and ensuring relevance to the blog's theme.
Flux 1.1 Pro: Known for producing detailed and realistic images, Flux 1.1 Pro is ideal for generating high-quality, lifelike visuals. This model is perfect for blogs that need a sophisticated, photo-realistic featured image.
Ideogram: Ideogram is excellent at incorporating text and visuals, making it ideal for more stylized images. It provides a blend of vibrant illustrations with clear text integration, suitable for blogs that aim to grab readers' attention with a modern, colorful aesthetic.
Recraft v3: Recraft v3 specializes in creating vivid, illustrated images with a playful touch. It’s the ideal choice for a more artistic approach, delivering unique illustrations that stand out on any blog.
This workflow makes it easy to generate a variety of blog featured images, whether you need realism or a creative illustration, enhancing your blog’s visual appeal and engagement.
Updated on 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.
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.