---
title: "Detect Diagrams"
method: POST
path: "/image/detect-diagram"
tags: ["image"]
---

# Detect Diagrams

`POST /image/detect-diagram`

Accepts a list of image URLs and returns only those that contain diagrams.

Example input:
    {
      "image_urls": ["https://example.com/image1.jpg", "https://example.com/image2.jpg"]
    }

Returns:
    {
      "status": "success",
      "message": "Diagrams detected successfully",
      "diagram_image_urls": ["https://example.com/image1.jpg"]
    }

## Request body

- DetectDiagramRequest
  - `image_urls` string[], required

## Response `200`

Successful Response

- DetectDiagramResponse
  - `status` string, required
  - `message` string, required
  - `diagram_image_urls` string[], required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/8d495ed916c6/schema)
