Microsoft Azure Predictions API

The PredictionsApi API from Microsoft Azure, for predictionsapi.

GitHub OpenAPI
Business capability
Vision AE-110.50

Operations 4

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

DELETE /projects/{projectId}/predictions Delete stored prediction images · Microsoft Azure Delete A Set Of Predicted Images And Their Associated… #
Ask an LLM
“How do I delete predicted images and their results from a Custom Vision project?”
“Can I clear out specific stored predictions by id?”
Tell an agent destructive · confirm first
Delete predictions {ids} from project {projectId}.
Remove the stored prediction images {ids} and their results in project {projectId}.
POST /projects/{projectId}/predictions/query Query images sent to the prediction endpoint · Microsoft Azure Get Images That Were Sent To Your Prediction Endpoint #
Ask an LLM
“Which images were sent to my Custom Vision prediction endpoint?”
“Can I filter stored predictions by iteration, tag or time range?”
Tell an agent
Show images sent to the prediction endpoint for project {projectId}.
Query predictions in project {projectId} for iteration {iterationId} between {startTime} and {endTime}.
POST /projects/{projectId}/quicktest/image Quick test an uploaded image · Microsoft Azure Quick Test An Image #
Ask an LLM
“How do I quickly test my trained model against an image file I upload?”
“Can I quick test an image without storing the result?”
Tell an agent
Upload image file {imageData} and quick test it against project {projectId}.
Quick test image file {imageData} on iteration {iterationId} of project {projectId}.
POST /projects/{projectId}/quicktest/url Quick test an image by URL · Microsoft Azure Quick Test An Image Url #
Ask an LLM
“Can I test my Custom Vision model with an image hosted at a URL?”
“How do I try a specific iteration against a remote image link?”
Tell an agent
Quick test the image at {url} against project {projectId}.
Quick test image URL {url} on iteration {iterationId} of project {projectId}.

Specifications

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-predictionsapi-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-predictionsapi-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '3.3'
  title: Microsoft Azure Custom Vision Training Client Predictions…
servers:
- url: https://southcentralus.api.cognitive.microsoft.com/customvision/v3.3/training
security:
- apim_key: []
tags:
- name: PredictionsApi
paths:
  /projects/{projectId}/predictions:
    delete:
      tags:
      - PredictionsApi
      summary: Microsoft Azure Delete A Set Of Predicted Images And Their Associated…
      operationId: microsoftAzureDeleteprediction
      parameters:
      - name: projectId
        in: path
        description: The project id.
        required: true
        schema:
          type: string
          format: uuid
      - name: ids
        in: query
        description: The prediction ids. Limited to 64.
        required: true
        style: form
        explode: false
        schema:
          type: array
          items:
            type: string
            format: uuid
          maxItems: 64
          minItems: 0
      responses:
        '204':
          description: No Content
        default:
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomVisionError'
      x-ms-examples:
        Successful DeletePrediction request:
          $ref: ./examples/DeletePrediction.json
      description: Needs a more full description created.
  /projects/{projectId}/predictions/query:
    post:
      tags:
      - PredictionsApi
      summary: Microsoft Azure Get Images That Were Sent To Your Prediction Endpoint
      operationId: microsoftAzureQuerypredictions
      parameters:
      - name: projectId
        in: path
        description: The project id.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PredictionQueryResult'
            application/xml:
              schema:
                $ref: '#/components/schemas/PredictionQueryResult'
            text/xml:
              schema:
                $ref: '#/components/schemas/PredictionQueryResult'
        default:
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomVisionError'
            application/xml:
              schema:
                $ref: '#/components/schemas/CustomVisionError'
            text/xml:
              schema:
                $ref: '#/components/schemas/CustomVisionError'
      x-ms-examples:
        Successful QueryPredictions request:
          $ref: ./examples/QueryPredictions.json
      description: Needs a more full description created.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PredictionQueryToken'
          application/xml:
            schema:
              $ref: '#/components/schemas/PredictionQueryToken'
          text/xml:
            schema:
              $ref: '#/components/schemas/PredictionQueryToken'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PredictionQueryToken'
        description: Parameters used to query the predictions. Limited to combining 2 tags.
        required: true
  /projects/{projectId}/quicktest/image:
    post:
      tags:
      - PredictionsApi
      summary: Microsoft Azure Quick Test An Image
      operationId: microsoftAzureQuicktestimage
      parameters:
      - name: projectId
        in: path
        description: The project id.
        required: true
        schema:
          type: string
          format: uuid
      - name: iterationId
        in: query
        description: "Optional. Specifies the id of a particular iteration to evaluate against.\n            The default iteration for the project will be used when not specified."
        required: false
        schema:
          type: string
          format: uuid
      - name: store
        in: query
        description: Optional. Specifies whether or not to store the result of this prediction. The default is true, to store.
        required: false
        schema:
          type: boolean
          default: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImagePrediction'
            application/xml:
              schema:
                $ref: '#/components/schemas/ImagePrediction'
            text/xml:
              schema:
                $ref: '#/components/schemas/ImagePrediction'
        default:
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomVisionError'
            application/xml:
              schema:
                $ref: '#/components/schemas/CustomVisionError'
            text/xml:
              schema:
                $ref: '#/components/schemas/CustomVisionError'
      x-ms-examples:
        Successful QuickTestImage request:
          $ref: ./examples/QuickTestImage.json
      description: Needs a more full description created.
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                imageData:
                  type: string
                  description: Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB.
                  format: binary
              required:
              - imageData
          application/octet-stream:
            schema:
              type: object
              properties:
                imageData:
                  type: string
                  description: Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB.
                  format: binary
              required:
              - imageData
  /projects/{projectId}/quicktest/url:
    post:
      tags:
      - PredictionsApi
      summary: Microsoft Azure Quick Test An Image Url
      operationId: microsoftAzureQuicktestimageurl
      parameters:
      - name: projectId
        in: path
        description: The project to evaluate against.
        required: true
        schema:
          type: string
          format: uuid
      - name: iterationId
        in: query
        description: "Optional. Specifies the id of a particular iteration to evaluate against.\n            The default iteration for the project will be used when not specified."
        required: false
        schema:
          type: string
          format: uuid
      - name: store
        in: query
        description: Optional. Specifies whether or not to store the result of this prediction. The default is true, to store.
        required: false
        schema:
          type: boolean
          default: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImagePrediction'
            application/xml:
              schema:
                $ref: '#/components/schemas/ImagePrediction'
            text/xml:
              schema:
                $ref: '#/components/schemas/ImagePrediction'
        default:
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomVisionError'
            application/xml:
              schema:
                $ref: '#/components/schemas/CustomVisionError'
            text/xml:
              schema:
                $ref: '#/components/schemas/CustomVisionError'
      x-ms-examples:
        Successful QuickTestImageUrl request:
          $ref: ./examples/QuickTestImageUrl.json
      description: Needs a more full description created.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageUrl'
          application/xml:
            schema:
              $ref: '#/components/schemas/ImageUrl'
          text/xml:
            schema:
              $ref: '#/components/schemas/ImageUrl'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ImageUrl'
        description: An ImageUrl that contains the url of the image to be evaluated.
        required: true
components:
  schemas:
    StoredImagePrediction:
      description: Result of an image prediction request.
      type: object
      properties:
        resizedImageUri:
          description: The URI to the (resized) prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.
          type: string
          readOnly: true
        thumbnailUri:
          description: The URI to the thumbnail of the original prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.
          type: string
          readOnly: true
        originalImageUri:
          description: The URI to the original prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource.
          type: string
          readOnly: true
        domain:
          format: uuid
          description: Domain used for the prediction.
          type: string
          readOnly: true
        id:
          format: uuid
          description: Prediction Id.
          type: string
          readOnly: true
        project:
          format: uuid
          description: Project Id.
          type: string
          readOnly: true
        iteration:
          format: uuid
          description: Iteration Id.
          type: string
          readOnly: true
        created:
          format: date-time
          description: Date this prediction was created.
          type: string
          readOnly: true
        predictions:
          description: List of predictions.
          type: array
          items:
            $ref: '#/components/schemas/Prediction'
          readOnly: true
    PredictionQueryToken:
      type: object
      properties:
        session:
          type: string
          readOnly: false
        continuation:
          type: string
          readOnly: false
        maxCount:
          format: int32
          type: integer
          readOnly: false
        orderBy:
          enum:
          - Newest
          - Oldest
          - Suggested
          type: string
          readOnly: false
          x-ms-enum:
            name: OrderBy
            modelAsString: true
        tags:
          type: array
          items:
            $ref: '#/components/schemas/PredictionQueryTag'
          readOnly: false
        iterationId:
          format: uuid
          type:
          - string
          - 'null'
          readOnly: false
        startTime:
          format: date-time
          type:
          - string
          - 'null'
          readOnly: false
        endTime:
          format: date-time
          type:
          - string
          - 'null'
          readOnly: false
        application:
          type: string
          readOnly: false
    PredictionQueryTag:
      type: object
      properties:
        id:
          format: uuid
          type: string
          readOnly: false
        minThreshold:
          format: float
          type: number
          readOnly: false
        maxThreshold:
          format: float
          type: number
          readOnly: false
    BoundingBox:
      description: Bounding box that defines a region of an image.
      required:
      - left
      - top
      - width
      - height
      type: object
      properties:
        left:
          format: float
          description: Coordinate of the left boundary.
          type: number
          readOnly: false
        top:
          format: float
          description: Coordinate of the top boundary.
          type: number
          readOnly: false
        width:
          format: float
          description: Width.
          type: number
          readOnly: false
        height:
          format: float
          description: Height.
          type: number
          readOnly: false
    CustomVisionError:
      required:
      - code
      - message
      type: object
      properties:
        code:
          description: The error code.
          enum:
          - NoError
          - BadRequest
          - BadRequestExceededBatchSize
          - BadRequestNotSupported
          - BadRequestInvalidIds
          - BadRequestProjectName
          - BadRequestProjectNameNotUnique
          - BadRequestProjectDescription
          - BadRequestProjectUnknownDomain
          - BadRequestProjectUnknownClassification
          - BadRequestProjectUnsupportedDomainTypeChange
          - BadRequestProjectUnsupportedExportPlatform
          - BadRequestProjectImagePreprocessingSettings
          - BadRequestProjectDuplicated
          - BadRequestIterationName
          - BadRequestIterationNameNotUnique
          - BadRequestIterationDescription
          - BadRequestIterationIsNotTrained
          - BadRequestIterationValidationFailed
          - BadRequestWorkspaceCannotBeModified
          - BadRequestWorkspaceNotDeletable
          - BadRequestTagName
          - BadRequestTagNameNotUnique
          - BadRequestTagDescription
          - BadRequestTagType
          - BadRequestMultipleNegativeTag
          - BadRequestMultipleGeneralProductTag
          - BadRequestImageTags
          - BadRequestImageRegions
          - BadRequestNegativeAndRegularTagOnSameImage
          - BadRequestUnsupportedDomain
          - BadRequestRequiredParamIsNull
          - BadRequestIterationIsPublished
          - BadRequestInvalidPublishName
          - BadRequestInvalidPublishTarget
          - BadRequestUnpublishFailed
          - BadRequestIterationNotPublished
          - BadRequestSubscriptionApi
          - BadRequestExceedProjectLimit
          - BadRequestExceedIterationPerProjectLimit
          - BadRequestExceedTagPerProjectLimit
          - BadRequestExceedTagPerImageLimit
          - BadRequestExceededQuota
          - BadRequestCannotMigrateProjectWithName
          - BadRequestNotLimitedTrial
          - BadRequestImageBatch
          - BadRequestImageStream
          - BadRequestImageUrl
          - BadRequestImageFormat
          - BadRequestImageSizeBytes
          - BadRequestImageDimensions
          - BadRequestImageExceededCount
          - BadRequestTrainingNotNeeded
          - BadRequestTrainingNotNeededButTrainingPipelineUpdated
          - BadRequestTrainingValidationFailed
          - BadRequestClassificationTrainingValidationFailed
          - BadRequestMultiClassClassificationTrainingValidationFailed
          - BadRequestMultiLabelClassificationTrainingValidationFailed
          - BadRequestDetectionTrainingValidationFailed
          - BadRequestTrainingAlreadyInProgress
          - BadRequestDetectionTrainingNotAllowNegativeTag
          - BadRequestInvalidEmailAddress
          - BadRequestDomainNotSupportedForAdvancedTraining
          - BadRequestExportPlatformNotSupportedForAdvancedTraining
          - BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining
          - BadRequestExportValidationFailed
          - BadRequestExportAlreadyInProgress
          - BadRequestPredictionIdsMissing
          - BadRequestPredictionIdsExceededCount
          - BadRequestPredictionTagsExceededCount
          - BadRequestPredictionResultsExceededCount
          - BadRequestPredictionInvalidApplicationName
          - BadRequestPredictionInvalidQueryParameters
          - BadRequestInvalidImportToken
          - BadRequestExportWhileTraining
          - BadRequestImageMetadataKey
          - BadRequestImageMetadataValue
          - BadRequestOperationNotSupported
          - BadRequestInvalidArtifactUri
          - BadRequestCustomerManagedKeyRevoked
          - BadRequestInvalid
          - UnsupportedMediaType
          - Forbidden
          - ForbiddenUser
          - ForbiddenUserResource
          - ForbiddenUserSignupDisabled
          - ForbiddenUserSignupAllowanceExceeded
          - ForbiddenUserDoesNotExist
          - ForbiddenUserDisabled
          - ForbiddenUserInsufficientCapability
          - ForbiddenDRModeEnabled
          - ForbiddenInvalid
          - NotFound
          - NotFoundProject
          - NotFoundProjectDefaultIteration
          - NotFoundIteration
          - NotFoundIterationPerformance
          - NotFoundTag
          - NotFoundImage
          - NotFoundDomain
          - NotFoundApimSubscription
          - NotFoundInvalid
          - Conflict
          - ConflictInvalid
          - ErrorUnknown
          - ErrorIterationCopyFailed
          - ErrorPreparePerformanceMigrationFailed
          - ErrorProjectInvalidWorkspace
          - ErrorProjectInvalidPipelineConfiguration
          - ErrorProjectInvalidDomain
          - ErrorProjectTrainingRequestFailed
          - ErrorProjectImportRequestFailed
          - ErrorProjectExportRequestFailed
          - ErrorFeaturizationServiceUnavailable
          - ErrorFeaturizationQueueTimeout
          - ErrorFeaturizationInvalidFeaturizer
          - ErrorFeaturizationAugmentationUnavailable
          - ErrorFeaturizationUnrecognizedJob
          - ErrorFeaturizationAugmentationError
          - ErrorExporterInvalidPlatform
          - ErrorExporterInvalidFeaturizer
          - ErrorExporterInvalidClassifier
          - ErrorPredictionServiceUnavailable
          - ErrorPredictionModelNotFound
          - ErrorPredictionModelNotCached
          - ErrorPrediction
          - ErrorPredictionStorage
          - ErrorRegionProposal
          - ErrorUnknownBaseModel
          - ErrorInvalid
          type: string
          x-ms-enum:
            name: CustomVisionErrorCodes
            modelAsString: true
        message:
          description: A message explaining the error reported by the service.
          type: string
    Prediction:
      description: Prediction result.
      type: object
      properties:
        probability:
          format: float
          description: Probability of the tag.
          type: number
          readOnly: true
        tagId:
          format: uuid
          description: Id of the predicted tag.
          type: string
          readOnly: true
        tagName:
          description: Name of the predicted tag.
          type:
          - string
          - 'null'
          readOnly: true
        boundingBox:
          $ref: '#/components/schemas/BoundingBox'
          description: Bounding box of the prediction.
          readOnly: true
        tagType:
          description: Type of the predicted tag.
          enum:
          - Regular
          - Negative
          - GeneralProduct
          - null
          type:
          - string
          - 'null'
          readOnly: true
          x-ms-enum:
            name: TagType
            modelAsString: true
    PredictionQueryResult:
      description: Query result of the prediction images that were sent to your prediction endpoint.
      type: object
      properties:
        token:
          $ref: '#/components/schemas/PredictionQueryToken'
          description: Prediction Query Token.
          readOnly: false
        results:
          description: Result of an image prediction request.
          type: array
          items:
            $ref: '#/components/schemas/StoredImagePrediction'
          readOnly: true
    ImagePrediction:
      description: Result of an image prediction request.
      type: object
      properties:
        id:
          format: uuid
          description: Prediction Id.
          type: string
          readOnly: true
        project:
          format: uuid
          description: Project Id.
          type: string
          readOnly: true
        iteration:
          format: uuid
          description: Iteration Id.
          type: string
          readOnly: true
        created:
          format: date-time
          description: Date this prediction was created.
          type: string
          readOnly: true
        predictions:
          description: List of predictions.
          type: array
          items:
            $ref: '#/components/schemas/Prediction'
          readOnly: true
    ImageUrl:
      description: Image url.
      required:
      - url
      type: object
      properties:
        url:
          description: Url of the image.
          type: string
          readOnly: false
  securitySchemes:
    apim_key:
      type: apiKey
      name: Training-Key
      in: header
  parameters:
    ApiKey:
      name: Training-Key
      in: header
      required: true
      x-ms-client-name: ApiKey
      x-ms-parameter-location: client
      schema:
        type: string
x-ms-parameterized-host:
  hostTemplate: '{Endpoint}'
  useSchemePrefix: false
  parameters:
  - $ref: '#/components/parameters/Endpoint'
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/CustomVision/Training/stable/v2.0/Training.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)