Savor Cake

Savor Cake · GPT-Aktionen

Image Detection API

API for classifying images using image URLs and the Roboflow model.

  • POST /test-cake-detection/3Classifies an image from a URL for cake detection

    Receives a URL of an image, classifies it using the test cake detection model, and returns the classification results.

Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Image Detection API",
    "version": "1.0.0",
    "description": "API for classifying images using image URLs and the Roboflow model."
  },
  "servers": [
    {
      "url": "https://detect.roboflow.com",
      "description": "Roboflow Image Detection API"
    }
  ],
  "paths": {
    "/test-cake-detection/3": {
      "post": {
        "operationId": "classifyImageUrl",
        "summary": "Classifies an image from a URL for cake detection",
        "description": "Receives a URL of an image, classifies it using the test cake detection model, and returns the classification results.",
        "parameters": [
          {
            "name": "api_key",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "API key for authentication"
          },
          {
            "name": "image",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri",
              "description": "URL of the image to be classified"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful image classification",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "predictions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "class": {
                            "type": "string",
                            "description": "Class of the detected object"
                          },
                          "confidence": {
                            "type": "number",
                            "format": "float",
                            "description": "Confidence score of the prediction"
                          }
                        }
                      },
                      "description": "List of detected objects and their details"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request or error in image processing"
          }
        }
      }
    }
  }
}