Create Stunning Images with Cinero Illustrious V4

26 Apr 2025
Create Stunning Images with Cinero Illustrious V4

In the world of digital content creation, the ability to generate high-quality images quickly and efficiently can set your project apart. The Cinero Illustrious V4 offers a robust API for developers looking to harness the power of AI-driven image generation. With its customizable features, this service simplifies the process of creating visually stunning images that capture the essence of your creative vision.

Imagine using this tool to produce artwork for games, illustrations for marketing materials, or even personalized images for social media. Whether you need a unique character design, a breathtaking landscape, or an eye-catching promotional graphic, the Cinero Illustrious V4 is equipped to meet your demands with speed and precision.

Prerequisites

To get started with the Cinero Illustrious V4, you will need a Cognitive Actions API key. Familiarity with general API calls will also be helpful as you integrate this powerful tool into your applications.

Generate Enhanced Images

The "Generate Enhanced Images" action allows you to create detailed and aesthetic images using the CinEro-Illustrious-v4 model. This action is invaluable for developers aiming to produce high-quality visuals tailored to specific prompts and requirements.

Purpose

This action solves the problem of generating unique, high-quality images by providing a range of customization options, including dimensions, generative steps, and prompt guidance.

Input Requirements

To use this action, you must provide several key inputs:

  • seed: An integer for random generation, where -1 means a random seed.
  • model: The model used for generation, which is limited to "CinEro-Illustrious-v4."
  • steps: The number of generative steps, ranging from 1 to 100 (default is 40).
  • width: Image width in pixels (1 to 4096, default is 1080).
  • height: Image height in pixels (1 to 4096, default is 1080).
  • prompt: A string prompt using Compel weighting syntax to guide image generation.
  • refiner: A boolean to enable or disable image refinement.
  • upscale: Determines the upscale factor for the image (options: Original, x2, x4, x8).
  • cfgScale: Controls prompt attention (1 to 50, default is 5).
  • clipSkip: Number of CLIP layers to skip (default is 1).
  • scheduler: Specifies the scheduling algorithm.
  • Additional parameters for further customization, including VAE settings and ADetailer options.

Expected Output

The expected output is a URL linking to the generated image, allowing easy access and integration into your projects.

Example Input

{
  "seed": -1,
  "model": "CinEro-Illustrious-v4",
  "steps": 40,
  "width": 1080,
  "height": 1080,
  "prompt": "(very aesthetic, eye-catching), street, 1girl, dark-purple short hair, purple eyes, medium breasts, cleavage, casual clothes, smile, V",
  "refiner": false,
  "upscale": "Original",
  "cfgScale": 5,
  "clipSkip": 1,
  "scheduler": "Euler a",
  "vaeSetting": "default",
  "negativePrompt": "nsfw, naked"
}

Example Output

[
  "https://assets.cognitiveactions.com/invocations/d392eab1-bc00-4a8a-8081-35f5a42412ff/753c29e5-d896-45b8-99bc-2ef6888dc385.png"
]

Use Cases for this Action

  • Gaming: Create unique characters or environments for video games, enhancing immersive experiences.
  • Marketing: Develop eye-catching visuals for advertisements or social media posts that capture attention and drive engagement.
  • Art Projects: Generate artwork for personal or professional portfolios, showcasing your creative ideas in a visually appealing format.
  • Content Creation: Produce customized visuals for blogs, articles, or websites, improving the overall aesthetic and user engagement.
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 = "2a684202-5f70-4a67-a2f8-4f0f0e15ae3a" # Action ID for: Generate Enhanced Images

# Construct the exact input payload based on the action's requirements
# This example uses the predefined example_input for this action:
payload = {
  "seed": -1,
  "model": "CinEro-Illustrious-v4",
  "steps": 40,
  "width": 1080,
  "height": 1080,
  "prompt": "(very aesthetic, eye-catching), street, 1girl, dark-purple short hair, purple eyes, medium breasts, cleavage, casual clothes, smile, V",
  "refiner": false,
  "upscale": "Original",
  "cfgScale": 5,
  "clipSkip": 1,
  "pagScale": 0,
  "scheduler": "Euler a",
  "vaeSetting": "default",
  "aDetailerFace": false,
  "aDetailerHand": false,
  "refinerPrompt": "",
  "negativePrompt": "nsfw, naked",
  "aDetailerPerson": false,
  "guidanceRescale": 1,
  "refinerStrength": 0.4,
  "prependPreprompt": true,
  "aDetailerFacePrompt": "",
  "aDetailerHandPrompt": "",
  "aDetailerPersonPrompt": "",
  "aDetailerFaceNegativePrompt": "",
  "aDetailerHandNegativePrompt": "",
  "aDetailerPersonNegativePrompt": ""
}

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

The Cinero Illustrious V4 provides developers with a powerful and flexible tool for generating stunning images tailored to specific needs. By leveraging its customizable features, you can create high-quality visuals that enhance your projects, whether for gaming, marketing, or personal expression. As you explore the capabilities of this API, consider how it can fit into your workflow and elevate your creative outcomes. Start integrating today and watch your ideas come to life!