# <img src="https://models.dev/logos/inception.svg" alt="Inception logo" className="inline w-8 h-8 mr-2 align-middle dark:invert dark:brightness-0 dark:contrast-200" />Inception
[EN] Source: https://mastra.ai/models/providers/inception

Access 2 Inception models through Mastra's model router. Authentication is handled automatically using the `INCEPTION_API_KEY` environment variable.

Learn more in the [Inception documentation](https://platform.inceptionlabs.ai/docs).

```bash
INCEPTION_API_KEY=your-api-key
```

```typescript
import { Agent } from "@mastra/core";

const agent = new Agent({
  name: "my-agent",
  instructions: "You are a helpful assistant",
  model: "inception/mercury"
});

// Generate a response
const response = await agent.generate("Hello!");

// Stream a response
const stream = await agent.stream("Tell me a story");
for await (const chunk of stream) {
  console.log(chunk);
}
```

:::info

Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Inception documentation](https://platform.inceptionlabs.ai/docs) for details.

:::

## Models

<ProviderModelsTable
  models={[
  {
    "model": "inception/mercury",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 128000,
    "maxOutput": 16384,
    "inputCost": 0.25,
    "outputCost": 1
  },
  {
    "model": "inception/mercury-coder",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 128000,
    "maxOutput": 16384,
    "inputCost": 0.25,
    "outputCost": 1
  }
]}
/>

## Advanced Configuration

### Custom Headers

```typescript
const agent = new Agent({
  name: "custom-agent",
  model: {
    url: "https://api.inceptionlabs.ai/v1/",
    id: "inception/mercury",
    apiKey: process.env.INCEPTION_API_KEY,
    headers: {
      "X-Custom-Header": "value"
    }
  }
});
```

### Dynamic Model Selection

```typescript
const agent = new Agent({
  name: "dynamic-agent",
  model: ({ runtimeContext }) => {
    const useAdvanced = runtimeContext.task === "complex";
    return useAdvanced
      ? "inception/mercury-coder"
      : "inception/mercury";
  }
});
```




---
title: "Providers"
description: "Direct access to AI model providers."
---

{/* This file is auto-generated by generate-model-docs.ts - DO NOT EDIT MANUALLY */}

import { CardGrid, CardGridItem } from "@site/src/components/cards/card-grid";