75 lines
2.4 KiB
JSON
75 lines
2.4 KiB
JSON
{
|
||
"app": {
|
||
"name": "OpenRouter Image Generator",
|
||
"version": "1.0.0",
|
||
"description": "基于OpenRouter API的图像生成Web应用",
|
||
"author": "OVINC CN",
|
||
"license": "MIT"
|
||
},
|
||
"api": {
|
||
"default_base_url": "https://openrouter.ai/api/v1",
|
||
"default_timeout": 600,
|
||
"default_model": "google/gemini-2.5-flash-image-preview:free",
|
||
"supported_models": [
|
||
{
|
||
"id": "google/gemini-2.5-flash-image-preview:free",
|
||
"name": "Google Gemini 2.5 Flash Image Preview",
|
||
"description": "免费的Google Gemini模型,支持图像生成和视觉理解",
|
||
"pricing": "free"
|
||
},
|
||
{
|
||
"id": "openai/gpt-4-vision-preview",
|
||
"name": "OpenAI GPT-4 Vision Preview",
|
||
"description": "OpenAI的GPT-4视觉预览版,强大的图像理解和生成能力",
|
||
"pricing": "paid"
|
||
},
|
||
{
|
||
"id": "anthropic/claude-3-sonnet-20240229",
|
||
"name": "Anthropic Claude 3 Sonnet",
|
||
"description": "Anthropic的Claude 3 Sonnet模型,优秀的图像分析能力",
|
||
"pricing": "paid"
|
||
}
|
||
]
|
||
},
|
||
"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": "openRouterSettings",
|
||
"chat_history_key": "openRouterChatHistory",
|
||
"generated_images_key": "openRouterGeneratedImages"
|
||
},
|
||
"endpoints": {
|
||
"models": "/models",
|
||
"chat_completions": "/chat/completions",
|
||
"image_generation": "/images/generations"
|
||
},
|
||
"error_messages": {
|
||
"no_api_key": "请先输入API Key",
|
||
"connection_failed": "连接失败,请检查网络和API设置",
|
||
"invalid_response": "API响应格式错误",
|
||
"image_generation_failed": "图像生成失败",
|
||
"file_too_large": "文件大小超过限制",
|
||
"unsupported_format": "不支持的文件格式",
|
||
"upload_failed": "文件上传失败"
|
||
}
|
||
} |