{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:aliyun-paimodelgallery/get-model-deployment-resources":{"get":{"operationId":"cloud_aliyun_paimodelgallery_get_model_deployment_resources","summary":"Retrieves the public resources specifications, dedicated resource groups, and quotas available for model…","description":"GET /api/v2/modelgallery/models/{ModelId}/deployment-resources","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://paimodelgallery.ap-southeast-1.aliyuncs.com","schema":{"type":"string","enum":["https://paimodelgallery.ap-northeast-1.aliyuncs.com","https://paimodelgallery.ap-northeast-2.aliyuncs.com","https://paimodelgallery.ap-southeast-1.aliyuncs.com","https://paimodelgallery.ap-southeast-3.aliyuncs.com","https://paimodelgallery.ap-southeast-5.aliyuncs.com","https://paimodelgallery.cn-beijing.aliyuncs.com","https://paimodelgallery.cn-guangzhou.aliyuncs.com","https://paimodelgallery.cn-hangzhou.aliyuncs.com","https://paimodelgallery.cn-hongkong.aliyuncs.com","https://paimodelgallery.cn-shanghai.aliyuncs.com","https://paimodelgallery.cn-shenzhen.aliyuncs.com","https://paimodelgallery.cn-wulanchabu.aliyuncs.com","https://paimodelgallery.eu-central-1.aliyuncs.com","https://paimodelgallery.us-east-1.aliyuncs.com","https://paimodelgallery.us-west-1.aliyuncs.com"],"default":"https://paimodelgallery.ap-southeast-1.aliyuncs.com","description":"Regional endpoint, for example https://paimodelgallery.ap-southeast-1.aliyuncs.com"}},{"name":"ModelId","in":"query","required":true,"description":"The ID of the model to deploy. This value must be the same as the one specified in the request when calling ListModelDeploymentProfiles to…","schema":{"type":"string","description":"The ID of the model to deploy. This value must be the same as the one specified in the request when calling ListModelDeploymentProfiles to…"}},{"name":"ModelVersion","in":"query","required":true,"description":"The model version. This value must be the same as the ModelVersion returned in the response when calling ListModelDeploymentProfiles to…","schema":{"type":"string","description":"The model version. This value must be the same as the ModelVersion returned in the response when calling ListModelDeploymentProfiles to…"},"example":"1.0.0"},{"name":"WorkspaceId","in":"query","required":true,"description":"The workspace ID. You can call the https://help.aliyun.com/document_detail/449124.html operation to obtain the ID","schema":{"type":"string","description":"The workspace ID. You can call the https://help.aliyun.com/document_detail/449124.html operation to obtain the ID"},"example":"295949"},{"name":"ProfileId","in":"query","required":true,"description":"The deployment profile ID","schema":{"type":"string","description":"The deployment profile ID"},"example":"prf_5cd37a1c7eaa***c6829dbb02"},{"name":"BizKey","in":"query","required":false,"description":"The business rule key. This value must be the same as the one specified in the request when calling ListModelDeploymentProfiles to…","schema":{"type":"string","description":"The business rule key. This value must be the same as the one specified in the request when calling ListModelDeploymentProfiles to…"},"example":"cmu-biz"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paimodelgallery/get-model-deployment-spec":{"get":{"operationId":"cloud_aliyun_paimodelgallery_get_model_deployment_spec","summary":"Retrieves the configuration file (EAS InferenceSpec) for model deployment","description":"GET /api/v2/modelgallery/models/{ModelId}/deployment-spec","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://paimodelgallery.ap-southeast-1.aliyuncs.com","schema":{"type":"string","enum":["https://paimodelgallery.ap-northeast-1.aliyuncs.com","https://paimodelgallery.ap-northeast-2.aliyuncs.com","https://paimodelgallery.ap-southeast-1.aliyuncs.com","https://paimodelgallery.ap-southeast-3.aliyuncs.com","https://paimodelgallery.ap-southeast-5.aliyuncs.com","https://paimodelgallery.cn-beijing.aliyuncs.com","https://paimodelgallery.cn-guangzhou.aliyuncs.com","https://paimodelgallery.cn-hangzhou.aliyuncs.com","https://paimodelgallery.cn-hongkong.aliyuncs.com","https://paimodelgallery.cn-shanghai.aliyuncs.com","https://paimodelgallery.cn-shenzhen.aliyuncs.com","https://paimodelgallery.cn-wulanchabu.aliyuncs.com","https://paimodelgallery.eu-central-1.aliyuncs.com","https://paimodelgallery.us-east-1.aliyuncs.com","https://paimodelgallery.us-west-1.aliyuncs.com"],"default":"https://paimodelgallery.ap-southeast-1.aliyuncs.com","description":"Regional endpoint, for example https://paimodelgallery.ap-southeast-1.aliyuncs.com"}},{"name":"ModelId","in":"query","required":true,"description":"The ID of the deployed model. This value must be the same as the ModelId specified in the request when you call…","schema":{"type":"string","description":"The ID of the deployed model. This value must be the same as the ModelId specified in the request when you call…"}},{"name":"ModelVersion","in":"query","required":true,"description":"The model version. This value must be the same as the ModelVersion returned in the response when you call ListModelDeploymentProfiles to…","schema":{"type":"string","description":"The model version. This value must be the same as the ModelVersion returned in the response when you call ListModelDeploymentProfiles to…"},"example":"1.0.0\n"},{"name":"WorkspaceId","in":"query","required":true,"description":"The workspace ID. You can call https://help.aliyun.com/document_detail/449124.html to obtain the ID","schema":{"type":"string","description":"The workspace ID. You can call https://help.aliyun.com/document_detail/449124.html to obtain the ID"},"example":"295949"},{"name":"ProfileId","in":"query","required":true,"description":"The deployment profile ID","schema":{"type":"string","description":"The deployment profile ID"},"example":"prf_5cd37a1c7eaa***c6829dbb02"},{"name":"BizKey","in":"query","required":false,"description":"The business rule key. This value must be the same as the BizKey specified in the request when you call ListModelDeploymentProfiles to…","schema":{"type":"string","description":"The business rule key. This value must be the same as the BizKey specified in the request when you call ListModelDeploymentProfiles to…"},"example":"cmu-biz"},{"name":"ResourceSelections","in":"query","required":false,"description":"A URL-encoded JSON array of ResourceSelection objects. If this parameter is omitted, the template resources are not overwritten. Field…","schema":{"type":"string","description":"A URL-encoded JSON array of ResourceSelection objects. If this parameter is omitted, the template resources are not overwritten. Field…"},"example":"%7B%22MemberType%22%3A%22Default%22%7D"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paimodelgallery/list-model-deployment-profiles":{"get":{"operationId":"cloud_aliyun_paimodelgallery_list_model_deployment_profiles","summary":"Queries the current deployable profiles for a specified model, including the inference framework, scenarios,…","description":"GET /api/v2/modelgallery/models/{ModelId}/deployment-profiles","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://paimodelgallery.ap-southeast-1.aliyuncs.com","schema":{"type":"string","enum":["https://paimodelgallery.ap-northeast-1.aliyuncs.com","https://paimodelgallery.ap-northeast-2.aliyuncs.com","https://paimodelgallery.ap-southeast-1.aliyuncs.com","https://paimodelgallery.ap-southeast-3.aliyuncs.com","https://paimodelgallery.ap-southeast-5.aliyuncs.com","https://paimodelgallery.cn-beijing.aliyuncs.com","https://paimodelgallery.cn-guangzhou.aliyuncs.com","https://paimodelgallery.cn-hangzhou.aliyuncs.com","https://paimodelgallery.cn-hongkong.aliyuncs.com","https://paimodelgallery.cn-shanghai.aliyuncs.com","https://paimodelgallery.cn-shenzhen.aliyuncs.com","https://paimodelgallery.cn-wulanchabu.aliyuncs.com","https://paimodelgallery.eu-central-1.aliyuncs.com","https://paimodelgallery.us-east-1.aliyuncs.com","https://paimodelgallery.us-west-1.aliyuncs.com"],"default":"https://paimodelgallery.ap-southeast-1.aliyuncs.com","description":"Regional endpoint, for example https://paimodelgallery.ap-southeast-1.aliyuncs.com"}},{"name":"ModelId","in":"query","required":true,"description":"The ID of the model to be deployed","schema":{"type":"string","description":"The ID of the model to be deployed"}},{"name":"ModelVersion","in":"query","required":false,"description":"The model version. If omitted, the latest deployable version in the model registry is used","schema":{"type":"string","description":"The model version. If omitted, the latest deployable version in the model registry is used"},"example":"1.0.0"},{"name":"BizKey","in":"query","required":false,"description":"The business rule key. Do not specify this parameter for standard ModelGallery. Specify cmu-biz for TokenWorks","schema":{"type":"string","description":"The business rule key. Do not specify this parameter for standard ModelGallery. Specify cmu-biz for TokenWorks"},"example":"cmu-biz"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paimodelgallery/list-model-gallery-models":{"get":{"operationId":"cloud_aliyun_paimodelgallery_list_model_gallery_models","summary":"Retrieves a list of models in Model Gallery","description":"GET /api/v2/modelgallery/models","tags":["cloud"],"parameters":[{"name":"endpoint","in":"query","required":false,"description":"Regional endpoint, for example https://paimodelgallery.ap-southeast-1.aliyuncs.com","schema":{"type":"string","enum":["https://paimodelgallery.ap-northeast-1.aliyuncs.com","https://paimodelgallery.ap-northeast-2.aliyuncs.com","https://paimodelgallery.ap-southeast-1.aliyuncs.com","https://paimodelgallery.ap-southeast-3.aliyuncs.com","https://paimodelgallery.ap-southeast-5.aliyuncs.com","https://paimodelgallery.cn-beijing.aliyuncs.com","https://paimodelgallery.cn-guangzhou.aliyuncs.com","https://paimodelgallery.cn-hangzhou.aliyuncs.com","https://paimodelgallery.cn-hongkong.aliyuncs.com","https://paimodelgallery.cn-shanghai.aliyuncs.com","https://paimodelgallery.cn-shenzhen.aliyuncs.com","https://paimodelgallery.cn-wulanchabu.aliyuncs.com","https://paimodelgallery.eu-central-1.aliyuncs.com","https://paimodelgallery.us-east-1.aliyuncs.com","https://paimodelgallery.us-west-1.aliyuncs.com"],"default":"https://paimodelgallery.ap-southeast-1.aliyuncs.com","description":"Regional endpoint, for example https://paimodelgallery.ap-southeast-1.aliyuncs.com"}},{"name":"PageNumber","in":"query","required":false,"description":"The page number of the model list. Pages start from 1. Default value: 1","schema":{"type":"integer","description":"The page number of the model list. Pages start from 1. Default value: 1"},"example":"1"},{"name":"PageSize","in":"query","required":false,"description":"The paging Settings for the number of models to return on each page in a paged query. Default value: 10","schema":{"type":"integer","description":"The paging Settings for the number of models to return on each page in a paged query. Default value: 10"},"example":"10"},{"name":"Order","in":"query","required":false,"description":"The sorting order of the specified field for paging in a paged query. Default value: ASC. Valid values: ASC: Ascending order. DESC:…","schema":{"type":"string","description":"The sorting order of the specified field for paging in a paged query. Default value: ASC. Valid values: ASC: Ascending order. DESC:…"},"example":"DESC"},{"name":"SortBy","in":"query","required":false,"description":"The field by which to sort the paged query results. The GmtCreateTime field is currently used for sorting. Valid values: GmtCreateTime:…","schema":{"type":"string","description":"The field by which to sort the paged query results. The GmtCreateTime field is currently used for sorting. Valid values: GmtCreateTime:…"},"example":"GmtCreateTime"},{"name":"ModelName","in":"query","required":false,"description":"The name of the model. By default, fuzzy match is used to retrieve the model list. To use exact match, enclose the name in double…","schema":{"type":"string","description":"The name of the model. By default, fuzzy match is used to retrieve the model list. To use exact match, enclose the name in double…"},"example":"Qwen3-235B-A22B-Thinking-2507"},{"name":"Domain","in":"query","required":false,"description":"The domain used to filter the model list. Examples: aigc, nlp, cv, audio, biomedical, and other","schema":{"type":"string","description":"The domain used to filter the model list. Examples: aigc, nlp, cv, audio, biomedical, and other"},"example":"aigc"},{"name":"Task","in":"query","required":false,"description":"The task. Examples: text-to-image-synthesis, large-language-model, multimodal-large-language-model, text-classification, embedding,…","schema":{"type":"string","description":"The task. Examples: text-to-image-synthesis, large-language-model, multimodal-large-language-model, text-classification, embedding,…"},"example":"large-language-model"},{"name":"Origin","in":"query","required":false,"description":"The model source used to filter the model list by community or organization. Examples: ModelScope, Custom, Civitai, Artlab, PAI, LiblibAI,…","schema":{"type":"string","description":"The model source used to filter the model list by community or organization. Examples: ModelScope, Custom, Civitai, Artlab, PAI, LiblibAI,…"},"example":"ModelScope"},{"name":"ModelType","in":"query","required":false,"description":"The model type. Valid values: LoRA, ComfyUIWorkFlow, Checkpoint, AI4DApp, AI4DTool, embeddings, and VAE","schema":{"type":"string","description":"The model type. Valid values: LoRA, ComfyUIWorkFlow, Checkpoint, AI4DApp, AI4DTool, embeddings, and VAE"},"example":"LoRA"},{"name":"Collections","in":"query","required":false,"description":"The collection to which the model belongs. The collection for Model Gallery models is QuickStart","schema":{"type":"string","description":"The collection to which the model belongs. The collection for Model Gallery models is QuickStart"},"example":"QuickStart"},{"name":"ModelSeries","in":"query","required":false,"description":"The model series. Valid values: PAI Optimized Model, Qwen, Wan-AI, GLM, Baichuan, DeepSeek, Kimi, MiniMax, Yi, InternLM, InternVL, OpenAI,…","schema":{"type":"string","description":"The model series. Valid values: PAI Optimized Model, Qwen, Wan-AI, GLM, Baichuan, DeepSeek, Kimi, MiniMax, Yi, InternLM, InternVL, OpenAI,…"},"example":"Qwen"},{"name":"Demonstrable","in":"query","required":false,"description":"Specifies whether online experience is supported","schema":{"type":"string","description":"Specifies whether online experience is supported"},"example":"true"},{"name":"Deployable","in":"query","required":false,"description":"Specifies whether deployment is supported","schema":{"type":"string","description":"Specifies whether deployment is supported"},"example":"true"},{"name":"SupportedInferenceResource","in":"query","required":false,"description":"The supported deployment resources, such as CPU, GPU, and GP7V. If you set this parameter to GP7V, the system filters models that support…","schema":{"type":"string","description":"The supported deployment resources, such as CPU, GPU, and GP7V. If you set this parameter to GP7V, the system filters models that support…"},"example":"GP7V"},{"name":"Trainable","in":"query","required":false,"description":"Specifies whether training is supported","schema":{"type":"string","description":"Specifies whether training is supported"},"example":"true"},{"name":"SupportedTrainingResource","in":"query","required":false,"description":"The supported training resources, such as CPU, GPU, and GP7V. If you set this parameter to GP7V, the system filters models that support…","schema":{"type":"string","description":"The supported training resources, such as CPU, GPU, and GP7V. If you set this parameter to GP7V, the system filters models that support…"},"example":"GP7V"},{"name":"Evaluable","in":"query","required":false,"description":"Specifies whether evaluation is supported","schema":{"type":"string","description":"Specifies whether evaluation is supported"},"example":"true"},{"name":"SupportedEvaluationResource","in":"query","required":false,"description":"The supported evaluation resources, such as CPU, GPU, and GP7V. If you set this parameter to GP7V, the system filters models that support…","schema":{"type":"string","description":"The supported evaluation resources, such as CPU, GPU, and GP7V. If you set this parameter to GP7V, the system filters models that support…"},"example":"GP7V"},{"name":"Compressible","in":"query","required":false,"description":"Specifies whether compression is supported","schema":{"type":"string","description":"Specifies whether compression is supported"},"example":"true"},{"name":"SupportedCompressionResource","in":"query","required":false,"description":"The supported compression resources, such as CPU, GPU, and GP7V. If you set this parameter to GP7V, the system filters models that support…","schema":{"type":"string","description":"The supported compression resources, such as CPU, GPU, and GP7V. If you set this parameter to GP7V, the system filters models that support…"},"example":"GP7V"},{"name":"Distillable","in":"query","required":false,"description":"Specifies whether distillation is supported","schema":{"type":"string","description":"Specifies whether distillation is supported"},"example":"true"},{"name":"SupportedDistillationResource","in":"query","required":false,"description":"The supported distillation resources, such as CPU, GPU, and GP7V. If you set this parameter to GP7V, the system filters models that…","schema":{"type":"string","description":"The supported distillation resources, such as CPU, GPU, and GP7V. If you set this parameter to GP7V, the system filters models that…"},"example":"GP7V"},{"name":"DeepThink","in":"query","required":false,"description":"Specifies whether deep thinking is supported","schema":{"type":"string","description":"Specifies whether deep thinking is supported"},"example":"true"},{"name":"FunctionCall","in":"query","required":false,"description":"Specifies whether function calling is supported","schema":{"type":"string","description":"Specifies whether function calling is supported"},"example":"true"},{"name":"Tag","in":"query","required":false,"description":"The list of tags (JSON-encoded)","schema":{"type":"string","description":"The list of tags (JSON-encoded)"}},{"name":"Conditions","in":"query","required":false,"description":"The list of conditions (JSON-encoded)","schema":{"type":"string","description":"The list of conditions (JSON-encoded)"}},{"name":"Query","in":"query","required":false,"description":"The query conditions. Fuzzy match is performed across multiple fields such as ModelName, Domain, and Task","schema":{"type":"string","description":"The query conditions. Fuzzy match is performed across multiple fields such as ModelName, Domain, and Task"},"example":"Qwen"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-paimodelgallery/version":{"post":{"operationId":"cloud_aliyun_paimodelgallery_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"endpoint":{"type":"string","enum":["https://paimodelgallery.ap-northeast-1.aliyuncs.com","https://paimodelgallery.ap-northeast-2.aliyuncs.com","https://paimodelgallery.ap-southeast-1.aliyuncs.com","https://paimodelgallery.ap-southeast-3.aliyuncs.com","https://paimodelgallery.ap-southeast-5.aliyuncs.com","https://paimodelgallery.cn-beijing.aliyuncs.com","https://paimodelgallery.cn-guangzhou.aliyuncs.com","https://paimodelgallery.cn-hangzhou.aliyuncs.com","https://paimodelgallery.cn-hongkong.aliyuncs.com","https://paimodelgallery.cn-shanghai.aliyuncs.com","https://paimodelgallery.cn-shenzhen.aliyuncs.com","https://paimodelgallery.cn-wulanchabu.aliyuncs.com","https://paimodelgallery.eu-central-1.aliyuncs.com","https://paimodelgallery.us-east-1.aliyuncs.com","https://paimodelgallery.us-west-1.aliyuncs.com"],"default":"https://paimodelgallery.ap-southeast-1.aliyuncs.com","description":"Regional endpoint, for example https://paimodelgallery.ap-southeast-1.aliyuncs.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}