Create Stunning Images with Fasercore Illustrious V1

25 Apr 2025
Create Stunning Images with Fasercore Illustrious V1

The Fasercore Illustrious V1 is a powerful image generation service that allows developers to create high-quality images tailored to their specific needs. With the flexibility to adjust parameters such as size, detail enhancement, and various generation techniques, it simplifies the process of generating visually appealing images. Whether you're building a creative application, designing marketing materials, or simply need unique visuals, Fasercore Illustrious V1 provides a robust solution that saves time and enhances productivity.

Common use cases for this service include generating character art for games, creating unique illustrations for blogs or websites, and producing custom images for social media content. The ability to fine-tune the details ensures that developers can achieve their desired aesthetic with ease.

Prerequisites

Before getting started, you'll need a Cognitive Actions API key and a basic understanding of making API calls.

Generate Image with FaserCore Illustrious

The Generate Image with FaserCore Illustrious action empowers developers to generate high-quality images using the Fasercore Illustrious V1 model. This action is particularly useful for those looking to create custom visuals that require specific adjustments in size, details, and overall composition.

Input Requirements

To utilize this action, you will need to provide the following parameters:

  • seed: An integer for random seed generation (default: -1 for random).
  • model: Specify the model version (default: "FaserCore-Illustrious-v1").
  • steps: An integer indicating the number of steps for the generation (1-100, default: 30).
  • width: The width of the generated image in pixels (1-4096, default: 1024).
  • height: The height of the generated image in pixels (1-4096, default: 1024).
  • prompt: A string that describes the image you want to generate, utilizing Compel weighting syntax.
  • pagScale: A number to enhance result quality (0-50, default: 0).
  • batchSize: The number of images to generate (1-4, default: 1).
  • scheduler: The scheduling algorithm to use during generation.
  • configScale: Controls the focus on the prompt (1-50, default: 7).
  • Additional parameters for detailing faces, hands, and persons, as well as negative prompts to exclude unwanted features.

Expected Output

The output will be a URL link to the generated image, allowing you to easily access and use the visual content created by the action.

Use Cases for this Specific Action

This action is ideal for:

  • Game Development: Quickly generate character designs or backgrounds tailored to specific game scenarios.
  • Marketing and Branding: Create unique visuals for promotional materials that stand out and capture attention.
  • Content Creation: Enhance blog posts, articles, or social media feeds with custom illustrations that resonate with your audience.
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 = "b473e5c1-4182-4533-9766-c1dc7c102392" # Action ID for: Generate Image with FaserCore Illustrious

# 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": "FaserCore-Illustrious-v1",
  "steps": 30,
  "width": 1024,
  "height": 1024,
  "prompt": "street, 1girl, dark-purple short hair, purple eyes, medium breasts, cleavage, casual clothes, smile, V, sharp image",
  "pagScale": 0,
  "batchSize": 1,
  "scheduler": "DPM++ 2M SDE Karras",
  "configScale": 15,
  "adetailerFace": true,
  "adetailerHand": false,
  "clipLayerSkip": 1,
  "negativePrompt": "nsfw, naked, film grain, jpeg artifacts",
  "adetailerPerson": false,
  "guidanceRescale": 1,
  "prependPrePrompt": true,
  "variationalAutoEncoder": "Neptunia"
}

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 Fasercore Illustrious V1 offers a streamlined approach to image generation, making it an invaluable tool for developers in various fields. With its customizable parameters and high-quality output, you can create stunning visuals that fit your specific requirements. As you explore this action, consider the diverse applications it can support, from gaming to content creation, and leverage its capabilities to enhance your projects. Start integrating the Fasercore Illustrious V1 into your workflow today and unlock new creative possibilities!