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

# Generate model suggestions

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

Triggers an AI suggestion generation run for the shared model and enqueues the async job. Poll `GET /suggestions/runs/{runId}` for status. Requires organization admin permissions. At most one active run per model; a cooldown applies after a completed run.

## Path parameters

- `modelId` string, uuid, required — UUID of the shared model the suggestions belong to

## Response `202`

Generation run enqueued

- GenerateSuggestionsResponse
  - `runId` string, uuid, required — The id of the created generation run. Poll `GET /suggestions/runs/{runId}` for status.
  - `status` 'queued', required — The generation run was enqueued. Generation runs asynchronously.

## Other responses

- `400` — Malformed `modelId`
- `401` — Authentication required
- `403` — Feature not enabled, AI disabled, model is not a shared model, or caller lacks organization admin permissions
- `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/omniapp/apis/omni-api.md) · [All operations](https://skmtc.net/omniapp/apis/omni-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/omniapp/omni-api/versions/de7cac8b5983/schema)
