Microsoft Azure Model API

The Model API from Microsoft Azure, for model.

GitHub OpenAPI
Business capability
Artificial Intelligence Management BC-610.60

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/models/{id} Get a registered machine learning model · Microsoft Azure Gets A Model #
Ask an LLM
“What framework and version is a registered model in my Azure Machine Learning workspace?”
“Can I look up a registered ML model by its id?”
Tell an agent
Get registered model {id} from workspace {workspace} in resource group {resourceGroup}, subscription {subscriptionId}.
Show the details of ML model {id} in workspace {workspace}.
DELETE /modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/models/{id} Delete a registered machine learning model · Microsoft Azure Delete The Specified Model #
Ask an LLM
“How do I remove a model from my Azure Machine Learning model registry?”
“Does deleting a registered model fail if it has already been removed?”
Tell an agent destructive · confirm first
Delete registered model {id} from workspace {workspace} in resource group {resourceGroup}, subscription {subscriptionId}.
Unregister ML model {id} in workspace {workspace}.
PATCH /modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/models/{id} Patch a registered machine learning model · Microsoft Azure Patch A Specific Model #
Ask an LLM
“Can I change the description or tags of a model I already registered?”
“How do I apply a patch to an existing registered ML model?”
Tell an agent
Patch registered model {id} in workspace {workspace}, resource group {resourceGroup}, subscription {subscriptionId}.
Apply my changes to the existing ML model {id} in workspace {workspace}.
GET /modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/models Search registered models in an ML workspace · Microsoft Azure Query The List Of Models In A Workspace #
Ask an LLM
“Which models are registered in my Azure Machine Learning workspace?”
“Can I find registered models by name, framework or tag?”
Tell an agent
List registered models named {name} in workspace {workspace}, resource group {resourceGroup}, subscription {subscriptionId}.
Find models built with framework {framework} in workspace {workspace}.
POST /modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/models Register a machine learning model · Microsoft Azure Register A Model #
Ask an LLM
“How do I register a trained model file in my Azure Machine Learning workspace?”
“What do I need to supply besides the model URL and MIME type when registering?”
Tell an agent
Register model {name} from {url} with MIME type {mimeType} in workspace {workspace}, resource group {resourceGroup}, subscription {subscriptionId}.
Register {name} ({mimeType}) at {url} in workspace {workspace} as framework {framework}.
GET /modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/models/{id}/metrics Get operational metrics for a registered model · Microsoft Azure Retrieve The Metrics For A Model #
Ask an LLM
“What operational events have been collected for one of my registered models?”
“Can I pull model metrics for a specific date range?”
Tell an agent
Get metrics for model {id} in workspace {workspace}, resource group {resourceGroup}, subscription {subscriptionId}.
Show operational events for ML model {id} in {workspace} between {startDate} and {endDate}.
GET /modelrecipes List recipes for building custom voice models · Microsoft Azure Get Modelrecipes #
Ask an LLM
“Which recipes can I use to train a custom neural voice model?”
“Does any voice model recipe support multi-style voices?”
Tell an agent
List the supported custom voice model recipes for API version {api_version}.
Show which voice training recipes are available.
GET /models List custom voice models · Microsoft Azure Get Models #
Ask an LLM
“Which custom voice models exist on my Speech resource?”
“Can I filter my voice models by project or locale and page through them?”
Tell an agent
List the custom voice models on my Speech resource.
List voice models matching {filter}, skipping the first {skip}.
GET /models/{id} Get a custom voice model · Microsoft Azure Get Models Id #
Ask an LLM
“How do I check whether my custom voice model has finished training?”
“What recipe and training set was a particular voice model built from?”
Tell an agent
Get custom voice model {id}.
Show the training status of voice model {id}.
DELETE /models/{id} Delete a custom voice model · Microsoft Azure Delete Models Id #
Ask an LLM
“How do I get rid of a custom voice model I no longer need?”
“Can I permanently remove a trained voice model from my Speech resource?”
Tell an agent destructive · confirm first
Delete custom voice model {id}.
Remove trained voice model {id} from my Speech resource.
PUT /models/{id} Train a new custom voice model · Microsoft Azure Put Models Id #
Ask an LLM
“How do I train a custom neural voice from my training set and talent consent?”
“Which recipe, project and consent do I need to build a voice model?”
Tell an agent
Create voice model {id} in project {project} from training set {trainingSet} with consent {consent} using recipe {recipe}.
Train custom voice {voiceName} as model {id} for locale {locale}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-model-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-model-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '2019-09-30'
  title: Microsoft Azure Azure Machine Learning Management Service…
  description: These APIs allow end users to manage Azure Machine Learning Models, Images, Profiles, and Services.
security:
- azure_auth:
  - user_impersonation
tags:
- name: Model
paths:
  ? /modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/models/{id}
  : get:
      tags:
      - Model
      summary: Microsoft Azure Gets A Model
      description: Gets a model by model id.
      operationId: microsoftAzureMlmodelsQuerybyid
      parameters:
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/resourceGroupParameter'
      - $ref: '#/components/parameters/workspaceParameter'
      - name: id
        in: path
        description: The model id.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelErrorResponse'
    delete:
      tags:
      - Model
      summary: Microsoft Azure Delete The Specified Model
      description: Deletes a model if it exists.
      operationId: microsoftAzureMlmodelsDelete
      parameters:
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/resourceGroupParameter'
      - $ref: '#/components/parameters/workspaceParameter'
      - name: id
        in: path
        description: The model id.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The resource exists and was deleted successfully.
        '204':
          description: The resource does not exist and the request was well formed.
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelErrorResponse'
    patch:
      tags:
      - Model
      summary: Microsoft Azure Patch A Specific Model
      description: Updates an existing model with the specified patch.
      operationId: microsoftAzureMlmodelsPatch
      parameters:
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/resourceGroupParameter'
      - $ref: '#/components/parameters/workspaceParameter'
      - name: id
        in: path
        description: The model id.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelErrorResponse'
      requestBody:
        content:
          application/json-patch+json:
            schema:
              uniqueItems: false
              type: array
              items:
                $ref: '#/components/schemas/JsonPatchOperation'
        description: The payload that is used to patch the model.
        required: true
  ? /modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/models
  : get:
      tags:
      - Model
      summary: Microsoft Azure Query The List Of Models In A Workspace
      description: The result list can be filtered using tag and name. If no filter is passed, the query lists all the Models in the given workspace. The returned list is paginated and the count of items in each page is an optional parameter.
      operationId: microsoftAzureMlmodelsListquery
      parameters:
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/resourceGroupParameter'
      - $ref: '#/components/parameters/workspaceParameter'
      - name: name
        in: query
        description: The object name.
        required: false
        schema:
          type: string
      - name: framework
        in: query
        description: The framework.
        required: false
        schema:
          type: string
      - name: description
        in: query
        description: The object description.
        required: false
        schema:
          type: string
      - name: count
        in: query
        description: The number of items to retrieve in a page.
        required: false
        schema:
          type: integer
          format: int32
      - name: $skipToken
        in: query
        description: The continuation token to retrieve the next page.
        required: false
        schema:
          type: string
      - name: tags
        in: query
        description: "A set of tags with which to filter the returned models.\n            It is a comma separated string of tags key or tags key=value\n            Example: tagKey1,tagKey2,tagKey3=value3"
        required: false
        schema:
          type: string
      - name: properties
        in: query
        description: "A set of properties with which to filter the returned models.\n            It is a comma separated string of properties key and/or properties key=value\n            Example: propKey1,propKey2,propKey3=value3"
        required: false
        schema:
          type: string
      - name: runId
        in: query
        description: The runId which created the model.
        required: false
        schema:
          type: string
      - name: orderBy
        in: query
        description: An option to specify how the models are ordered in the response.
        required: false
        schema:
          type: string
          enum:
          - CreatedAtDesc
          - CreatedAtAsc
          - UpdatedAtDesc
          - UpdatedAtAsc
          default: CreatedAtDesc
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedModelList'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
    post:
      tags:
      - Model
      summary: Microsoft Azure Register A Model
      description: Register the model provided.
      operationId: microsoftAzureMlmodelsRegister
      parameters:
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/resourceGroupParameter'
      - $ref: '#/components/parameters/workspaceParameter'
      responses:
        '200':
          description: The model registration was successful.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Model'
        description: The payload that is used to register the model.
        required: true
  ? /modelmanagement/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.MachineLearningServices/workspaces/{workspace}/models/{id}/metrics
  : get:
      tags:
      - Model
      summary: Microsoft Azure Retrieve The Metrics For A Model
      description: The operational events collected for the Model are returned.
      operationId: microsoftAzureMlmodelsGetmetrics
      parameters:
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/resourceGroupParameter'
      - $ref: '#/components/parameters/workspaceParameter'
      - name: id
        in: path
        description: The Model Id.
        required: true
        schema:
          type: string
      - name: startDate
        in: query
        description: The start date from which to retrieve metrics, ISO 8601 literal format.
        required: false
        schema:
          type: string
      - name: endDate
        in: query
        description: The end date from which to retrieve metrics, ISO 8601 literal format.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelOperationalState'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelErrorResponse'
  /modelrecipes:
    get:
      tags:
      - Model
      description: Get a list of supported recipes for model building. Different recipes have different capabilities such as support for multi-style voice models.
      operationId: microsoftAzureModelsListrecipes
      parameters:
      - $ref: '#/components/parameters/QueryApiVersion'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Recipe'
        default:
          description: An error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Get all recipes:
          $ref: ./examples/get_recipes.json
      summary: Microsoft Azure Get Modelrecipes
  /models:
    get:
      tags:
      - Model
      description: Gets the list of models for the authenticated Speech service resource.
      operationId: microsoftAzureModelsList
      parameters:
      - $ref: '#/components/parameters/QuerySkip'
      - $ref: '#/components/parameters/QueryMaxPageSize'
      - $ref: '#/components/parameters/QueryFilter'
      - $ref: '#/components/parameters/QueryApiVersion'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedModels'
        default:
          description: An error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
        itemName: value
      x-ms-examples:
        Get all models:
          $ref: ./examples/get_models.json
      summary: Microsoft Azure Get Models
  /models/{id}:
    get:
      tags:
      - Model
      description: Gets the model identified by the given ID.
      operationId: microsoftAzureModelsGet
      parameters:
      - $ref: '#/components/parameters/PathId'
      - $ref: '#/components/parameters/QueryApiVersion'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model'
        default:
          description: An error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Get a model:
          $ref: ./examples/get_model.json
      summary: Microsoft Azure Get Models Id
    delete:
      tags:
      - Model
      description: Deletes the model identified by the given ID.
      operationId: microsoftAzureModelsDelete
      parameters:
      - $ref: '#/components/parameters/PathId'
      - $ref: '#/components/parameters/QueryApiVersion'
      responses:
        '204':
          description: No Content
        default:
          description: An error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        Delete a model:
          $ref: ./examples/delete_model.json
      summary: Microsoft Azure Delete Models Id
    put:
      tags:
      - Model
      description: Creates a new voice model.
      operationId: microsoftAzureModelsCreate
      parameters:
      - $ref: '#/components/parameters/HeaderOperationId'
      - $ref: '#/components/parameters/PathId'
      - $ref: '#/components/parameters/QueryApiVersion'
      responses:
        '201':
          description: Created
          headers:
            Operation-Id:
              description: ID of the operation.
              schema:
                type: string
            Operation-Location:
              description: The location of the operation job. Use this URL to monitor operation status.
              schema:
                type: string
                format: uri
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Model'
        default:
          description: An error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation: true
      x-ms-examples:
        Create a model:
          $ref: ./examples/create_model.json
        Create a multi style model:
          $ref: ./examples/create_multi_style_model.json
      summary: Microsoft Azure Put Models Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Model'
        description: Model definition
        required: true
components:
  schemas:
    DeploymentSummary:
      description: The deployment summary.
      type: object
      properties:
        successfulDeployments:
          format: int32
          description: The number of successful deployments.
          type: integer
        unsuccessfulDeployments:
          format: int32
          description: The number of unsuccessful deployments.
          type: integer
    DatasetReference:
      description: The dataset reference object.
      type: object
      properties:
        name:
          description: The name of the dataset reference.
          type: string
        id:
          description: The id of the dataset reference.
          type: string
    ModelOperationalState:
      description: The operational state of the Model.
      type: object
      properties:
        deploymentSummary:
          $ref: '#/components/schemas/DeploymentSummary'
          description: The summary of the deployment.
        endTime:
          description: The deployment end time.
          type: string
        startTime:
          description: The deployment start time.
          type: string
    PaginatedModelList:
      description: A paginated list of Models.
      type: object
      properties:
        value:
          description: An array of objects of type Model.
          uniqueItems: false
          type: array
          items:
            $ref: '#/components/schemas/Model'
        nextLink:
          description: A continuation link (absolute URI) to the next page of results in the list.
          type: string
    JsonPatchOperation:
      description: The Json Patch definition.
      type: object
      properties:
        value:
          description: The value.
          type: object
        path:
          description: The target location.
          type: string
        op:
          description: The operation.
          type: string
        from:
          description: The source location.
          type: string
    ModelErrorResponse:
      description: The Model Management Service Error object.
      type: object
      properties:
        code:
          description: The error code.
          type: string
        statusCode:
          format: int32
          description: The HTTP status code.
          type: integer
        message:
          description: The error message.
          type: string
        details:
          description: An array of error detail objects.
          uniqueItems: false
          type: array
          items:
            $ref: '#/components/schemas/ErrorDetails'
    ErrorDetails:
      description: The error details.
      type: object
      properties:
        code:
          description: The error code.
          type: string
        message:
          description: The error message.
          type: string
        target:
          description: The target of the error (e.g., the name of the property in error).
          type: string
    Model:
      description: An Azure Machine Learning Model.
      required:
      - name
      - url
      - mimeType
      type: object
      properties:
        id:
          description: The Model Id.
          type: string
          example: sklearn_mnist:1
        name:
          description: The Model name.
          type: string
          example: sklearn_mnist
        framework:
          description: The Model framework.
          type: string
        frameworkVersion:
          description: The Model framework version.
          type: string
        version:
          format: int64
          description: The Model version assigned by Model Management Service.
          type: integer
          example: '1'
        datasets:
          description: The list of datasets associated with the model.
          uniqueItems: false
          type: array
          items:
            $ref: '#/components/schemas/DatasetReference'
        url:
          description: The URL of the Model. Usually a SAS URL.
          type: string
        mimeType:
          description: The MIME type of Model content. For more details about MIME type, please open https://www.iana.org/assignments/media-types/media-types.xhtml
          type: string
        description:
          description: The Model description text.
          type: string
          example: A mnist model, first version.
        createdTime:
          format: date-time
          description: The Model creation time (UTC).
          type: string
          readOnly: true
        modifiedTime:
          format: date-time
          description: The Model last modified time (UTC).
          type: string
          readOnly: true
        unpack:
          description: Indicates whether we need to unpack the Model during docker Image creation.
          type: boolean
        parentModelId:
          description: The Parent Model Id.
          type: string
          example: sklearn_mnist_root:1
        runId:
          description: The RunId that created this model.
          type: string
        experimentName:
          description: The name of the experiment where this model was created.
          type: string
        kvTags:
          description: The Model tag dictionary. Items are mutable.
          type: object
          additionalProperties:
            type: string
        properties:
          description: The Model property dictionary. Properties are immutable.
          type: object
          additionalProperties:
            type: string
    ModelFailureReason:
      description: Model training failure reason
      enum:
      - None
      - InaccessibleCustomerStorage
      - SpeakerVerificationFailed
      - TerminateByUser
      - Internal
      type: string
      x-ms-enum:
        name: ModelFailureReason
        modelAsString: true
    InnerError:
      description: Inner error follows Microsoft Azure REST API Guidelines which is available at https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors. This contains required properties error code, message and optional properties target, inner error(this can be nested).
      type: object
      properties:
        code:
          description: Detailed error code to help diagnostic.
          type: string
        target:
          description: The source of the error. For example it would be "model" or "model id" in case of invalid model.
          type: string
        message:
          description: Detailed error message.
          type: string
        innererror:
          $ref: '#/components/schemas/InnerError'
    ModelProperties:
      description: Model properties
      type: object
      properties:
        presetStyles:
          description: Preset styles of this model.
          type: array
          items:
            type: string
        styleTrainingSetIds:
          description: Customized styles and associated training sets.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ResourceId'
        voiceStyles:
          description: All styles supported by this model.
          type: array
          items:
            type: string
          readOnly: true
        failureReason:
          $ref: '#/components/schemas/ModelFailureReason'
    ErrorResponse:
      description: Error response follows Microsoft Azure REST API Guidelines which is available at https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors.
      required:
      - error
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
    Error:
      description: Top-level error follows Microsoft Azure REST API Guidelines which is available at https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors. This contains an top-level error with error code, message, details, target and an inner error with more descriptive details.
      required:
      - code
      - message
      type: object
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        target:
          description: The source of the error. For example it would be "model" or "model id" in case of invalid model.
          type: string
        message:
          description: Top-level error message.
          type: string
        details:
          description: Additional supportive details regarding the error and/or expected policies.
          type: array
          items:
            $ref: '#/components/schemas/Error'
        innererror:
          $ref: '#/components/schemas/InnerError'
    Status:
      description: Status of a resource.
      enum:
      - NotStarted
      - Running
      - Succeeded
      - Failed
      - Disabling
      - Disabled
      type: string
      x-ms-enum:
        name: Status
        modelAsString: true
    PresetStyleItem:
      description: Preset styles supported by the recipe. The voice model can support these styles without any style training set.
      type: object
      properties:
        male:
          description: Preset styles supported on male voice model.
          type: array
          items:
            type: string
        female:
          description: Preset styles supported on female voice model.
          type: array
          items:
            type: string
    PaginatedModels:
      description: Paginated model list
      required:
      - value
      type: object
      properties:
        value:
          description: Model list
          type: array
          items:
            $ref: '#/components/schemas/Model'
        nextLink:
          description: Link to next page.
          format: uri
          type: string
    ErrorCode:
      description: Top-level error code
      enum:
      - BadRequest
      - BadArgument
      - Unauthorized
      - Forbidden
      - NotFound
      - UnsupportedMediaType
      - TooManyRequests
      - InternalServerError
      - ServiceUnavailable
      type: string
      x-ms-enum:
        name: ErrorCode
        modelAsString: true
    ResourceId:
      description: Resource id
      type: string
      pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
      minLength: 3
      maxLength: 64
    Recipe:
      description: Recipe for model building. Different recipes have different capability.
      type: object
      properties:
        kind:
          description: Recipe kind
          type: string
        version:
          description: Recipe version
          type: string
        description:
          description: Recipe description
          type: string
          readOnly: true
        minUtteranceCount:
          description: Minimum utterance count required to train a voice model with this recipe.
          format: int32
          type: integer
          readOnly: true
        minStyleUtteranceCount:
          description: Minimum utterance count required to train each customized style.
          format: int32
          type: integer
          readOnly: true
        maxCustomStyleNum:
          description: Maximum customized style number supported in one voice model.
          format: int32
          type: integer
          readOnly: true
        datasetLocales:
          description: The locale of the training dataset. Locale code follows BCP-47. You can find the text to speech locale list here https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts.
          type: array
          items:
            type: string
            example: en-US
          readOnly: true
        modelLocales:
          description: The locale that a voice model can speak with this recipe. Locale code follows BCP-47. You can find the text to speech locale list here https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts.
          type: array
          items:
            type: string
            example: en-US
          readOnly: true
        presetStyles:
          description: Preset styles supported by this recipe per locale. You can get these styles without any style training set.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/PresetStyleItem'
          readOnly: true
  parameters:
    workspaceParameter:
      name: workspace
      in: path
      description: The name of the workspace.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    subscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The Azure Subscription ID.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        format: uuid
    resourceGroupParameter:
      name: resourceGroup
      in: path
      description: The Name of the resource group in which the workspace is located.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    QueryApiVersion:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      x-ms-parameter-location: method
      x-ms-client-name: apiVersion
      schema:
        type: string
        minLength: 1
    HeaderOperationId:
      name: Operation-Id
      in: header
      description: ID of the status monitor for the operation. If the Operation-Id header matches an existing operation and the request is not identical to the prior request, it will fail with a 400 Bad Request.
      required: false
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 64
        minLength: 3
        pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
    QueryMaxPageSize:
      name: maxpagesize
      in: query
      description: The maximum number of items to include in a single response.
      required: false
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
        default: 100
    QueryFilter:
      name: filter
      in: query
      description: "Filter condition.\n  - **Supported properties:** projectId, createdDateTime, locale, kind\n  - **Operators:**\n    - eq, ne are supported for all properties.\n    - gt, ge, lt, le are supported for createdDateTime.\n  - **Example:**\n    - ```filter=projectId eq 'Jessica'``` (filter by project ID)\n    - ```filter=kind eq 'ProfessionalVoice'``` (filter project by kind)\n    - ```filter=locale eq 'en-US'``` (filter training set and model by locale)\n    - ```filter=createdDateTime gt 2022-12-30T23:59:59.99Z``` (filter resource created time after 2023-11-01)"
      required: false
      x-ms-parameter-location: method
      schema:
        type: string
    QuerySkip:
      name: skip
      in: query
      description: The number of result items to skip.
      required: false
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
        default: 0
    PathId:
      name: id
      in: path
      description: The ID of the resource.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 64
        minLength: 3
        pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
    subscription_key:
      type: apiKey
      name: Ocp-Apim-Subscription-Key
      in: header
      description: Provide your Speech resource key here.
    AADToken:
      type: oauth2
      flows:
        implicit:
          scopes:
            https://cognitiveservices.azure.com/.default: https://cognitiveservices.azure.com/.default
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: These are the [Microsoft identity platform](entra/identity-platform/v2-overview) flows.