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

Access 2 LucidQuery AI models through Mastra's model router. Authentication is handled automatically using the `LUCIDQUERY_API_KEY` environment variable.

Learn more in the [LucidQuery AI documentation](https://lucidquery.com).

```bash
LUCIDQUERY_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: "lucidquery/lucidnova-rf1-100b"
});

// 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 [LucidQuery AI documentation](https://lucidquery.com) for details.

:::

## Models

<ProviderModelsTable
  models={[
  {
    "model": "lucidquery/lucidnova-rf1-100b",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 120000,
    "maxOutput": 8000,
    "inputCost": 2,
    "outputCost": 5
  },
  {
    "model": "lucidquery/lucidquery-nexus-coder",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 250000,
    "maxOutput": 60000,
    "inputCost": 2,
    "outputCost": 5
  }
]}
/>

## Advanced Configuration

### Custom Headers

```typescript
const agent = new Agent({
  name: "custom-agent",
  model: {
    url: "https://lucidquery.com/api/v1",
    id: "lucidquery/lucidnova-rf1-100b",
    apiKey: process.env.LUCIDQUERY_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
      ? "lucidquery/lucidquery-nexus-coder"
      : "lucidquery/lucidnova-rf1-100b";
  }
});
```




---
title: "Mistral | Models | Mastra"
description: "Use Mistral models with Mastra. 19 models available."
---

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



import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";