> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetixml.com/llms.txt
> Use this file to discover all available pages before exploring further.

# JavaScript

> An overview of the JavaScript library for deploying Kinetix ML pipelines.

## KMLPipeline

A Kinetix ML Pipeline object which can be used to load and execute pipelines from the Kinetix ML platform.

### Example

```TypeScript theme={null}
var pipeline = new KMLPipeline("[Your Project Name]", "[Your API Key]");
```

### Methods

#### Initialize (async)

Loads the Kinetix ML Pipeline from the Kinetix ML platform for execution later.

```TypeScript theme={null}
await pipeline.initialize();
```

#### Execute (async)

Executes the loaded Kinetix ML Pipeline given the correct inputs and returns the outputs.

```TypeScript theme={null}
let outputs = await pipeline.execute([]) // the [] should be replaced with your list of inputs
```
