Create pipeline

Create a new pipeline (as a draft) on your Treza account, from a template (templateId, see list_pipeline_templates) or with an initial node graph. Use list_node_types / get_node_type to learn the graph vocabulary: every edge names the two nodes it joins and a port on each, e.g. {"source":"music","sourceHandle":"audio","target":"sequence","targetHandle":"shots"}. A graph with error-level issues is refused with every issue listed, and nothing is saved. That includes a config key the node does not define, a value outside a field's options or range, and a model id, duration, aspect ratio or voice the chosen model does not offer: pick them from get_node_type. Drafts can be run with run_pipeline; publish_pipeline makes them invokable over the public API. To put music under a video the account already has, call assemble_video with musicPrompt instead of building a graph.

post/api/v1/tools/create_pipeline

Request

  • Base URL: https://www.trezalabs.com
  • URL: https://www.trezalabs.com/api/v1/tools/create_pipeline
  • Auth: HTTP bearer

Request body

namestring required
descriptionstring
templateIdstring

Copy this template's graph (ids from list_pipeline_templates). Ignored when nodes/edges are supplied.

Response

The tool's result.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.