初始化提交
This commit is contained in:
12
NBATransfer-backend/modelapiservice/NanoBanana/config.py
Normal file
12
NBATransfer-backend/modelapiservice/NanoBanana/config.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# Nano Banana 模型配置
|
||||
import os
|
||||
|
||||
# 价格配置 (CNY per call)
|
||||
IMAGE_GENERATION_PRICE = float(os.getenv('IMAGE_GENERATION_PRICE', 0.15))
|
||||
|
||||
# API 配置 (优先从环境变量获取)
|
||||
def get_config():
|
||||
return {
|
||||
'api_url': os.getenv('NANO_BANANA_API_URL', 'https://api.nanobanana.com/v1'),
|
||||
'api_key': os.getenv('NANO_BANANA_API_KEY')
|
||||
}
|
||||
Reference in New Issue
Block a user