Create Stunning Anime Art with Terminus XL Otaku Cognitive Actions

23 Apr 2025
Create Stunning Anime Art with Terminus XL Otaku Cognitive Actions

In the realm of generative art, the Terminus XL Otaku model stands out for its ability to create striking anime and synthetic art styles. This powerful latent diffusion model utilizes a zero-terminal SNR noise schedule and velocity prediction, enabling developers to seamlessly integrate high-quality image generation into their applications. With the pre-built Cognitive Actions provided for this model, developers can harness its capabilities without delving into complex implementations.

Prerequisites

Before diving into the integration of Cognitive Actions, make sure you have:

  • An API key for the Cognitive Actions platform.
  • A basic understanding of how to make HTTP requests.

Typically, authentication is handled by passing the API key in the headers of your requests, allowing you to access the various actions provided by the platform.

Cognitive Actions Overview

Generate Anime Art with Terminus XL Otaku

This action allows you to create art-styled images using the Terminus XL Otaku model. It’s ideal for developers looking to generate stunning visuals based on textual prompts, enhancing applications in gaming, art, and content creation.

Input

The input for this action consists of various fields that allow you to customize the generated image:

  • seed (integer): A random seed for generating images. Leave blank to use a randomized seed.
  • width (integer): The width of the output image in pixels. Default is 1024.
  • height (integer): The height of the output image in pixels. Default is 1024.
  • prompt (string): The textual input prompt describing the desired content of the generated image.
  • scheduler (string): The scheduler type to use during image generation. Default is 'K_EULER'.
  • guidanceScale (number): The scale factor for classifier-free guidance, ranging from 1 to 20. Default value is 2.
  • applyWatermark (boolean): Indicates whether to apply a watermark to generated images to mark them as AI-generated. Default is true.
  • negativePrompt (string): A prompt that describes elements to avoid in the generated image.
  • numberOfOutputs (integer): The number of images to generate, with a maximum of 4. Default is 1.
  • disableSafetyChecker (boolean): Option to disable the safety checker for generated images. Default is false.
  • numberOfInferenceSteps (integer): The number of denoising steps to apply during image generation, ranging from 1 to 50. Default is 6.
Example Input
{
  "width": 1024,
  "height": 1024,
  "prompt": "joe biden eating a cheeeseburger at mcdonalds",
  "scheduler": "K_EULER",
  "guidanceScale": 7.5,
  "applyWatermark": true,
  "negativePrompt": "",
  "numberOfOutputs": 1,
  "numberOfInferenceSteps": 25
}

Output

Upon successful execution, the action returns a URL pointing to the generated image. For example:

[
  "https://assets.cognitiveactions.com/invocations/77931f72-4049-448d-91c0-0103abe6e265/34ff59bf-c8d5-4fe5-9be5-51b520728d9b.png"
]

This URL can be accessed directly to view or download the generated artwork.

Conceptual Usage Example (Python)

Here’s a conceptual Python code snippet demonstrating how to call this action using a hypothetical Cognitive Actions execution endpoint.

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 = "d3d56478-5fa8-46bf-abd0-76c48c30f88f" # Action ID for Generate Anime Art with Terminus XL Otaku

# Construct the input payload based on the action's requirements
payload = {
    "width": 1024,
    "height": 1024,
    "prompt": "joe biden eating a cheeeseburger at mcdonalds",
    "scheduler": "K_EULER",
    "guidanceScale": 7.5,
    "applyWatermark": True,
    "negativePrompt": "",
    "numberOfOutputs": 1,
    "numberOfInferenceSteps": 25
}

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 the placeholder for your API key and use the appropriate action ID for generating anime art. The input payload is structured to match the requirements of the action, ensuring a smooth execution.

Conclusion

The Cognitive Actions for the Terminus XL Otaku model provide a powerful and user-friendly way to generate anime art tailored to your needs. With the ability to customize various parameters, developers can create unique and engaging visuals for their applications with ease. As you explore these actions, consider integrating them into projects that could benefit from artistic content generation, such as games or digital art platforms. Happy coding!