Create Stunning Images of Shipping Containers in Unique Landscapes

Verde Vertical offers a powerful image-generation service that allows developers to create realistic images of shipping containers set against breathtaking remote landscapes. This capability not only enhances visual storytelling but also enables businesses to showcase their products in innovative ways. By using advanced AI technology, Verde Vertical simplifies the process of image creation, saving time and resources while delivering high-quality visuals.
Common use cases for this service include marketing campaigns, product visualizations, and artistic projects where a blend of technology and nature is desired. Whether you need images for an advertisement, a website, or a social media post, Verde Vertical’s cognitive actions provide the tools to bring your vision to life.
Prerequisites
To get started with Verde Vertical, you will need a Cognitive Actions API key and a basic understanding of API calls.
Generate Images of Remote Shipping Containers
This action allows users to create stunning images depicting Verde Vertical shipping containers in unique and remote settings. The generated images emphasize the contrast between human technology and the beauty of nature, making them ideal for a variety of applications.
Input Requirements
The input for this action requires a structured object that includes a prompt, which describes the desired image in detail. Additional parameters such as model selection, output format, and dimensions can also be specified. Here’s a brief overview of the key inputs:
- Prompt: A detailed description of the desired image.
- Model: Choose between "dev" or "schnell" for different inference speeds.
- Output Count: Specify how many images to generate (between 1 and 4).
- Image Aspect Ratio: Define the aspect ratio for the image.
- Guidance Scale: Adjust the guidance for the diffusion process.
Expected Output
The output will be a URL linking to the generated image, which will reflect the details and parameters specified in the input. The image will be delivered in the chosen format (e.g., webp, jpg, png).
Use Cases for this Specific Action
- Marketing and Advertising: Create eye-catching visuals for campaigns that highlight shipping containers in exotic locations, appealing to a wide audience.
- E-commerce: Showcase products in unique settings to attract customers and enhance product listings.
- Art Projects: Generate artistic representations that combine technology and nature, perfect for exhibitions or installations.
- Content Creation: Enhance blogs, articles, and social media posts with unique imagery that tells a story.
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 = "1bd5f18f-d83a-407b-9e58-1ef05ec72d0b" # Action ID for: Generate Images of Remote Shipping Containers
# Construct the exact input payload based on the action's requirements
# This example uses the predefined example_input for this action:
payload = {
"model": "dev",
"goFast": false,
"prompt": "This is a striking image of a solitary CNTNREXTRR shipping container situated in a vast, icy landscape, likely in an Antarctica base. The container is painted a light gray and has the complete VERDE VERTICAL logo along its side (The Verde Vertical logo is a stylized representation of the company's name and its connection to vertical farming.\n\nHere's a breakdown of the elements:\n\nWordmark: The words \"VERDE VERTICAL\" are prominently displayed in a bold, sans-serif typeface. \"VERDE\" is positioned above \"VERTICAL,\" giving a sense of verticality that aligns with the company's name and the nature of its business. The color green is used for \"VERDE,\" further emphasizing the connection to plants and growth.\n\nIcon: To the right of the wordmark, there's a simple icon depicting three rows of plants growing in a vertical arrangement. This icon visually reinforces the concept of vertical farming and adds a visual element that complements the text. The icon is rendered in a dark green color, maintaining consistency with the green used in the wordmark.\n\nFraming: The entire logo is enclosed within a rectangular frame with rounded corners. This frame helps to contain the elements and create a sense of unity and cohesion. The frame is also rendered in a dark green color, tying all the elements together.). It appears to be resting on a bed of snow and ice, with a lone penguin standing a short distance away.\n\nIn the background, there are majestic snow-covered mountains that rise up dramatically against a clear blue sky with wispy white clouds. The overall impression is one of isolation, resilience, and the stark beauty of nature. The presence of the container in this remote environment suggests a human presence in an otherwise untouched wilderness.\n\nThe penguin adds a touch of life and whimsy to the scene, highlighting the contrast between the natural world and human intervention. The image is well-composed, with the container and penguin positioned in a way that draws the viewer's eye and creates a sense of depth and scale.",
"imageFormat": "webp",
"outputCount": 1,
"guidanceScale": 3,
"imageResolution": "1",
"loraWeightScale": 1,
"promptIntensity": 0.8,
"imageAspectRatio": "1:1",
"imageSaveQuality": 80,
"inferenceStepCount": 28,
"additionalLoraScaleIntensity": 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
Verde Vertical's image generation capabilities provide developers with a versatile tool to create stunning visuals that blend technology with the beauty of nature. By leveraging this service, you can enhance your marketing strategies, improve product presentations, and elevate content quality. As a next step, explore how integrating these cognitive actions can transform your projects, making them more visually appealing and engaging.