{ "app": { "name": "Grok Image Generator", "version": "2.0.0", "description": "基于 Grok API 的图像生成 Web 应用", "author": "OVINC CN", "license": "MIT" }, "api": { "default_base_url": "", "default_timeout": 600, "default_model": "grok-imagine-1.0", "default_response_format": "b64_json", "default_n": 1, "supported_models": [ { "id": "grok-imagine-1.0", "name": "Grok Imagine 1.0", "description": "Grok 图像生成模型,支持文本到图像生成", "pricing": "paid", "capabilities": ["text-to-image"] } ], "supported_response_formats": ["url", "b64_json"], "max_images_per_request": 10 }, "ui": { "theme": { "primary_color": "#667eea", "secondary_color": "#764ba2", "background_gradient": "linear-gradient(135deg, #667eea 0%, #764ba2 100%)" }, "features": { "drag_drop": true, "image_preview": true, "chat_history": true, "image_gallery": true, "settings_panel": true, "connection_status": true }, "limits": { "max_file_size": 10485760, "max_files_per_upload": 5, "supported_image_formats": ["image/jpeg", "image/png", "image/gif", "image/webp"], "max_chat_history": 100, "max_generated_images": 50 } }, "storage": { "settings_key": "grokImageSettings", "chat_history_key": "grokImageChatHistory", "generated_images_key": "grokGeneratedImages" }, "endpoints": { "models": "/v1/models", "image_generation": "/v1/images/generations" }, "error_messages": { "no_api_key": "请先输入 API Key", "no_base_url": "请先配置 API 地址", "connection_failed": "连接失败,请检查网络和 API 设置", "invalid_response": "API 响应格式错误", "image_generation_failed": "图像生成失败", "file_too_large": "文件大小超过限制", "unsupported_format": "不支持的文件格式", "upload_failed": "文件上传失败", "image_edit_not_supported": "当前 API 不支持图像编辑,仅支持文本生成图像" } }