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

# Go

> Learn how to create your first stream using the Livepeer Go SDK.

**1. Prerequisites**

To get the most out of this guide, you’ll need to:

* [Create an API key](https://livepeer.studio/dashboard/developers/api-keys)

**2. Install the SDK**

Get the Livepeer Go SDK.

```bash theme={null}
go get github.com/livepeer/livepeer-go
```

**3. Initialize the SDK**

The first step is to initialize the SDK with your Livepeer Studio API key.

```go theme={null}
package main

import (
	"context"
	livepeer "github.com/livepeer/livepeer-go"
	"github.com/livepeer/livepeer-go/models/components"
	"log"
)

func main() {
	lpClient := livepeer.New(
		livepeer.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
	)
}
```

**4. Use the SDK**

Now that you have the SDK installed and initialized, you can use it in your app.
Let's create a stream.

```go theme={null}
package main

import (
	"context"
	livepeer "github.com/livepeer/livepeer-go"
	"github.com/livepeer/livepeer-go/models/components"
	"log"
)

func main() {
	lpClient := livepeer.New(
		livepeer.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
	)

	ctx := context.Background()
	res, err := lpClient.Stream.Create(ctx, components.NewStreamPayload{
		Name: "test_stream",
	})
	if err != nil {
		log.Fatal(err)
	}
	if res.Stream != nil {
		log.Printf("Stream created successfully")
	}
}

```

**5. Try it yourself**

> [card] [Golang Example](https://github.com/livepeer/livepeer-go/tree/main/example)
>
> See an example on GitHub.

## Next steps

Checkout Livepeer [API Reference](/api-reference) to learn more about the
Livepeer API and the Go SDK.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.