Create an AI engine

POST /api/v1/ai/engines

One provider row: the connection (token_id, from AI settings), the model and, for an LLM, the system prompt.

Who may call it

owner, admin

Responses

201

The new engine.

400

The request is wrong; message says what to fix.

401

The access key is missing, expired or revoked.

403

Your role may not call this endpoint, or the key is read only (read_only_key).

429

Too many requests for this key (rate_limited). Wait for the seconds in Retry-After.