Generate items from a prompt
POST /boards/{boardId}/ai/generate
Mida turns a prompt into one or more items on the board. With one outputTypes entry the matching generator runs directly; with none, Mida's planner decides what to build, as it does in the editor. skill applies a saved skill's instructions and output type. withImages lets Mida generate pictures inside the result. Plus and Max only; charged in AI credits. dryRun returns an estimate without spending anything.
Authorization
AuthorizationstringheaderrequiredBearer <key>. The key needs ai:generate and boards:write scopes. Create and manage keys in the developer console, or use an OAuth app to act for other people; what each scope unlocks is on the scopes page.
Path parameters
boardIdstringpathrequiredHeaders
Idempotency-KeystringheaderA unique key per logical request. Replays within 24 hours return the original response.
Body
callbackUrlstringOptional. When the job this request starts finishes or fails, a short body is POSTed here once: { eventId, status, boardId, boardUrl, imageUrl }, where status is succeeded or failed and imageUrl is a picture of what the job drew, or null. Signed with the workspace's callback secret (GET /webhooks/callback-secret). https to a public host. The full job is on GET /jobs/{jobId}.
promptstringrequiredoutputTypesenum<string>[]skillstringA skill id or slug from GET /skills.
withImagesbooleanmodelstringA text model id from the editor's model picker. Omit for Mida's default.
dryRunbooleanDefaults to false.
Response
dryRunbooleanestimateobjectChild attributes
itemsintegercreditsintegernotestringcreditsobjectChild attributes
remainingintegertotalintegerplanstringcanGeneratebooleanErrors
plan_limitThe workspace plan does not allow this, or AI credits are exhausted.
rate_limitedToo many requests.