Birthday Greeting Card


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/673b3564ecbd295b2912573d-v2"; const data = { your_name: "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 { "image_1": "image in URL Format", "image_2": "image in URL Format", "image_3": "image in URL Format" }

Attributes


your_namestr*

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.

Birthday Greeting Card Creation Workflow

This workflow helps create personalized and festive birthday greeting cards that highlight thoughtful messages and celebratory designs. By leveraging ChatGPT for prompt generation alongside a combination of Flux 1.1 Pro, Ideogram, and Recraft v3 models, users can craft unique, visually appealing birthday cards that capture the essence of joy and celebration. This setup allows easy customization, enabling users to experiment with various artistic styles, themes, and colors for a truly memorable birthday greeting.

Workflow Overview

  1. Prompt Generation:

    • Begin by entering the recipient's name, the organization or brand name (if applicable), and any specific birthday themes or elements (e.g., balloons, cakes, confetti, or candles).
    • ChatGPT generates a detailed prompt for the card, incorporating festive designs and thoughtful messages tailored to the occasion. The prompt can include cheerful greetings, personal touches, or classic birthday symbols such as party hats, gifts, or floral patterns.
  2. Image Generation:

    • Once the prompt is finalized, the workflow employs Flux 1.1 Pro, Ideogram, and Recraft v3 to create the birthday card:
      • Flux 1.1 Pro: This model excels at producing realistic textures and intricate details, perfect for professional and polished birthday card designs.
      • Ideogram: Known for its typography capabilities, Ideogram enhances the greeting text, ensuring the birthday message stands out in style and clarity.
      • Recraft v3: This model adds a playful and creative touch, making the card vibrant, colorful, and unique for the special occasion.
  3. Customization and Style Tuning:

    • Users can personalize the design by modifying the prompt or experimenting with different artistic styles using the available models. This flexibility ensures the card reflects the mood and sentiment of the celebration.
    • Additional adjustments to colors, fonts, and imagery can fine-tune the output, aligning the design with personal or brand preferences.

Benefits and Flexibility

This workflow provides a powerful solution for creating custom birthday greeting cards using the latest Generative AI models. By combining ChatGPT-powered prompt generation with state-of-the-art text-to-image models, users can design heartfelt and visually stunning cards.

Last updated 18 Nov 2024