增加即梦图片5.0和视频2.5的能力
This commit is contained in:
1 parent
542246e4ce
commit
88a4268d40
55 files changed
+1412
-200
No files matched your search
@@ -55,7 +55,7 @@ func openAPISchemas() map[string]any {
|
||||
"ownerId": map[string]any{"type": "string", "example": "api:partner-a"},
|
||||
"externalClientId": map[string]any{"type": "string"},
|
||||
"capability": openAPIRef("GenerationCapability"),
|
||||
"provider": map[string]any{"type": "string", "enum": []string{"volcengine-visual", "evolink", "seedance", "bailian"}},
|
||||
"provider": map[string]any{"type": "string", "enum": []string{"volcengine-visual", "evolink", "seedance", "seedream", "bailian"}},
|
||||
"reqKey": map[string]any{"type": "string"},
|
||||
"status": openAPIRef("GenerationStatus"),
|
||||
"prompt": map[string]any{"type": "string"},
|
||||
@@ -94,17 +94,22 @@ func openAPISchemas() map[string]any {
|
||||
"required": []string{"capability"},
|
||||
"properties": map[string]any{
|
||||
"capability": openAPIRef("GenerationCapability"),
|
||||
"engine": map[string]any{"type": "string", "enum": []string{"jimeng", "seedream", "evolink", "bailian", "seedance"}},
|
||||
"model": map[string]any{"type": "string", "enum": []string{"doubao-seedance-2-0-260128", "doubao-seedance-2-5-260628"}, "description": "Optional allow-listed Seedance model for video.generate."},
|
||||
"prompt": map[string]any{"type": "string", "description": "Prompt text. Required for image.generate unless promptAssembly is supplied."},
|
||||
"inputUrls": map[string]any{"type": "array", "items": map[string]any{"type": "string", "format": "uri"}, "description": "Reference image URLs for image capabilities."},
|
||||
"imageUrls": map[string]any{"type": "array", "items": map[string]any{"type": "string", "format": "uri"}, "description": "Alias for image input URLs."},
|
||||
"inputAssetIds": openAPIStringArray(),
|
||||
"materials": map[string]any{"type": "array", "items": openAPIRef("PromptMaterial")},
|
||||
"settings": map[string]any{
|
||||
"type": "object", "description": "Video settings for video.generate.",
|
||||
"type": "object", "description": "Provider-specific image or video settings.",
|
||||
"properties": map[string]any{
|
||||
"ratio": map[string]any{"type": "string", "enum": []string{"16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive"}},
|
||||
"duration": map[string]any{"type": "integer", "minimum": 4, "maximum": 15},
|
||||
"resolution": map[string]any{"type": "string", "enum": []string{"480p", "720p", "1080p"}},
|
||||
"ratio": map[string]any{"type": "string", "enum": []string{"16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive"}},
|
||||
"duration": map[string]any{"type": "integer", "minimum": 4, "maximum": 30, "description": "Seedance 2.0 supports up to 15 seconds; Seedance 2.5 supports up to 30 seconds."},
|
||||
"resolution": map[string]any{"type": "string", "enum": []string{"480p", "720p", "1080p"}},
|
||||
"size": map[string]any{"type": "string", "enum": []string{"1K", "1.5K", "2K"}, "description": "Seedream 5.0 Pro output size."},
|
||||
"outputFormat": map[string]any{"type": "string", "enum": []string{"png", "jpeg"}},
|
||||
"optimizeMode": map[string]any{"type": "string", "enum": []string{"standard", "fast"}},
|
||||
},
|
||||
},
|
||||
"width": map[string]any{"type": "integer", "example": 1440},
|
||||
@@ -236,6 +241,7 @@ func openAPIPaths() map[string]any {
|
||||
}},
|
||||
"videoGenerate": map[string]any{"summary": "Video generation", "value": map[string]any{
|
||||
"capability": "video.generate", "prompt": "生成一条 9:16 品牌短视频",
|
||||
"model": "doubao-seedance-2-5-260628",
|
||||
"settings": map[string]any{"ratio": "9:16", "duration": 5, "resolution": "720p"},
|
||||
}},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user