Create Stunning 90s Anime-Style Images with Lora-Niji Cognitive Actions

25 Apr 2025
Create Stunning 90s Anime-Style Images with Lora-Niji Cognitive Actions

In the world of digital content creation, the ability to generate unique and visually appealing images is paramount. The Lora-Niji Cognitive Actions empower developers to create stunning 90s anime-style images effortlessly. With customizable parameters, these pre-built actions allow for precise control over the output, enabling you to produce images that meet your creative vision without needing advanced graphic design skills.

Prerequisites

Before diving into the capabilities of the Lora-Niji Cognitive Actions, ensure you have the following:

  • An API key for the Cognitive Actions platform.
  • A basic understanding of JSON and API requests.

Typically, authentication is achieved by passing your API key in the request headers, allowing you to access the powerful features of the Lora-Niji actions seamlessly.

Cognitive Actions Overview

Generate 90s Anime-Style Image

The Generate 90s Anime-Style Image action allows you to create images styled after the iconic visuals of 90s anime. You can customize various parameters, including image dimensions, number of outputs, and guidance scales, along with positive and negative prompts to fine-tune the image content.

Input

The input for this action requires a JSON object structured as follows:

{
  "seed": 123456,
  "width": 640,
  "height": 640,
  "prompt": "1 cat",
  "guidanceScale": 5,
  "negativePrompt": "no background",
  "numberOfOutputs": 1,
  "numberOfInferenceSteps": 50
}
  • seed (optional): A random seed for generating variations. If left blank, a random seed is used.
  • width: The width of the output image in pixels (valid values: 384 to 1536; default is 1024).
  • height: The height of the output image in pixels (valid values: 384 to 1536; default is 1024).
  • prompt: A text prompt describing the desired image content (e.g., "1 cat").
  • guidanceScale: A number controlling the weight of the image guidance (value ranges from 1 to 20; default is 7.5).
  • negativePrompt (optional): Elements to exclude from the generated image.
  • numberOfOutputs: The total number of output images to generate (accepts 1 to 4; default is 1).
  • numberOfInferenceSteps: Total denoising steps for processing the image, affecting quality (range from 1 to 500; default is 50).

Output

Upon successful execution, the action returns a list of URLs pointing to the generated images. For example:

[
  "https://assets.cognitiveactions.com/invocations/631ab296-8af0-4d4e-b397-ec0c5fb5923c/ac4bb884-3f36-4e3a-b0bf-3798b6ca7ec2.png"
]

Conceptual Usage Example (Python)

Here is how you might call the Generate 90s Anime-Style Image action using Python:

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 = "d9934df5-d1cd-4bf5-85bf-efd8c6e33522" # Action ID for Generate 90s Anime-Style Image

# Construct the input payload based on the action's requirements
payload = {
    "width": 640,
    "height": 640,
    "prompt": "1 cat",
    "guidanceScale": 5,
    "numberOfOutputs": 1,
    "numberOfInferenceSteps": 50
}

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 example, you replace YOUR_COGNITIVE_ACTIONS_API_KEY with your actual API key. The action ID corresponds to the Generate 90s Anime-Style Image action. The payload is structured to meet the action's input requirements.

Conclusion

The Lora-Niji Cognitive Actions provide developers with a straightforward way to generate unique 90s anime-style images. By leveraging customizable parameters, you can create images that align perfectly with your project's needs. Start integrating these actions into your applications today and explore the endless creative possibilities!