Skip to main content
Box AI API is available to all customers Business and above.
You can use Box AI to generate text based on provided content. For example, you can ask Box AI to generate a template based on the content you read or create in Box Notes. Then you can embed the generated text directly into your document.

Before you start

Make sure you followed the steps listed in to create a platform app and authenticate.

Send a request

To send a request, use the POST /2.0/ai/text_gen endpoint.

Parameters

To make a call, you must pass the following parameters. Mandatory parameters are in bold. The items array must contain exactly one element. For full details on prompt and file limits, see .

Use cases

Generate text based on the provided file content and a prompt.
The result will be as follows:
Last modified on June 1, 2026