-- ============================================================
-- V11: 添加速创API(SuChuang)的Sora2Pro模型配置
-- 描述: Sora2Pro 是速创的新视频生成模型，使用 /api/sora2pro/submit 接口
-- 特点: 
--   - 定价：400积分
--   - 支持15秒和25秒时长
--   - 25秒只能标清，15秒有高清和标清选项
--   - 支持9:16（竖屏）和16:9（横屏）
--   - 支持文生视频和图生视频
-- 作者: 1818AI  
-- 日期: 2025-01-XX
-- ============================================================

USE `1818ai`;

-- 插入速创Sora2Pro模型配置
-- 文生视频模型（6个）
-- 9:16 竖屏
INSERT INTO `points_config` (`model_name`, `description`, `points_cost`, `provider_type`, `provider_config`, `task_type`, `is_enabled`, `create_time`, `update_time`)
VALUES 
('sc_sora2pro_text_portrait_15s_small', '速创Sora2Pro 文生视频-竖屏-15秒-标清', 400, 'suchuang', 
 '{"aspectRatio":"9:16","duration":"15"}', 
 'text_to_video', 1, NOW(), NOW()),

('sc_sora2pro_text_portrait_15s_large', '速创Sora2Pro 文生视频-竖屏-15秒-高清', 400, 'suchuang', 
 '{"aspectRatio":"9:16","duration":"15"}', 
 'text_to_video', 1, NOW(), NOW()),

('sc_sora2pro_text_portrait_25s_small', '速创Sora2Pro 文生视频-竖屏-25秒-标清', 400, 'suchuang', 
 '{"aspectRatio":"9:16","duration":"25"}', 
 'text_to_video', 1, NOW(), NOW());

-- 16:9 横屏
INSERT INTO `points_config` (`model_name`, `description`, `points_cost`, `provider_type`, `provider_config`, `task_type`, `is_enabled`, `create_time`, `update_time`)
VALUES 
('sc_sora2pro_text_landscape_15s_small', '速创Sora2Pro 文生视频-横屏-15秒-标清', 400, 'suchuang', 
 '{"aspectRatio":"16:9","duration":"15"}', 
 'text_to_video', 1, NOW(), NOW()),

('sc_sora2pro_text_landscape_15s_large', '速创Sora2Pro 文生视频-横屏-15秒-高清', 400, 'suchuang', 
 '{"aspectRatio":"16:9","duration":"15"}', 
 'text_to_video', 1, NOW(), NOW()),

('sc_sora2pro_text_landscape_25s_small', '速创Sora2Pro 文生视频-横屏-25秒-标清', 400, 'suchuang', 
 '{"aspectRatio":"16:9","duration":"25"}', 
 'text_to_video', 1, NOW(), NOW());

-- 图生视频模型（6个）
-- 9:16 竖屏
INSERT INTO `points_config` (`model_name`, `description`, `points_cost`, `provider_type`, `provider_config`, `task_type`, `is_enabled`, `create_time`, `update_time`)
VALUES 
('sc_sora2pro_img_portrait_15s_small', '速创Sora2Pro 图生视频-竖屏-15秒-标清', 400, 'suchuang', 
 '{"aspectRatio":"9:16","duration":"15","requireImage":true}', 
 'image_to_video', 1, NOW(), NOW()),

('sc_sora2pro_img_portrait_15s_large', '速创Sora2Pro 图生视频-竖屏-15秒-高清', 400, 'suchuang', 
 '{"aspectRatio":"9:16","duration":"15","requireImage":true}', 
 'image_to_video', 1, NOW(), NOW()),

('sc_sora2pro_img_portrait_25s_small', '速创Sora2Pro 图生视频-竖屏-25秒-标清', 400, 'suchuang', 
 '{"aspectRatio":"9:16","duration":"25","requireImage":true}', 
 'image_to_video', 1, NOW(), NOW());

-- 16:9 横屏
INSERT INTO `points_config` (`model_name`, `description`, `points_cost`, `provider_type`, `provider_config`, `task_type`, `is_enabled`, `create_time`, `update_time`)
VALUES 
('sc_sora2pro_img_landscape_15s_small', '速创Sora2Pro 图生视频-横屏-15秒-标清', 400, 'suchuang', 
 '{"aspectRatio":"16:9","duration":"15","requireImage":true}', 
 'image_to_video', 1, NOW(), NOW()),

('sc_sora2pro_img_landscape_15s_large', '速创Sora2Pro 图生视频-横屏-15秒-高清', 400, 'suchuang', 
 '{"aspectRatio":"16:9","duration":"15","requireImage":true}', 
 'image_to_video', 1, NOW(), NOW()),

('sc_sora2pro_img_landscape_25s_small', '速创Sora2Pro 图生视频-横屏-25秒-标清', 400, 'suchuang', 
 '{"aspectRatio":"16:9","duration":"25","requireImage":true}', 
 'image_to_video', 1, NOW(), NOW());

-- 验证插入的模型
SELECT 
    model_name,
    description,
    points_cost,
    provider_type,
    task_type,
    provider_config,
    is_enabled
FROM points_config
WHERE model_name LIKE 'sc_sora2pro%'
ORDER BY task_type, model_name;

-- ============================================================
-- V11脚本结束
-- ============================================================

