Create Stunning Images with Epicrealism Depth

26 Apr 2025
Create Stunning Images with Epicrealism Depth

Epicrealism Depth is a powerful service that enables developers to generate highly realistic images using advanced AI techniques. By leveraging the EpicRealism model in conjunction with various ControlNet models, this service allows for a high degree of customization through detailed prompts and conditioning scales. The benefits of using Epicrealism Depth include rapid image generation, enhanced creative control, and the ability to produce high-quality visuals tailored to specific needs.

Common use cases for Epicrealism Depth range from creating unique artwork for digital projects to generating realistic product images for e-commerce. Developers can utilize this service for game design, marketing campaigns, visual storytelling, and more. With its ability to interpret complex prompts and integrate various conditioning methods, Epicrealism Depth simplifies the process of image creation, making it accessible for developers of all skill levels.

Prerequisites

To get started with Epicrealism Depth, you will need an API key for the Cognitive Actions service and a basic understanding of making API calls.

Generate EpicRealism Images

The "Generate EpicRealism Images" action is designed to create realistic images based on user-defined prompts. This action solves the problem of generating high-quality visuals quickly and efficiently, allowing for extensive customization to meet specific project requirements.

Input Requirements

The input schema for this action requires a prompt, which is the key element defining the image you want to generate. Additional optional parameters include seed values for randomness, various image URIs for conditioning, and settings for noise levels and output specifications.

Example Input:

{
  "prompt": "photo of an golden apple, 4k, detailed",
  "guessMode": false,
  "scheduler": "DDIM",
  "depthImage": "https://replicate.delivery/pbxt/JrHsywU6jrhy5ZUQoJpbpz4MowOPhNNYEMcwe7pY9UDKOcUQ/0_big.png",
  "noiseLevel": 0,
  "maximumWidth": 512,
  "guidanceScale": 7,
  "maximumHeight": 512,
  "scribbleImage": "https://replicate.delivery/pbxt/JrHsyw1QEk1UiJWVASAtrCPlmjZZ7Q9udsXh2RE6pTojuxJc/0_big.png",
  "negativePrompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
  "numberOfOutputs": 1,
  "numInferenceSteps": 20,
  "consistencyDecoder": true,
  "disableSafetyCheck": false,
  "tileConditioningScale": 1,
  "depthConditioningScale": 1,
  "lineArtConditioningScale": 1,
  "scribbleConditioningScale": 2,
  "brightnessConditioningScale": 1,
  "inpaintingConditioningScale": 1
}

Expected Output

The action will return a URL link to the generated image, which can be used directly in your projects.

Example Output:

[
  "https://assets.cognitiveactions.com/invocations/437a0d36-f82b-4848-89f3-cad730996cf0/8423ba54-4d92-4d8f-9ef5-71e8cb814508.png"
]

Use Cases for this Specific Action

  1. Art Creation: Artists and designers can use this action to create original artwork based on specific themes or concepts.
  2. Product Visualization: E-commerce platforms can generate product images that appear more realistic and appealing to potential buyers.
  3. Game Development: Game developers can create textures and backgrounds that enhance the visual storytelling of their games.
  4. Marketing Materials: Marketers can generate unique visuals for advertisements, social media posts, and promotional content.
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 = "f9f58932-2f1d-4b7b-a57f-a8a5fe74a4d5" # Action ID for: Generate EpicRealism Images

# Construct the exact input payload based on the action's requirements
# This example uses the predefined example_input for this action:
payload = {
  "prompt": "photo of an golden apple, 4k, detailed",
  "guessMode": false,
  "scheduler": "DDIM",
  "depthImage": "https://replicate.delivery/pbxt/JrHsywU6jrhy5ZUQoJpbpz4MowOPhNNYEMcwe7pY9UDKOcUQ/0_big.png",
  "noiseLevel": 0,
  "maximumWidth": 512,
  "guidanceScale": 7,
  "maximumHeight": 512,
  "scribbleImage": "https://replicate.delivery/pbxt/JrHsyw1QEk1UiJWVASAtrCPlmjZZ7Q9udsXh2RE6pTojuxJc/0_big.png",
  "negativePrompt": "Longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality",
  "numberOfOutputs": 1,
  "numInferenceSteps": 20,
  "consistencyDecoder": true,
  "disableSafetyCheck": false,
  "tileConditioningScale": 1,
  "depthConditioningScale": 1,
  "lineArtConditioningScale": 1,
  "scribbleConditioningScale": 2,
  "brightnessConditioningScale": 1,
  "inpaintingConditioningScale": 1
}

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

Epicrealism Depth provides developers with a powerful tool for generating stunning images tailored to their needs. By utilizing customizable prompts and various conditioning scales, users can create high-quality visuals quickly and efficiently. Whether for art, marketing, or product visualization, the potential applications are vast. Start exploring Epicrealism Depth today and unlock new creative possibilities in your projects!