---
title: "Suggest AI Model"
method: POST
path: "/documents/suggest-llm-model"
tags: ["Document AI — DMS"]
---

# Suggest AI Model

`POST /documents/suggest-llm-model`

## Request

- Base URL: `https://api.paperoffice.ai/latest`
- URL: `https://api.paperoffice.ai/latest/documents/suggest-llm-model`
- Auth: HTTP bearer

Analyze a document and recommend the optimal processing profile for downstream Document AI / IDP jobs.

## Response `200`

Success

- object: LLM-Modell-Vorschlag basierend auf Dokument
  - `status` 'success' | 'error', required: HTTP-Level Status
  - `job_id` string, required
  - `message` string: Menschenlesbare Statusmeldung
  - `pipeline` string
  - `operation` string: Ausgefuehrte Operation
  - `processing_time` string: Gesamte Verarbeitungszeit inkl. Queue (Format: 123.45ms)
  - `result` object, required: Das eigentliche Verarbeitungsergebnis
    - `status` 'completed' | 'failed' | 'timeout': Job-Level Status
    - `message` string: Pipeline-spezifische Statusmeldung
    - `duration_ms` string: Reine Pipeline-Verarbeitungszeit in ms
    - `output` object
      - `suggested_model` string: Empfohlenes LLM-Modell
      - `reason` string
      - `alternatives` string[]

## Other responses

- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api.md) · [All operations](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/revisions/c6a6228a4509?raw)
