Create Surreal 90s CGI Images with Cognitive Actions

25 Apr 2025
Create Surreal 90s CGI Images with Cognitive Actions

In the world of digital art, nostalgia plays a powerful role. The "90sbadtrip" Cognitive Actions service harnesses the distinctive aesthetic of 90s CGI, allowing developers to generate trippy and surreal images that evoke memories of a vibrant digital era. This service simplifies the image generation process, enabling you to create unique visuals quickly while tapping into a rich cultural reference. Whether you’re looking to enhance your creative projects, develop unique marketing materials, or simply experiment with retro aesthetics, the 90sbadtrip actions provide an exciting avenue for exploration.

Prerequisites

To get started with the 90sbadtrip Cognitive Actions, you'll need a valid API key and a basic understanding of making API calls. This will enable you to effectively integrate the image generation capabilities into your applications.

Generate 90s Trippy CGI Image

The Generate 90s Trippy CGI Image action is designed to create visually striking images that capture the essence of 90s CGI. By leveraging the '90s bad trip' fine-tuned model, this action reproduces the distinctive, surreal aesthetics characteristic of that era. This capability is perfect for artists, developers, and marketers looking to infuse their projects with a nostalgic flair.

Input Requirements

To use this action, you need to provide a prompt along with several optional parameters:

  • prompt: A detailed description of the image you want to generate, which can include specific styles or elements to guide the output.
  • mask: An image mask for inpainting, if applicable.
  • seed: A random seed for reproducibility.
  • image: An input image for image-to-image generation or inpainting.
  • model: Choose between "dev" or "schnell" based on your performance needs.
  • width and height: Dimensions of the generated image, if aspect ratio is set to custom.
  • goFast: A boolean to enable faster predictions.
  • imageOutputFormat: The format of the output images (e.g., webp, jpg).
  • Additional parameters for fine-tuning the output, such as loraFactor, guidanceFactor, and inferenceSteps.

Example Input

{
  "model": "dev",
  "width": 768,
  "height": 1344,
  "prompt": "A photo of TRP90S, a person is holding their hand in water, in the style of windows xp, metallic rectangles, studyblr, wavy resin sheets, multiple screens, minolta riva mini, oshare kei ",
  "loraFactor": 1.2,
  "outputCount": 4,
  "imageQuality": 80,
  "guidanceFactor": 3.5,
  "inferenceSteps": 28,
  "imageAspectRatio": "9:16",
  "imageOutputFormat": "webp",
  "additionalLoraIntensity": 0.8
}

Expected Output

The output will consist of one or more generated images, each URL leading to a unique CGI image reflecting the nostalgic design elements specified in your prompt. For example:

  • https://assets.cognitiveactions.com/invocations/46a7988f-ca15-4dd8-90f5-fcc7bcb5ab15/01eea21f-f6d3-4b3d-81e1-01a9114b2cca.webp
  • https://assets.cognitiveactions.com/invocations/46a7988f-ca15-4dd8-90f5-fcc7bcb5ab15/be5cc281-bd16-49e0-b451-788c9f954f40.webp

Use Cases for this Action

  • Creative Projects: Artists can use this action to generate unique artwork that draws on the nostalgia of 90s digital aesthetics, perfect for exhibitions or online portfolios.
  • Marketing Campaigns: Marketers can create eye-catching visuals that stand out in campaigns, leveraging retro themes to attract attention.
  • Game Development: Game developers can generate assets that resonate with players who appreciate retro graphics, enhancing the overall game experience.
  • Social Media Content: Social media managers can create engaging and shareable content that taps into the retro trend, appealing to audiences who enjoy nostalgic references.

```python
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 = "8e22eb3f-9d91-43a9-abc1-487e70b811c7" # Action ID for: Generate 90s Trippy CGI Image

# Construct the exact input payload based on the action's requirements
# This example uses the predefined example_input for this action:
payload = {
  "model": "dev",
  "width": 768,
  "height": 1344,
  "prompt": "A photo of TRP90S, a person is holding their hand in water, in the style of windows xp, metallic rectangles, studyblr, wavy resin sheets, multiple screens, minolta riva mini, oshare kei ",
  "loraFactor": 1.2,
  "outputCount": 4,
  "imageQuality": 80,
  "guidanceFactor": 3.5,
  "inferenceSteps": 28,
  "imageAspectRatio": "9:16",
  "imageOutputFormat": "webp",
  "additionalLoraIntensity": 0.8
}

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 90sbadtrip Cognitive Actions service empowers developers and creators to harness the unique visual style of 90s CGI effortlessly. With a variety of customizable inputs, you can experiment with different aesthetics, generate multiple outputs, and bring a touch of nostalgia to your projects. Whether for art, marketing, or entertainment, this service opens up exciting possibilities for creative expression. Start exploring the surreal world of 90s CGI images today!