Skip to content
Get an API key

Generate items from a prompt

POST /boards/{boardId}/ai/generate

Updated 16 Sep 20262 min read
POST/boards/{boardId}/ai/generateTry it
Basehttps://api.mockflow.com/v1Scopesai:generateboards:write

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

Authorizationstringheaderrequired

Bearer <key>. The key needs ai:generate and boards:write scopes. Create and manage keys in the developer console; what each scope unlocks is on the scopes page.

Path parameters

boardIdstringpathrequired

Headers

Idempotency-Keystringheader

A unique key per logical request. Replays within 24 hours return the original response.

Body

application/json
promptstringrequired
outputTypesenum<string>[]
skillstring

A skill id or slug from GET /skills.

withImagesboolean
modelstring

A text model id from the editor's model picker. Omit for Mida's default.

dryRunboolean

Defaults to false.

Response

200 · application/json
dryRunboolean
estimateobject
Child attributes
itemsinteger
creditsinteger
notestring
creditsobject
Child attributes
remaininginteger
totalinteger
planstring
canGenerateboolean

Errors

402plan_limit

The workspace plan does not allow this, or AI credits are exhausted.

429rate_limited

Too many requests.

Was this page helpful?

Sign in to MockFlow

The same account you use in the app and on the API.

Forgot your password?
or
Continue with GoogleContinue with Microsoft