feat: expand novel IP and production workflows

This commit is contained in:
www
2026-09-18 08:14:05 +02:00
parent b2ae4600b4
commit d9c81a3ac0
235 changed files with 117971 additions and 2721 deletions
@@ -0,0 +1,45 @@
UPDATE `provider_configs`
SET
`config_json` = JSON_SET(
COALESCE(`config_json`, JSON_OBJECT()),
'$.size', '2560x1440',
'$.quality', 'medium',
'$.allowed_sizes', JSON_ARRAY('1920x1080', '2560x1440', '3840x2160'),
'$.allowed_qualities', JSON_ARRAY('low', 'medium', 'high', 'auto'),
'$.supports_custom_size', true,
'$.supports_4k', true,
'$.max_width', 3840,
'$.max_height', 3840,
'$.max_pixels', 8294400,
'$.max_aspect_ratio', 3,
'$.experimental_above_size', '2560x1440',
'$.official_doc_url', 'https://developers.openai.com/api/docs/guides/image-generation'
),
`cost_rule_json` = JSON_REMOVE(
JSON_SET(
COALESCE(`cost_rule_json`, JSON_OBJECT()),
'$.flat_cost', 0,
'$.unit', 'openai_image_tokens',
'$.currency', 'USD',
'$.cny_fx_rate', 7.2,
'$.pricing_basis', 'official_openai_gpt_image_2_token_formula_2026_07_16',
'$.default_quality', 'medium',
'$.default_size', '2560x1440',
'$.estimated_cost_per_image', 0.05529,
'$.price_per_1m_text_input_tokens', 5,
'$.price_per_1m_cached_text_input_tokens', 1.25,
'$.price_per_1m_image_input_tokens', 8,
'$.price_per_1m_cached_image_input_tokens', 2,
'$.price_per_1m_image_output_tokens', 30,
'$.output_token_formula', 'ceil(long_quality_tokens*round(long_quality_tokens*short_edge/long_edge)*(2000000+width*height)/4000000)',
'$.output_price_examples', JSON_OBJECT(
'2560x1440_high', 0.2211,
'3840x2160_high', 0.40026
),
'$.note', 'GPT Image 2 按文字输入、参考图输入和图片输出 token 计费;2560×1440 High 纯输出约 $0.22113840×2160 High 纯输出约 $0.4003。参考图与提示词输入另计,以 OpenAI usage 和账单为准。'
),
'$.price_per_image_by_quality',
'$.comparable_models'
)
WHERE `provider_type` = 'ImageProvider'
AND `provider_code` = 'openai-image';