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); });
Response
application/json
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.

Response
application/json
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" }

Attributes


Blog_title_and_descriptionstr*

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.

Blog Featured Image Generator Using AI

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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

Models Used in this Pixelflow

Popular Pixelflows

Mannequin to AI Model
Mannequin to AI Model
inpainting
photography
e-commerce