---
title: "Changes to Generate a query"
method: POST
path: "/v1/ai/generate-query"
---

# Changes to Generate a query

`POST /v1/ai/generate-query`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 2 revisions.

- **2026-11-03** `43290040f88f`: 2 breaking, 4 warning, 11 info

## Changes

- **2026-11-03** `43290040f88f`: 2 breaking, 4 warning, 11 info
  - added `#/components/schemas/OmniQuery` to the `contextQuery` request property `allOf` list
  - the `contextQuery` request property type changed from `object` to no type
  - removed the optional property `error` from the response with the `400` status
  - removed the optional property `error` from the response with the `403` status
  - removed the optional property `message` from the response with the `400` status
  - removed the optional property `message` from the response with the `403` status
  - added the new optional request property `documentQueries`
  - added the new optional request property `requestedLlm`
  - the request property `prompt` became optional
  - the `prompt` request property default value `` was added
  - added the non-success response with the status `422`
  - added the optional property `downgradedLlm` to the response with the `200` status
  - added the optional property `downgradedModelTier` to the response with the `200` status
  - added the required property `detail` to the response with the `400` status
  - added the required property `detail` to the response with the `403` status
  - added the required property `status` to the response with the `400` status
  - added the required property `status` to the response with the `403` status

---

[Operation](https://skmtc.dev/omni/apis/omni-api/docs/v1/ai/generate-query/post.md) - [API](https://skmtc.dev/omni/apis/omni-api.md) - [Page](https://skmtc.dev/omni/apis/omni-api/changes/v1/ai/generate-query/post)
