Generate or rewrite content with AI

Sends a prompt + (optional) source content to our completions service and returns the rewritten or freshly generated content. Used by the page editor's 'AI Generate' toolbar action to iterate on a selected component's HTML.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Body Params

string
required

What change to make, or what to generate

string

Existing content to be rewritten. Omit to generate fresh.

string
enum

Content format hint

Allowed:
integer

Optional AuthorInfo id whose agent_instructions are woven into the system prompt as a persona

Responses
200

The generated content

401

AI integration is not configured

422

Validation failed

429

AI rate limit hit

500

AI completion failed

Language
Credentials
Bearer
JWT
URL
LoadingLoading…