Skip to main content
POST
Generate System Prompt
Generate a system prompt from user-provided instructions. This endpoint is not tied to a specific data job and can be called before or after job creation. The generated prompt can then be set on a principle_files job via PATCH /v1/flow/data-jobs/{id}. For usage in context, see Create instruction fine-tuning data.

Body

application/json
instructions
string
required

Natural-language description of the task the generated dataset should support. Used to generate a system prompt for that dataset.

document_summary
string | null

Summary of the source documents, incorporated into the generated system prompt so it reflects their content. If omitted, the system prompt is generated from instructions alone.

Response

Success

The response is of type Response Generate System Prompt V1 Flow Data Jobs Gen System Prompt Post · object.

Last modified on July 31, 2026