Create Stunning Images Effortlessly with UwazumiMix V3.5

26 Apr 2025
Create Stunning Images Effortlessly with UwazumiMix V3.5

The Uwazumimix V3.5 service provides developers with an advanced image generation API that harnesses the power of machine learning to create high-quality images tailored to specific needs. With customizable options for resolution, refinement, and upscaling, this service simplifies the process of generating images, allowing developers to focus on their creative visions rather than the complexities of image processing.

Common use cases for the Uwazumimix V3.5 include generating artwork for games, creating unique visuals for marketing materials, or producing illustrations for storytelling. Whether you are a game developer seeking to enhance your game's aesthetic or a content creator looking for unique images to complement your work, Uwazumimix V3.5 offers the tools to bring your ideas to life.

To get started, you will need a valid Cognitive Actions API key and a basic understanding of how to make API calls.

Generate Image With UwazumiMix v3.5

The "Generate Image With UwazumiMix v3.5" action allows you to create stunning images based on detailed prompts. This action is designed to solve the problem of generating high-quality visuals by offering extensive customization options, including resolution settings, image refinement features, and various upscaling factors. The use of advanced scheduling algorithms and Compel weighting syntax ensures precise control over the output, making it an essential tool for developers aiming to produce specific visual styles.

Input Requirements

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

  • Seed: An integer to control randomness in generation (use -1 for a random seed).
  • Steps: The number of steps for the generation process (between 1 and 100).
  • Width: Desired width of the output image in pixels (1 to 4096).
  • Height: Desired height of the output image in pixels (1 to 4096).
  • Prompt: A descriptive text prompt that guides image generation.
  • Refiner: A boolean flag to enable image refinement.
  • Upscale Factor: Options for upscaling the image (Original, x2, x4, x8).
  • VAE Model: Select the Variational Autoencoder model (default options available).
  • Scheduler: Choose the algorithm for the image generation process.
  • Additional parameters include options for enhancing specific details (like faces and hands), CFG scaling, and negative prompts to avoid undesired elements.

Example Input

{
  "seed": -1,
  "steps": 60,
  "width": 1080,
  "height": 1080,
  "prompt": "street, 1girl, dark-purple short hair, purple eyes, medium breasts, cleavage, casual clothes, smile, V",
  "refiner": false,
  "upscale": "Original",
  "vaeModel": "NeptuniaXL-VAE-ContrastSaturation",
  "scheduler": "DPM++ 2M SDE Karras",
  "adetailerFace": false,
  "adetailerHand": false,
  "clipLayerSkip": 2,
  "adetailerPerson": false,
  "generationModel": "UwazumiMix-v3.5",
  "addInitialPrompt": true,
  "refinerIntensity": 0.8,
  "cfgAttentionScale": 5,
  "negativeTextPrompt": "nsfw, naked"
}

Expected Output

The expected output will be a URL link to the generated image, allowing you to easily access and utilize the created visuals in your projects.

Example Output

[
  "https://assets.cognitiveactions.com/invocations/895ce18a-999b-4b00-9d78-16c9fbffdcc3/f6b7e17b-3844-48bc-8405-822c5e5d2a7e.png"
]

Use Cases for this specific action

This action is particularly beneficial in several contexts:

  • Game Development: Create unique character designs or environments that fit your game's theme.
  • Marketing: Generate eye-catching images for promotional materials, social media posts, or advertisements.
  • Content Creation: Produce custom illustrations for blogs, articles, or digital storytelling, enhancing engagement with visual aids.
  • Art Projects: Experiment with different styles and prompts to develop a portfolio of digital artworks.
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 = "5cb555ae-6f4a-4fa5-8466-3f86ce897feb" # Action ID for: Generate Image With UwazumiMix v3.5

# Construct the exact input payload based on the action's requirements
# This example uses the predefined example_input for this action:
payload = {
  "seed": -1,
  "steps": 60,
  "width": 1080,
  "height": 1080,
  "prompt": "street, 1girl, dark-purple short hair, purple eyes, medium breasts, cleavage, casual clothes, smile, V",
  "refiner": false,
  "upscale": "Original",
  "vaeModel": "NeptuniaXL-VAE-ContrastSaturation",
  "scheduler": "DPM++ 2M SDE Karras",
  "adetailerFace": false,
  "adetailerHand": false,
  "clipLayerSkip": 2,
  "adetailerPerson": false,
  "generationModel": "UwazumiMix-v3.5",
  "addInitialPrompt": true,
  "refinerIntensity": 0.8,
  "cfgAttentionScale": 5,
  "refinerTextPrompt": "",
  "negativeTextPrompt": "nsfw, naked",
  "pagImprovementScale": 0,
  "guidanceNoiseRescale": 1,
  "adetailerFaceTextPrompt": "",
  "adetailerHandTextPrompt": "",
  "adetailerPersonTextPrompt": "",
  "adetailerFaceNegativeTextPrompt": "",
  "adetailerHandNegativeTextPrompt": "",
  "adetailerPersonNegativeTextPrompt": ""
}

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 Uwazumimix V3.5 service empowers developers to generate high-quality images with ease, providing a robust set of features that cater to various creative needs. With its customizable options and advanced algorithms, this image generation tool simplifies the process of creating stunning visuals, making it an invaluable resource for any developer. Whether you're looking to enhance your game, improve your marketing efforts, or simply explore your artistic side, Uwazumimix V3.5 is the perfect solution.

Get started today by integrating this powerful API into your projects and unlock a world of creative possibilities!