Admin Magic AI
Generate text content
Changed onGenerates text from a prompt with the configured AI provider, the same way the admin editor's Magic AI button does. Requires Magic AI and its text generation feature to be enabled in Configuration → Magic AI.
post/magic-ai/content
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
The generated text.
Changes
- info
endpoint added
- info