---
title: "retrieve the LLM optimisation report"
method: GET
path: "/mockserver/llm/optimisationReport"
tags: ["llm"]
---

# retrieve the LLM optimisation report

`GET /mockserver/llm/optimisationReport`

## Request

- Base URL: `http://localhost:1080`
- URL: `http://localhost:1080/mockserver/llm/optimisationReport`
- Auth: none declared

Analyses captured LLM traffic and reports optimisation signals (cost, latency, token usage, prompt and response characteristics) with an overall verdict. The report can also be emitted in evaluation-dataset formats for downstream tooling. An empty capture is a 200 with an empty report, not an error.

## Query parameters

- `format` 'json' | 'markdown' | 'csv' | 'openai-evals' | 'fine-tune' | 'promptfoo'
- `session` string
- `host` string
- `provider` string

## Response `200`

optimisation report returned in the requested format

- object

## Other responses

- `400`: unrecognised format
- `500`: internal error generating the optimisation report

---

[API](https://skmtc.dev/mock-server/apis/mockserver-api.md) · [All operations](https://skmtc.dev/mock-server/apis/mockserver-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mock-server/apis/mockserver-api/revisions/9239b693996e?raw)
