diff options
Diffstat (limited to 'data/en_us/paimodelgallery/2025-06-30')
| -rw-r--r-- | data/en_us/paimodelgallery/2025-06-30/api-docs.php | 346 |
1 files changed, 344 insertions, 2 deletions
diff --git a/data/en_us/paimodelgallery/2025-06-30/api-docs.php b/data/en_us/paimodelgallery/2025-06-30/api-docs.php index 19d0733..958c59e 100644 --- a/data/en_us/paimodelgallery/2025-06-30/api-docs.php +++ b/data/en_us/paimodelgallery/2025-06-30/api-docs.php @@ -1,4 +1,346 @@ <?php return [ - 'code' => 500, - 'message' => 'server error', + 'version' => '1.0', + 'info' => ['style' => 'ROA', 'product' => 'PAIModelGallery', 'version' => '2025-06-30'], + 'directories' => ['ListModelGalleryModels'], + 'components' => [ + 'schemas' => [ + 'JobPlan' => [ + 'type' => 'object', + 'properties' => [ + 'JobPlanId' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'WorkspaceId' => ['type' => 'string'], + 'UserId' => ['type' => 'string'], + 'OwnerId' => ['type' => 'string'], + 'JobPlanType' => ['type' => 'string'], + 'JobPlanName' => ['type' => 'string'], + 'JobPlanCurrentStep' => ['type' => 'string'], + 'JobPlanSteps' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'JobPlanStepName' => ['type' => 'string'], + 'JobPlanStepType' => ['type' => 'string'], + 'JobPlanStepId' => ['type' => 'string'], + 'JobPlanStepSpec' => ['type' => 'object'], + ], + ], + ], + 'Tags' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['type' => 'string'], + 'Value' => ['type' => 'string'], + ], + ], + ], + ], + ], + 'ModelGalleryModel' => [ + 'type' => 'object', + 'properties' => [ + 'GmtCreateTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'ModelId' => ['type' => 'string'], + 'ModelName' => ['type' => 'string'], + 'ModelDescription' => ['type' => 'string'], + 'LatestVersionName' => ['type' => 'string'], + 'GmtLatestVersionModified' => ['type' => 'string'], + 'OrderNumber' => ['type' => 'integer', 'format' => 'int64'], + 'Origin' => ['type' => 'string'], + 'Domain' => ['type' => 'string'], + 'Task' => ['type' => 'string'], + 'ParameterSize' => ['type' => 'integer', 'format' => 'int64'], + 'ModelDoc' => ['type' => 'string'], + 'ModelType' => ['type' => 'string'], + 'Collection' => ['type' => 'string'], + 'SearchWords' => ['type' => 'string'], + 'ModelSeries' => ['type' => 'string'], + 'Demonstrable' => ['type' => 'boolean'], + 'Deployable' => ['type' => 'boolean'], + 'SupportedInferenceResources' => ['type' => 'string'], + 'Trainable' => ['type' => 'boolean'], + 'SupportedTrainingResources' => ['type' => 'string'], + 'Evaluable' => ['type' => 'boolean'], + 'SupportedEvaluationResources' => ['type' => 'string'], + 'Compressible' => ['type' => 'boolean'], + 'SupportedCompressionResources' => ['type' => 'string'], + 'Distillable' => ['type' => 'boolean'], + 'SupportedDistillationResources' => ['type' => 'string'], + 'Tags' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['type' => 'string'], + 'Value' => ['type' => 'string'], + ], + ], + 'DeepThink' => ['type' => 'boolean'], + 'FunctionCall' => ['type' => 'boolean'], + 'ExtraInfo' => ['type' => 'object'], + 'SupportedInferenceMethods' => ['type' => 'object'], + 'SupportedTrainingMethods' => ['type' => 'object'], + 'SupportedEvaluationMethods' => ['type' => 'object'], + 'SupportedCompressionMethods' => ['type' => 'object'], + 'SupportedDistillationMethods' => ['type' => 'object'], + ], + ], + ], + ], + 'apis' => [ + 'ListModelGalleryModels' => [ + 'summary' => 'Retrieves the list of models from ModelGallery.', + 'path' => '/api/v1/modelgallery/models', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATURElearn9XMQIJ'], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The page number of the model list. Minimum value: 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'required' => false], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The number of models to display on each page when using paging. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'required' => false], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The sorting order for the specified sort field when using paging. Default value: ASC.'."\n" + ."\n" + .'Valid values:'."\n" + .'- ASC: ascending order.'."\n" + .'- DESC: descending order.', 'type' => 'string', 'example' => 'DESC', 'required' => false], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The sorting field when using paging. Currently, the GmtCreateTime field is used for sorting. Valid values:'."\n" + ."\n" + .'- GmtCreateTime: the model creation time.'."\n" + ."\n" + .'- GmtLatestVersionModified: the time when the latest model version was updated.'."\n" + ."\n" + .'- OrderNumber: the ordinal number.', 'type' => 'string', 'example' => 'GmtCreateTime', 'required' => false], + ], + [ + 'name' => 'ModelName', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The model name used to filter the model list. By default, fuzzy match is used. Enclose the name in double quotation marks for exact match. For example, "DeepSeek-V3.2" exactly matches the model DeepSeek-V3.2.', 'type' => 'string', 'required' => false, 'example' => 'Qwen3-235B-A22B-Thinking-2507'], + ], + [ + 'name' => 'Domain', + 'in' => 'query', + 'schema' => ['title' => '', 'description' => 'The domain used to filter models within the specified domain. For example, aigc (generative AI), nlp (natural language processing), cv (computer vision), and others.', 'type' => 'string', 'example' => 'aigc', 'required' => false], + ], + [ + 'name' => 'Task', + 'in' => 'query', + 'schema' => ['description' => 'The task. For example, large-language-model (large language model), image-classification (image classification), embedding, and others.', 'type' => 'string', 'required' => false, 'example' => 'large-language-model', 'title' => ''], + ], + [ + 'name' => 'Origin', + 'in' => 'query', + 'schema' => ['description' => 'The model source used to filter models that belong to a specific community or organization. For example, ModelScope, PAI, NIM, and others.', 'type' => 'string', 'required' => false, 'example' => 'ModelScope', 'title' => ''], + ], + [ + 'name' => 'ModelType', + 'in' => 'query', + 'schema' => ['description' => 'The model type.', 'type' => 'string', 'required' => false, 'example' => 'Endpoint', 'title' => ''], + ], + [ + 'name' => 'Collections', + 'in' => 'query', + 'schema' => ['description' => 'The collection to which the model belongs. The collection for ModelGallery models is QuickStart.', 'type' => 'string', 'required' => false, 'example' => 'QuickStart', 'title' => ''], + ], + [ + 'name' => 'ModelSeries', + 'in' => 'query', + 'schema' => ['description' => 'The model series. For example, PAI Optimized Model, Qwen, Wan-AI, GLM, Baichuan, DeepSeek, Kimi, MiniMax, Yi, InternLM, InternVL, OpenAI, NVIDIA, Gemma, Phi, dots_vlm, Llama, Mistral, Stable Diffusion, FLUX, Byte Dance, StepFun AI, ERNIE Bot, Tencent Hunyuan, YOLO, and others.', 'type' => 'string', 'required' => false, 'example' => 'Qwen', 'title' => ''], + ], + [ + 'name' => 'Demonstrable', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether online experience is supported.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => ''], + ], + [ + 'name' => 'Deployable', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether deployment is supported.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => ''], + ], + [ + 'name' => 'SupportedInferenceResource', + 'in' => 'query', + 'schema' => ['description' => 'The supported deployment resources, such as CPU, GPU, and GP7V. For example, if you specify GP7V, only models that support deployment on GP7V resources are returned.', 'type' => 'string', 'required' => false, 'example' => 'GP7V', 'title' => ''], + ], + [ + 'name' => 'Trainable', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether training is supported.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => ''], + ], + [ + 'name' => 'SupportedTrainingResource', + 'in' => 'query', + 'schema' => ['description' => 'The supported training resources, such as CPU, GPU, and GP7V. For example, if you specify GP7V, only models that support training on GP7V resources are returned.', 'type' => 'string', 'required' => false, 'example' => 'GP7V', 'title' => ''], + ], + [ + 'name' => 'Evaluable', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether evaluation is supported.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => ''], + ], + [ + 'name' => 'SupportedEvaluationResource', + 'in' => 'query', + 'schema' => ['description' => 'The supported evaluation resources, such as CPU, GPU, and GP7V. For example, if you specify GP7V, only models that support evaluation on GP7V resources are returned.', 'type' => 'string', 'required' => false, 'example' => 'GP7V', 'title' => ''], + ], + [ + 'name' => 'Compressible', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether model compression is supported.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => ''], + ], + [ + 'name' => 'SupportedCompressionResource', + 'in' => 'query', + 'schema' => ['description' => 'The supported compression resources, such as CPU, GPU, and GP7V. For example, if you specify GP7V, only models that support compression on GP7V resources are returned.', 'type' => 'string', 'required' => false, 'example' => 'GP7V', 'title' => ''], + ], + [ + 'name' => 'Distillable', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether model distillation is supported.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => ''], + ], + [ + 'name' => 'SupportedDistillationResource', + 'in' => 'query', + 'schema' => ['description' => 'The supported distillation resources, such as CPU, GPU, and GP7V. For example, if you specify GP7V, only models that support distillation on GP7V resources are returned.', 'type' => 'string', 'required' => false, 'example' => 'GP7V', 'title' => ''], + ], + [ + 'name' => 'DeepThink', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether deep thinking is supported.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => ''], + ], + [ + 'name' => 'FunctionCall', + 'in' => 'query', + 'schema' => ['description' => 'Specifies whether FunctionCall is supported.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => ''], + ], + [ + 'name' => 'Tag', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => 'The list of labels.', + 'type' => 'array', + 'items' => [ + 'description' => 'The label.', + 'type' => 'object', + 'properties' => [ + 'Value' => ['description' => 'The label value.', 'type' => 'string', 'required' => false, 'example' => 'v1', 'title' => ''], + 'Key' => ['description' => 'The label key.', 'type' => 'string', 'required' => false, 'example' => 'k1', 'title' => ''], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + ], + [ + 'name' => 'Conditions', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'description' => 'The list of conditions.', + 'type' => 'array', + 'items' => [ + 'description' => 'The condition.', + 'type' => 'object', + 'properties' => [ + 'Column' => ['description' => 'The parameter name. ParameterSize is supported. Unit: M.', 'type' => 'string', 'required' => false, 'example' => 'ParameterSize', 'title' => ''], + 'Operator' => [ + 'description' => 'The operator. For example, LessThan.', + 'enumValueTitles' => ['LessThan' => 'LessThan', 'LessThanOrEqualTo' => 'LessThanOrEqualTo', 'GreaterThan' => 'GreaterThan', 'NotEqualTo' => 'NotEqualTo', 'EqualTo' => 'EqualTo', 'GreaterThanOrEqualTo' => 'GreaterThanOrEqualTo'], + 'type' => 'string', + 'required' => false, + 'example' => 'LessThan', + 'title' => '', + ], + 'Value' => ['description' => 'The value. If Column is set to ParameterSize, the value is an integer. Unit: M.', 'type' => 'string', 'required' => false, 'example' => '1024', 'title' => ''], + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'title' => '', + 'example' => '', + ], + ], + [ + 'name' => 'Query', + 'in' => 'query', + 'schema' => ['description' => 'The query condition. Supports fuzzy match across multiple fields such as ModelName, Domain, and Task.', 'type' => 'string', 'required' => false, 'example' => 'Qwen', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'B6B54325-C98C-5937-87A3-2F96C07652EC'], + 'TotalCount' => ['description' => 'The total number of models.', 'type' => 'string', 'example' => '15', 'title' => ''], + 'Models' => ['description' => 'The list of models.', '$ref' => '#/components/schemas/ModelGalleryModel', 'example' => '[{\'SupportResponseSchema\': False, \'ToolCall\': False, \'ModelType\': \'LLM\', \'SupportReasoning\': False, \'Model\': \'ds1\', \'SupportVision\': False, \'MaxModelLength\': 4096}]', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"B6B54325-C98C-5937-87A3-2F96C07652EC\\",\\n \\"TotalCount\\": \\"15\\",\\n \\"Models\\": {\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"ModelId\\": \\"\\",\\n \\"ModelName\\": \\"\\",\\n \\"ModelDescription\\": \\"\\",\\n \\"LatestVersionName\\": \\"\\",\\n \\"GmtLatestVersionModified\\": \\"\\",\\n \\"OrderNumber\\": 0,\\n \\"Origin\\": \\"\\",\\n \\"Domain\\": \\"\\",\\n \\"Task\\": \\"\\",\\n \\"ParameterSize\\": 0,\\n \\"ModelDoc\\": \\"\\",\\n \\"ModelType\\": \\"\\",\\n \\"Collection\\": \\"\\",\\n \\"SearchWords\\": \\"\\",\\n \\"ModelSeries\\": \\"\\",\\n \\"Demonstrable\\": true,\\n \\"Deployable\\": true,\\n \\"SupportedInferenceResources\\": \\"\\",\\n \\"Trainable\\": true,\\n \\"SupportedTrainingResources\\": \\"\\",\\n \\"Evaluable\\": true,\\n \\"SupportedEvaluationResources\\": \\"\\",\\n \\"Compressible\\": true,\\n \\"SupportedCompressionResources\\": \\"\\",\\n \\"Distillable\\": true,\\n \\"SupportedDistillationResources\\": \\"\\",\\n \\"Tags\\": {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n },\\n \\"DeepThink\\": true,\\n \\"FunctionCall\\": true,\\n \\"ExtraInfo\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"SupportedInferenceMethods\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"SupportedTrainingMethods\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"SupportedEvaluationMethods\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"SupportedCompressionMethods\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"SupportedDistillationMethods\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n}","type":"json"}]', + 'title' => 'Retrieve modelGallery model list', + 'changeSet' => [], + 'translator' => 'machine', + ], + ], + 'endpoints' => [ + ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'paimodelgallery.cn-shenzhen.aliyuncs.com', 'endpoint' => 'paimodelgallery.cn-shenzhen.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'cn-wulanchabu', 'regionName' => 'China (Ulanqab)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'paimodelgallery.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'paimodelgallery.cn-wulanchabu.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.cn-wulanchabu.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'paimodelgallery.cn-beijing.aliyuncs.com', 'endpoint' => 'paimodelgallery.cn-beijing.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'ap-northeast-2', 'regionName' => 'South Korea (Seoul)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'paimodelgallery.ap-northeast-2.aliyuncs.com', 'endpoint' => 'paimodelgallery.ap-northeast-2.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.ap-northeast-2.aliyuncs.com'], + ['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'paimodelgallery.ap-northeast-1.aliyuncs.com', 'endpoint' => 'paimodelgallery.ap-northeast-1.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.ap-northeast-1.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'paimodelgallery.cn-shanghai.aliyuncs.com', 'endpoint' => 'paimodelgallery.cn-shanghai.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-guangzhou', 'regionName' => 'China (Guangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'paimodelgallery.cn-guangzhou.aliyuncs.com', 'endpoint' => 'paimodelgallery.cn-guangzhou.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.cn-guangzhou.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'paimodelgallery.cn-hongkong.aliyuncs.com', 'endpoint' => 'paimodelgallery.cn-hongkong.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.cn-hongkong.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'paimodelgallery.ap-southeast-1.aliyuncs.com', 'endpoint' => 'paimodelgallery.ap-southeast-1.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-3', 'regionName' => 'Malaysia (Kuala Lumpur)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'paimodelgallery.ap-southeast-3.aliyuncs.com', 'endpoint' => 'paimodelgallery.ap-southeast-3.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.ap-southeast-3.aliyuncs.com'], + ['regionId' => 'ap-southeast-5', 'regionName' => 'Indonesia (Jakarta)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'paimodelgallery.ap-southeast-5.aliyuncs.com', 'endpoint' => 'paimodelgallery.ap-southeast-5.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.ap-southeast-5.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'paimodelgallery.cn-hangzhou.aliyuncs.com', 'endpoint' => 'paimodelgallery.cn-hangzhou.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'us-west-1', 'regionName' => 'US (Silicon Valley)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'paimodelgallery.us-west-1.aliyuncs.com', 'endpoint' => 'paimodelgallery.us-west-1.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.us-west-1.aliyuncs.com'], + ['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'paimodelgallery.us-east-1.aliyuncs.com', 'endpoint' => 'paimodelgallery.us-east-1.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.us-east-1.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'paimodelgallery.eu-central-1.aliyuncs.com', 'endpoint' => 'paimodelgallery.eu-central-1.aliyuncs.com', 'vpc' => 'paimodelgallery-vpc.eu-central-1.aliyuncs.com'], + ], + 'errorCodes' => [], + 'changeSet' => [], ]; |
