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

# Create Live Soundbite

> Use the API to create a soundbite during a live meeting

## Overview

The `createLiveSoundbite` mutation allows you to create a soundbite during a live meeting through the API. The soundbite is created using natural language processing via Fred, Fireflies' AI assistant.

> [!NOTE]
>
> **Rate Limit:** This mutation is rate-limited to 10 requests per hour across all user tiers. If you exceed this limit, you will receive a `too_many_requests` error with a `retryAfter` timestamp indicating when you can make requests again.
>
> **AI Credits:** This mutation requires AI credits to be available on the user's account.

## Arguments

**input** `CreateLiveSoundbiteInput!` *required*

Input object containing the meeting ID and prompt for the soundbite. See [CreateLiveSoundbiteInput](https://docs.fireflies.ai/schema/input/create-live-soundbite-input.md) for details.

## Response

**success** `Boolean!`

Whether the soundbite was created successfully

## Usage Example

To create a live soundbite, provide the meeting ID and a natural language prompt:

```graphql theme={null}
mutation CreateLiveSoundbite($input: CreateLiveSoundbiteInput!) {
  createLiveSoundbite(input: $input) {
    success
  }
}
```

```bash curl theme={null}
curl -X POST https://api.fireflies.ai/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your_api_key" \
  -d '{
    "query": "mutation CreateLiveSoundbite($input: CreateLiveSoundbiteInput!) { createLiveSoundbite(input: $input) { success } }",
    "variables": {
      "input": {
        "meeting_id": "your_meeting_id",
        "prompt": "Create a soundbite from the last 2 minutes"
      }
    }
  }'
```

```javascript javascript theme={null}
const axios = require('axios');

const url = 'https://api.fireflies.ai/graphql';
const headers = {
  'Content-Type': 'application/json',
  Authorization: 'Bearer your_api_key'
};

const data = {
  query: `mutation CreateLiveSoundbite($input: CreateLiveSoundbiteInput!) {
    createLiveSoundbite(input: $input) {
      success
    }
  }`,
  variables: {
    input: {
      meeting_id: 'your_meeting_id',
      prompt: 'Create a soundbite from the last 2 minutes'
    }
  }
};

axios
  .post(url, data, { headers: headers })
  .then(result => {
    console.log(result.data);
  })
  .catch(e => {
    console.log(JSON.stringify(e));
  });
```

```python python theme={null}
import requests

url = 'https://api.fireflies.ai/graphql'

headers = {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer your_api_key'
}

data = {
    'query': '''
      mutation CreateLiveSoundbite($input: CreateLiveSoundbiteInput!) {
        createLiveSoundbite(input: $input) {
          success
        }
      }
    ''',
    'variables': {
        'input': {
            'meeting_id': 'your_meeting_id',
            'prompt': 'Create a soundbite from the last 2 minutes'
        }
    }
}

response = requests.post(url, headers=headers, json=data)

if response.status_code == 200:
    print(response.json()['data'])
else:
    print(response.text)
```

```java java theme={null}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpRequest.BodyPublishers;

public class ApiRequest {
    public static void main(String[] args) {
        HttpClient client = HttpClient.newHttpClient();
        String jsonRequest = "{\"query\": \"mutation CreateLiveSoundbite($input: CreateLiveSoundbiteInput!) { createLiveSoundbite(input: $input) { success } }\", \"variables\": {\"input\": {\"meeting_id\": \"your_meeting_id\", \"prompt\": \"Create a soundbite from the last 2 minutes\"}}}";
        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://api.fireflies.ai/graphql"))
            .header("Content-Type", "application/json")
            .header("Authorization", "Bearer your_api_key")
            .POST(BodyPublishers.ofString(jsonRequest))
            .build();

        client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
            .thenApply(HttpResponse::body)
            .thenAccept(System.out::println)
            .join();
    }
}
```

```json Response theme={null}
{
  "data": {
    "createLiveSoundbite": {
      "success": true
    }
  }
}
```

## Error Codes

List of possible error codes that may be returned by the `createLiveSoundbite` mutation. Full list of error codes can be found [here](https://docs.fireflies.ai/miscellaneous/error-codes.md).

> [accordion] object\_not\_found
>
> The meeting with the specified ID was not found or you do not have access to it.

> [accordion] require\_elevated\_privilege
>
> You do not have permission to create soundbites for this meeting. Only the meeting organizer or team admin can create live soundbites.

> [accordion] insufficient\_ai\_credits
>
> Your account does not have sufficient AI credits to perform this operation. Please upgrade your plan or purchase additional credits.

> [accordion] too\_many\_requests
>
> You have exceeded the rate limit of 10 requests per hour. Wait until the time specified in the `retryAfter` field before making additional requests.

## Audit Trail

A successful call records a [`LIVE_SOUNDBITE_CREATED`](https://docs.fireflies.ai/graphql-api/query/audit-events) audit event for the meeting.

## Additional Resources

> [card] [Create Bite](https://docs.fireflies.ai/graphql-api/mutation/create-bite.md)
>
> Create a soundbite for a completed meeting

> [card] [Update Meeting State](https://docs.fireflies.ai/graphql-api/mutation/update-meeting-state.md)
>
> Pause or resume recording for a live meeting


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