ai创建,接口清除
This commit is contained in:
@@ -305,7 +305,47 @@ export async function getCreditRatios(): Promise<any[]> {
|
||||
return api.get('/credits/ratios');
|
||||
}
|
||||
// 引擎配置
|
||||
export async function getEngine(): Promise<any[]> {
|
||||
export async function getEngine(): Promise<any> {
|
||||
if (USE_MOCK) return {
|
||||
engine: {
|
||||
image: [
|
||||
{
|
||||
id: "0019e3dac0b795b925b",
|
||||
name: "Seedream 5.0",
|
||||
provider: "ark",
|
||||
model_name: "doubao-seedream-5-0-260128",
|
||||
supported_models: ["doubao-seedream-5-0-260128"],
|
||||
supported_sizes: {
|
||||
"2K": {
|
||||
"1:1": "2048×2048",
|
||||
"4:3": "2304×1728",
|
||||
"3:4": "1728×2304",
|
||||
"16:9": "2560×1440",
|
||||
"9:16": "1600×2848",
|
||||
"3:2": "2496×1664",
|
||||
"2:3": "1664×2496",
|
||||
"21:9": "3024×1296"
|
||||
},
|
||||
"4K": {
|
||||
"1:1": "4096×4096",
|
||||
"4:3": "4608×3456",
|
||||
"3:4": "3520×4704",
|
||||
"16:9": "5404×3040",
|
||||
"9:16": "3040×5504",
|
||||
"3:2": "4992×3328",
|
||||
"2:3": "3328×4992",
|
||||
"21:9": "6197×2656"
|
||||
}
|
||||
},
|
||||
default_size: "2K",
|
||||
priority: 10
|
||||
}
|
||||
],
|
||||
video: [
|
||||
{ id: 'mock', name: 'Seedance', provider: 'seedance', supportedRatios: ['16:9', '9:16', '1:1', '4:3', '3:4', '21:9'], supportedResolutions: ['480p', '720p', '1080p'], supportedDurations: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] }
|
||||
]
|
||||
}
|
||||
};
|
||||
return api.get('/generation-ai/engines');
|
||||
}
|
||||
// ── Generation AI Tasks ────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user