Generate Text
Dedicated text generation endpoint using the Universal Schema with flat parameters.
**Universal Base Schema:**
- user_id (str, required): The end-user ID
- project_id (str, required): The project ID
- persona_id (str, optional): The specific system persona/voice to use
- disabled_learning (bool, optional): If true, request is ignored by long-term memory
- use_reasoning (bool, optional): Enable reasoning loop for generation
**Input:**
- text_input (str, optional): The prompt/description for text generation
- session_id (str, optional): Session ID for conversation context
**Reference inputs:**
- image_base64 (str, optional): Base64 encoded reference image for context
- video_base64 (str, optional): Base64 encoded reference video for context
- audio_base64 (str, optional): Base64 encoded reference audio for context
**Text Params (Flat):**
- model (str, optional): LLM model to use (default: gpt-4.1-mini)
**Authentication**: Requires valid API key or JWT token
Request body
Example request
{
"model": "gpt-4.1-mini",
"project_id": "proj_ABC",
"text_input": "Write a blog post about AI",
"use_reasoning": false,
"user_id": "user_123"
}Response
Successful Response
Changes
Changed in 3 of the 29 revisions of this API.24
- ○
the
modelrequest property default value changed fromgpt-4.1-minitogpt-5-minirequest-property-default-value-changed
- ○
- ▲
the response property
textbecame optional for the status200response-property-became-optional
- ▲
response property
textlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ○
added the new optional request property
output_schemanew-optional-request-property
- ○
added the optional property
structured_outputto the response with the200statusresponse-optional-property-added
- ▲
- ○
endpoint added
endpoint-added
This revision also has 20 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○