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

# Meta

> Meta Model API serves the Muse Spark family — Meta’s closed-weight agentic models with a 1M-token context window, native parallel tool calling, and image/video understanding.

Meta offers 2 models through Lava's AI Gateway, supporting Chat Completions, Chat Completions (Native). Authentication uses `Authorization: Bearer`. See the [Meta API docs](https://dev.meta.ai/docs) for provider-specific parameters.

<Info>Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.</Info>

## Quick Start

```typescript theme={null}
const response = await fetch('https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.meta.ai%2Fv1%2Fchat%2Fcompletions', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${forwardToken}`,
  },
  body: JSON.stringify({
    model: 'muse-spark-1.1',
    messages: [{ role: "user", content: "Hello!" }],
  }),
});
```

## Chat Completions

**Target URL:** `https://api.meta.ai/v1/chat/completions`

|                  |                                          |
| ---------------- | ---------------------------------------- |
| **Content Type** | `application/json`                       |
| **Streaming**    | Yes (set `stream: true` in request body) |

| Model          | Input / 1M tokens | Output / 1M tokens |
| -------------- | ----------------- | ------------------ |
| muse-spark-1.1 | \$1.25            | \$4.25             |

## Chat Completions (Native)

**Target URL:** `https://api.meta.ai/v1/messages`

|                  |                                          |
| ---------------- | ---------------------------------------- |
| **Content Type** | `application/json`                       |
| **Streaming**    | Yes (set `stream: true` in request body) |

| Model          | Input / 1M tokens | Output / 1M tokens |
| -------------- | ----------------- | ------------------ |
| muse-spark-1.1 | \$1.25            | \$4.25             |

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
