Create Stunning Manga-Style Images with aramintak/lost-and-lonely-manga Actions

22 Apr 2025
Create Stunning Manga-Style Images with aramintak/lost-and-lonely-manga Actions

In the world of digital art and storytelling, manga holds a special place for its unique style and expressive characters. The aramintak/lost-and-lonely-manga API provides Cognitive Actions that enable developers to generate high-quality manga-style images effortlessly. By leveraging these pre-built actions, you can create captivating visuals that enhance your applications, whether for gaming, storytelling, or social media.

Prerequisites

To get started with the Cognitive Actions for the aramintak/lost-and-lonely-manga API, you'll need to set up your environment:

  1. API Key: Obtain an API key for the Cognitive Actions platform.
  2. HTTP Client: Ensure you have an HTTP client (like requests in Python) to make API calls.

For authentication, you will typically pass your API key in the request headers.

Cognitive Actions Overview

Generate Manga Style Image

The Generate Manga Style Image action allows you to create manga-style images using the "Lost and Lonely Manga" model. This action is optimized for high-quality artistic results and offers customizable options for image dimensions, prompt guidance, and output format quality.

  • Category: image-generation

Input

The input for this action is structured as follows:

FieldTypeDescriptionExample
seedintegerThe seed value for generating reproducible results. Random by default.(not specified)
stepsintegerSpecify the number of sampler steps (1-50). Leave empty for recommended steps.(not specified)
widthintegerThe width of the output image in pixels. Defaults to 1024.1024
heightintegerThe height of the output image in pixels. Defaults to 1024.1024
promptstringA textual description that guides the image generation process."a cute kid witch with a black cat friend"
samplerstringChoose a sampler for image generation (defaults to 'Default')."Default"
schedulerstringSelect a scheduler for image generation (defaults to 'Default')."Default"
loraStrengthnumberDetermines the strength of the Lora model during generation (0-3).1
outputFormatstringSpecifies the format of the output images (options: 'webp', 'jpg', 'png')."webp"
outputQualityintegerDefines the image quality (0-100). Defaults to 80.80
negativePromptstringElements or themes to exclude from the generated image.""
numberOfImagesintegerSpecifies how many images to generate per request (1-10). Defaults to 1.1
disableSafetyCheckerbooleanEnables or disables the safety checker for generated images. Defaults to false.false
classifierFreeGuidancenumberAdjusts prompt influence strength in the output (0-20). Defaults to recommended CFG.(not specified)

Example Input

Here is a sample JSON input for the action:

{
  "width": 1024,
  "height": 1024,
  "prompt": "a cute kid witch with a black cat friend",
  "sampler": "Default",
  "scheduler": "Default",
  "loraStrength": 1,
  "outputFormat": "webp",
  "outputQuality": 80,
  "negativePrompt": "",
  "numberOfImages": 1
}

Output

The action typically returns a URL to the generated image. Here is an example of the output:

[
  "https://assets.cognitiveactions.com/invocations/42a906e4-a000-4cfe-8e55-88fe2924a2ca/b5bf4a75-c83a-4ba2-b725-dc762f52cdf8.webp"
]

Conceptual Usage Example (Python)

Here is a conceptual Python code snippet demonstrating how to call the Generate Manga Style Image action:

import requests
import json

# Replace with your Cognitive Actions API key and endpoint
COGNITIVE_ACTIONS_API_KEY = "YOUR_COGNITIVE_ACTIONS_API_KEY"
COGNITIVE_ACTIONS_EXECUTE_URL = "https://api.cognitiveactions.com/actions/execute"  # Hypothetical endpoint

action_id = "e92d8186-0f46-49d5-a117-fce4a44c3e93"  # Action ID for Generate Manga Style Image

# Construct the input payload based on the action's requirements
payload = {
    "width": 1024,
    "height": 1024,
    "prompt": "a cute kid witch with a black cat friend",
    "sampler": "Default",
    "scheduler": "Default",
    "loraStrength": 1,
    "outputFormat": "webp",
    "outputQuality": 80,
    "negativePrompt": "",
    "numberOfImages": 1
}

headers = {
    "Authorization": f"Bearer {COGNITIVE_ACTIONS_API_KEY}",
    "Content-Type": "application/json"
}

try:
    response = requests.post(
        COGNITIVE_ACTIONS_EXECUTE_URL,
        headers=headers,
        json={"action_id": action_id, "inputs": payload}  # Hypothetical structure
    )
    response.raise_for_status()  # Raise an exception for bad status codes (4xx or 5xx)

    result = response.json()
    print("Action executed successfully:")
    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: {e.response.text}")

In this code snippet, replace YOUR_COGNITIVE_ACTIONS_API_KEY with your actual API key. The payload variable contains the structured input for the action, and the request is sent to the hypothetical execution endpoint.

Conclusion

The aramintak/lost-and-lonely-manga Cognitive Actions offer a powerful and flexible way to generate stunning manga-style images tailored to your specific needs. By taking advantage of the customizable parameters, you can create unique artwork that enhances your projects. Dive into the creative possibilities today and start integrating these actions into your applications!