---
title: "Generate model suggestions"
method: POST
path: "/v1/models/{modelId}/suggestions/generate"
tags: ["AI Model Suggestions"]
---

# Generate model suggestions

`POST /v1/models/{modelId}/suggestions/generate`

<Note>
  This endpoint requires **Organization Admin** permissions.
</Note>

Trigger an AI suggestion generation run for the shared model and enqueue the async job. Poll the [Get status for a generation run endpoint](/api/ai-model-suggestions/get-status-for-a-generation-run) for status.

A model can have one active run at a time and a cooldown period is enforced after a successful run. See the `Retry-After` header in the response for more information.

## Path parameters

- `modelId` string, uuid, required

## Response `202`

Generation run enqueued

- object
  - `runId` string, uuid, required — The ID of the created generation run. Poll the [Get status for a generation run endpoint](/api/ai-model-suggestions/get-status-for-a-generation-run) for status.
  - `status` 'queued', required — The status of the run. Generation runs asynchronously.

## Other responses

- `400` — Bad Request Possible error messages: - `modelId: Invalid UUID` - The model ID is not a valid UUID format
- `401` — Authentication required
- `403` — Forbidden Possible error messages: - `Permission denied` - User is not an Organization Admin
- `404` — Model not found in this organization
- `405` — Method not allowed
- `409` — A generation run is already active for this model
- `429` — A run completed recently; retry after the cooldown (see the `Retry-After` header)
- `500` — Failed to enqueue the generation job

---

[API](https://skmtc.net/omni/apis/omni-api.md) · [All operations](https://skmtc.net/omni/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omni/omni-api/revisions/6b02f7349d0e/schema)
