Microsoft Azure Prediction Endpoint

Microsoft Azure Prediction Endpoint is a machine learning service that allows users to deploy predictive models to the cloud and make real-time predictions on new data. This service provides an easy and scalable solution for businesses to integrate predictive analytics into their applications without the need for extensive coding or infrastructure setup.

OpenAPI Specification

predictionendpoint-openapi-original.yml Raw ↑
swagger: '2.0'
info:
  version: '1.1'
  title: Microsoft Azure PredictionEndpoint
host: southcentralus.api.cognitive.microsoft.com
basePath: /customvision/v1.1/Prediction
schemes:
  - https
paths:
  /{projectId}/url:
    post:
      tags:
        - ImagePredictionApi
      summary: Microsoft Azure Predict An Image Url And Saves The Result
      operationId: microsoftAzurePredictimageurl
      consumes:
        - application/json
        - text/json
        - application/xml
        - text/xml
        - application/x-www-form-urlencoded
      produces:
        - application/json
        - text/json
        - application/xml
        - text/xml
      parameters:
        - name: projectId
          in: path
          description: The project id
          required: true
          type: string
          format: uuid
          x-nullable: false
        - name: imageUrl
          in: body
          description: >-
            An {Iris.Web.Api.Models.ImageUrl} that contains the url of the image
            to be evaluated
          required: true
          schema:
            $ref: '#/definitions/ImageUrl'
        - name: iterationId
          in: query
          description: "Optional. Specifies the id of a particular iteration to evaluate against.\r\n            The default iteration for the project will be used when not specified"
          required: false
          type: string
          format: uuid
          x-nullable: true
        - name: application
          in: query
          description: Optional. Specifies the name of application using the endpoint
          required: false
          type: string
          x-nullable: true
        - $ref: '#/parameters/ApiKey'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/ImagePredictionResultModel'
      x-ms-examples:
        Successful Prediction with Url request:
          $ref: ./examples/SuccessfulPredictionWithUrl.json
      description: Needs a more full description created.
  /{projectId}/image:
    post:
      tags:
        - ImagePredictionApi
      summary: Microsoft Azure Predict An Image And Saves The Result
      operationId: microsoftAzurePredictimage
      consumes:
        - multipart/form-data
        - application/octet-stream
      produces:
        - application/json
        - text/json
        - application/xml
        - text/xml
      parameters:
        - name: projectId
          in: path
          description: The project id
          required: true
          type: string
          format: uuid
          x-nullable: false
        - name: iterationId
          in: query
          description: "Optional. Specifies the id of a particular iteration to evaluate against.\r\n            The default iteration for the project will be used when not specified"
          required: false
          type: string
          format: uuid
          x-nullable: true
        - name: application
          in: query
          description: Optional. Specifies the name of application using the endpoint
          required: false
          type: string
          x-nullable: true
        - name: imageData
          in: formData
          required: true
          type: file
        - $ref: '#/parameters/ApiKey'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/ImagePredictionResultModel'
      x-ms-examples:
        Successful Prediction with Image request:
          $ref: ./examples/SuccessfulPredictionWithImage.json
      description: Needs a more full description created.
  /{projectId}/url/nostore:
    post:
      tags:
        - ImagePredictionApi
      summary: Microsoft Azure Predict An Image Url Without Saving The Result
      operationId: microsoftAzurePredictimageurlwithnostore
      consumes:
        - application/json
        - text/json
        - application/xml
        - text/xml
        - application/x-www-form-urlencoded
      produces:
        - application/json
        - text/json
        - application/xml
        - text/xml
      parameters:
        - name: projectId
          in: path
          description: The project id
          required: true
          type: string
          format: uuid
          x-nullable: false
        - name: imageUrl
          in: body
          description: >-
            An {Iris.Web.Api.Models.ImageUrl} that contains the url of the image
            to be evaluated
          required: true
          schema:
            $ref: '#/definitions/ImageUrl'
        - name: iterationId
          in: query
          description: "Optional. Specifies the id of a particular iteration to evaluate against.\r\n            The default iteration for the project will be used when not specified"
          required: false
          type: string
          format: uuid
          x-nullable: true
        - name: application
          in: query
          description: Optional. Specifies the name of application using the endpoint
          required: false
          type: string
          x-nullable: true
        - $ref: '#/parameters/ApiKey'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/ImagePredictionResultModel'
      x-ms-examples:
        Successful Prediction with Url request:
          $ref: ./examples/SuccessfulPredictionWithUrl.json
      description: Needs a more full description created.
  /{projectId}/image/nostore:
    post:
      tags:
        - ImagePredictionApi
      summary: Microsoft Azure Predict An Image Without Saving The Result
      operationId: microsoftAzurePredictimagewithnostore
      consumes:
        - multipart/form-data
        - application/octet-stream
      produces:
        - application/json
        - text/json
        - application/xml
        - text/xml
      parameters:
        - name: projectId
          in: path
          description: The project id
          required: true
          type: string
          format: uuid
          x-nullable: false
        - name: iterationId
          in: query
          description: "Optional. Specifies the id of a particular iteration to evaluate against.\r\n            The default iteration for the project will be used when not specified"
          required: false
          type: string
          format: uuid
          x-nullable: true
        - name: application
          in: query
          description: Optional. Specifies the name of application using the endpoint
          required: false
          type: string
          x-nullable: true
        - name: imageData
          in: formData
          required: true
          type: file
        - $ref: '#/parameters/ApiKey'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/ImagePredictionResultModel'
      x-ms-examples:
        Successful Prediction with Image request:
          $ref: ./examples/SuccessfulPredictionWithImage.json
      description: Needs a more full description created.
definitions:
  ImageUrl:
    type: object
    properties:
      Url:
        type: string
        x-nullable: true
    x-nullable: true
  ImagePredictionResultModel:
    description: result of an image prediction request
    type: object
    properties:
      Id:
        format: uuid
        type: string
        readOnly: true
        x-nullable: false
      Project:
        format: uuid
        type: string
        readOnly: true
        x-nullable: false
      Iteration:
        format: uuid
        type: string
        readOnly: true
        x-nullable: false
      Created:
        format: date-time
        type: string
        readOnly: true
        x-nullable: false
      Predictions:
        type: array
        items:
          $ref: '#/definitions/ImageTagPredictionModel'
        readOnly: true
        x-nullable: true
    x-nullable: true
  ImageTagPredictionModel:
    type: object
    properties:
      TagId:
        format: uuid
        type: string
        readOnly: true
        x-nullable: false
      Tag:
        type: string
        readOnly: true
        x-nullable: true
      Probability:
        format: float
        type: number
        readOnly: true
        x-nullable: false
    x-nullable: true
parameters:
  ApiKey:
    name: Prediction-Key
    in: header
    required: true
    type: string
    x-ms-client-name: ApiKey
    x-ms-parameter-location: client
tags:
  - name: ImagePredictionApi