Generate Stunning Images Effortlessly with SEMIMergeIJ Illustrious v3 Cognitive Actions

22 Apr 2025
Generate Stunning Images Effortlessly with SEMIMergeIJ Illustrious v3 Cognitive Actions

In the realm of AI-driven creativity, the SEMIMergeIJ-Illustrious-v3 Cognitive Actions offer developers an exciting opportunity to generate high-quality images tailored to specific prompts and preferences. This powerful API enables customization through various parameters, making it easier than ever to create unique visual content. Whether you're building an art application, a game, or just exploring creative possibilities, these pre-built actions can save you time and enhance your projects.

Prerequisites

To get started with the SEMIMergeIJ-Illustrious v3 actions, you'll need the following:

  • An API key for accessing the Cognitive Actions platform to authenticate your requests.
  • Basic understanding of making HTTP requests and handling JSON data.

Typically, authentication works by passing your API key in the headers of your requests, allowing you to securely interact with the Cognitive Actions API.

Cognitive Actions Overview

Generate Images with SEMIMergeIJ Illustrious v3

Purpose

This action generates high-quality images using the SEMIMergeIJ-Illustrious-v3 model. It allows users to customize the output with options for prompt guidance, resolution, upscaling, and scheduler selection.

Input

The action accepts a variety of parameters to guide the image generation process. Below are the required and optional fields based on the input schema:

{
  "seed": -1,
  "model": "SEMIMergeIJ-Illustrious-v3",
  "steps": 30,
  "width": 1280,
  "height": 1280,
  "prompt": "street, 1girl, dark-purple short hair, purple eyes, medium breasts, cleavage, casual clothes, smile, V",
  "upscale": "Original",
  "cfgScale": 1,
  "clipSkip": 2,
  "pagScale": 0,
  "batchSize": 1,
  "scheduler": "DPM++ 2M SDE Karras",
  "adetailerFace": false,
  "adetailerHand": false,
  "negativePrompt": "nsfw, naked",
  "adetailerPerson": false,
  "guidanceRescale": 1,
  "prependPreprompt": true,
  "variationalAutoencoder": "NeptuniaXL-VAE-ContrastSaturation"
}
  • seed: Integer value for random seed generation (default: -1).
  • model: Specifies the image generation model (default: "SEMIMergeIJ-Illustrious-v3").
  • steps: Number of steps for image generation (1-100; default: 30).
  • width: Width of the image in pixels (1-4096; default: 1024).
  • height: Height of the image in pixels (1-4096; default: 1024).
  • prompt: Text prompt to guide image generation.
  • upscale: Upscaling factor (options: "Original", "x2", "x4", "x8"; default: "Original").
  • cfgScale: CFG scale for prompt adherence (1-50; default: 1).
  • clipSkip: Number of CLIP layers to skip (minimum: 1; default: 2).
  • pagScale: Similar to CFG but for output quality (0-50; default: 0).
  • batchSize: Number of images to generate simultaneously (1-4; default: 1).
  • scheduler: The scheduling algorithm for image generation (default: "DPM++ 2M SDE Karras").
  • adetailerFace: Enables face detection during generation (default: true).
  • adetailerHand: Enables hand detection during generation (default: false).
  • negativePrompt: Defines aspects to avoid during generation.
  • adetailerPerson: Enables full-body detection (default: false).
  • guidanceRescale: Adjusts rescaling of CFG generated noise (0-5; default: 1).
  • prependPreprompt: Appends specified preprompts to enhance customization (default: true).
  • variationalAutoencoder: Specifies the Variational Autoencoder to apply (default: "default").

Output

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

[
  "https://assets.cognitiveactions.com/invocations/8a32f877-91e5-4d7f-99e2-a912faf18d6a/ae40af2a-b616-4e1c-ab7a-9596691a1942.png"
]

Conceptual Usage Example (Python)

Here's how you might invoke this action using a Python script:

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 = "7aa51eb3-e529-4d56-9147-37c50b812808"  # Action ID for Generate Images with SEMIMergeIJ Illustrious v3

# Construct the input payload based on the action's requirements
payload = {
    "seed": -1,
    "model": "SEMIMergeIJ-Illustrious-v3",
    "steps": 30,
    "width": 1280,
    "height": 1280,
    "prompt": "street, 1girl, dark-purple short hair, purple eyes, medium breasts, cleavage, casual clothes, smile, V",
    "upscale": "Original",
    "cfgScale": 1,
    "clipSkip": 2,
    "pagScale": 0,
    "batchSize": 1,
    "scheduler": "DPM++ 2M SDE Karras",
    "adetailerFace": false,
    "adetailerHand": false,
    "negativePrompt": "nsfw, naked",
    "adetailerPerson": false,
    "guidanceRescale": 1,
    "prependPreprompt": true,
    "variationalAutoencoder": "NeptuniaXL-VAE-ContrastSaturation"
}

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 dictionary is structured according to the input schema for generating images.
  • The response is handled to print the generated image URL upon success.

Conclusion

The SEMIMergeIJ-Illustrious v3 Cognitive Actions empower developers to create stunning images with ease. By leveraging customizable parameters, you can tailor your image generation to meet specific needs, enhancing creativity in your applications. Start experimenting with these actions today, and unlock a world of visual possibilities!