Rewrite a short text with AI
Rewrite a short text with AI (media:write)
Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.
POST
The design editor's text tools. The assistant's model (no tools) follows the instruction and answers with the new text only. Counts as AI usage.
header
AuthorizationBearer <token>API key (stk_...), or in the Community Edition the access token (stk_local_...)
application/json- body
text*stringLength
length <= 4000instruction*stringWhat to do, e.g. Make it shorter, or Translate to German
Length
length <= 500OK
application/json- response
text*stringcurl -X POST 'https://staqly.example.com/v1/ai/text' \ -H 'Content-Type: application/json' \ -d '{ "text": "string", "instruction": "string"}'Example Response
{ "text": "string"}