AI
Generate text
Sends an AI request to supported Large Language Models (LLMs) and returns generated text based on the provided prompt.
POST
cURL
This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.Learn more about Box SDK versioning strategy.
Authorizations
Body
application/json
AI text gen request object.
The items to be processed by the LLM, often files. The array can include exactly one element.
Note: Box AI handles documents with text representations up to 2MB in size. If the file size exceeds 2MB, the first 2MB of text representation will be processed.
Required array length:
1 elementResponse
A successful response including the answer from the LLM.
AI response.
Last modified on January 23, 2026
