Create Stunning KuKu Express Images with Kukuuniform Actions

26 Apr 2025
Create Stunning KuKu Express Images with Kukuuniform Actions

In today's visually driven market, effective branding is essential for any business. With Kukuuniform, you can leverage advanced image generation techniques to create unique and eye-catching images that resonate with your audience. This service utilizes Cognitive Actions, allowing developers to generate images that incorporate KuKu Express branding, tailored to specific promotional needs. By harnessing the power of customizable prompts, aspect ratios, and output formats, Kukuuniform simplifies the image creation process, enabling you to produce high-quality visuals quickly and efficiently.

Imagine needing an enticing promotional poster for a new delivery service campaign or vibrant social media graphics that highlight your brand. Kukuuniform makes it easy to generate professional-grade images that capture your brand's essence, ensuring that your marketing materials stand out.

Prerequisites

Before diving into Kukuuniform's capabilities, ensure you have a Cognitive Actions API key and a basic understanding of making API calls. This access will allow you to utilize the image generation features seamlessly.

Generate Kuku Express Themed Image

The Generate Kuku Express Themed Image action allows you to create distinctive images featuring KuKu Express branding by utilizing advanced LoRA techniques. This action is particularly useful for marketers, graphic designers, and developers looking to enhance their visual content with minimal effort.

Purpose

This action enables you to generate images that align with KuKu Express branding, solving the problem of needing high-quality promotional content without requiring extensive graphic design skills.

Input Requirements

To use this action, you need to provide a JSON object with the following properties:

  • prompt (string): A detailed description of the desired image, guiding the AI in generating visuals.
  • mask (string, optional): URI of an image mask for inpainting.
  • image (string, optional): URI of an input image for modification.
  • model (string): Choose between "dev" or "schnell" models based on your performance needs.
  • width (integer): Width of the image in pixels.
  • height (integer): Height of the image in pixels.
  • aspectRatio (string): Defines the aspect ratio of the generated image.
  • imageFormat (string): Specifies the output image format (webp, jpg, png).
  • outputQuantity (integer): The number of images to generate (maximum of 4).
  • numInferenceSteps (integer): Total steps for image generation, influencing detail level.

Expected Output

The output will consist of an array of URLs, each pointing to a generated image that meets your specifications. For example:

[
  "https://example.com/image1.jpg",
  "https://example.com/image2.jpg"
]

Use Cases for this specific action

  • Promotional Materials: Create visually appealing posters or flyers for events or campaigns.
  • Social Media Content: Generate captivating images for posts that engage followers and promote brand awareness.
  • Website Graphics: Enhance your website with custom images that reflect your brand identity, improving user experience.
import requests
import json

# Replace with your actual Cognitive Actions API key and endpoint
# Ensure your environment securely handles the API key
COGNITIVE_ACTIONS_API_KEY = "YOUR_COGNITIVE_ACTIONS_API_KEY"
# This endpoint URL is hypothetical and should be documented for users
COGNITIVE_ACTIONS_EXECUTE_URL = "https://api.cognitiveactions.com/actions/execute"

action_id = "f006ea86-97ca-41e4-bd55-eeb96f1d50f5" # Action ID for: Generate Kuku Express Themed Image

# Construct the exact input payload based on the action's requirements
# This example uses the predefined example_input for this action:
payload = {
  "model": "dev",
  "width": 1440,
  "height": 1440,
  "prompt": "A vibrant and professional poster featuring bold text that reads 'BE OUR PARTNER RIDER' in large, attention-grabbing font. The background includes a cheerful delivery rider wearing a bright yellow uniform with purple accents and the words 'KUKU EXPRESS' on the sleeves. The rider is holding a branded thermal delivery bag and standing next to a motorcycle, set against a lively urban or community backdrop. The overall design incorporates KuKu Express branding colors of yellow, white, and purple, with dynamic elements like motion lines or subtle icons of food and delivery to emphasize energy and opportunity.",
  "fasterMode": false,
  "aspectRatio": "4:5",
  "imageFormat": "jpg",
  "imageQuality": 93,
  "loraStrength": 1,
  "guidanceScale": 3,
  "outputQuantity": 4,
  "promptStrength": 0.8,
  "numInferenceSteps": 39,
  "imageSizeInMegapixels": "1",
  "additionalLoraStrength": 1
}

headers = {
    "Authorization": f"Bearer {COGNITIVE_ACTIONS_API_KEY}",
    "Content-Type": "application/json",
    # Add any other required headers for the Cognitive Actions API
}

# Prepare the request body for the hypothetical execution endpoint
request_body = {
    "action_id": action_id,
    "inputs": payload
}

print(f"--- Calling Cognitive Action: {action.name or action_id} ---")
print(f"Endpoint: {COGNITIVE_ACTIONS_EXECUTE_URL}")
print(f"Action ID: {action_id}")
print("Payload being sent:")
print(json.dumps(request_body, indent=2))
print("------------------------------------------------")

try:
    response = requests.post(
        COGNITIVE_ACTIONS_EXECUTE_URL,
        headers=headers,
        json=request_body
    )
    response.raise_for_status() # Raise an exception for bad status codes (4xx or 5xx)

    result = response.json()
    print("Action executed successfully. Result:")
    print(json.dumps(result, indent=2))

except requests.exceptions.RequestException as e:
    print(f"Error executing action {action_id}: {e}")
    if e.response is not None:
        print(f"Response status: {e.response.status_code}")
        try:
            print(f"Response body: {e.response.json()}")
        except json.JSONDecodeError:
            print(f"Response body (non-JSON): {e.response.text}")
    print("------------------------------------------------")

Conclusion

Kukuuniform's image generation capabilities offer a powerful solution for anyone looking to create stunning visuals that represent the KuKu Express brand. With customizable input options and high-quality output, developers can streamline their creative processes and enhance their marketing efforts. To get started, obtain your API key and experiment with the various input configurations to see how Kukuuniform can elevate your brand's image.