Skip to main content
Glama
constants.py1.27 kB
"""Application constants.""" # Supported image formats SUPPORTED_IMAGE_TYPES = ["image/png", "image/jpeg", "image/jpg", "image/webp", "image/gif"] # Default aspect ratio options ASPECT_RATIOS = ["Square image", "Portrait", "Landscape", "16:9", "4:3"] # File processing constants THUMBNAIL_SIZE = 256 TEMP_FILE_SUFFIX = ".tmp" MAX_INPUT_IMAGES = 3 # Image processing defaults DEFAULT_IMAGE_FORMAT = "png" THUMBNAIL_FORMAT = "jpeg" # Template categories TEMPLATE_CATEGORIES = { "photography": "High-quality photographic images", "design": "Logos, branding, and graphic design", "commercial": "Product shots and commercial photography", "illustration": "Artistic illustrations and drawings", "editing": "Photo editing and retouching", "artistic": "Creative and artistic rendering", } # Error messages ERROR_MESSAGES = { "missing_api_key": "GEMINI_API_KEY or GOOGLE_API_KEY must be set in environment", "invalid_image_format": "Unsupported image format. Supported types: {types}", "image_too_large": "Image size ({size}) exceeds maximum limit ({limit})", "validation_error": "Parameter validation failed: {details}", "api_error": "Gemini API error: {details}", "unknown_error": "An unexpected error occurred: {details}", }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhongweili/nanobanana-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server