> Discover all available pages from the documentation index: https://mastra.ai/llms.txt

# ![Jalapeno Cloud logo](https://models.dev/logos/jalapeno.svg)Jalapeno Cloud

Access 17 Jalapeno Cloud models through Mastra's model router. Authentication is handled automatically using the `JALAPENO_API_KEY` environment variable.

Learn more in the [Jalapeno Cloud documentation](https://www.jalapeno-cloud.ai/docs/).

```bash
JALAPENO_API_KEY=your-api-key
```

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

const agent = new Agent({
  id: "my-agent",
  name: "My Agent",
  instructions: "You are a helpful assistant",
  model: "jalapeno/DeepSeek-V4-Flash"
});

// 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);
}
```

> **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Jalapeno Cloud documentation](https://www.jalapeno-cloud.ai/docs/) for details.

## Models

| Model                                  | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
| -------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
| `jalapeno/DeepSeek-V4-Flash`           | 1.0M    |       |           |       |       |       | $0.14      | $0.28       |
| `jalapeno/DeepSeek-V4-Pro`             | 1.0M    |       |           |       |       |       | $2         | $3          |
| `jalapeno/GLM-5.1`                     | 203K    |       |           |       |       |       | $1         | $4          |
| `jalapeno/GLM-5.2`                     | 1.0M    |       |           |       |       |       | $1         | $4          |
| `jalapeno/Hy3`                         | 203K    |       |           |       |       |       | $0.14      | $0.58       |
| `jalapeno/Kimi-K2.5`                   | 262K    |       |           |       |       |       | $0.60      | $3          |
| `jalapeno/Kimi-K2.7-Code`              | 271K    |       |           |       |       |       | $0.95      | $4          |
| `jalapeno/Kimi-K3`                     | 1.0M    |       |           |       |       |       | $3         | $15         |
| `jalapeno/MiniMax-M3`                  | 524K    |       |           |       |       |       | $0.30      | $1          |
| `jalapeno/Qwen3-Next-80B-A3B-Instruct` | 129K    |       |           |       |       |       | $0.15      | $2          |
| `jalapeno/Qwen3-Next-80B-A3B-Thinking` | 131K    |       |           |       |       |       | $0.15      | $2          |
| `jalapeno/Qwen3-VL-235B-A22B-Instruct` | 129K    |       |           |       |       |       | $0.30      | $2          |
| `jalapeno/Qwen3-VL-235B-A22B-Thinking` | 131K    |       |           |       |       |       | $0.98      | $4          |
| `jalapeno/Qwen3.5-122B-A10B`           | 262K    |       |           |       |       |       | $0.40      | $3          |
| `jalapeno/Qwen3.5-27B`                 | 262K    |       |           |       |       |       | $0.30      | $2          |
| `jalapeno/Qwen3.5-35B-A3B`             | 262K    |       |           |       |       |       | $0.25      | $2          |
| `jalapeno/Qwen3.5-397B-A17B`           | 262K    |       |           |       |       |       | $0.60      | $4          |

## Advanced configuration

### Custom headers

```typescript
const agent = new Agent({
  id: "custom-agent",
  name: "custom-agent",
  model: {
    url: "https://api.jalapeno-cloud.ai/v1",
    id: "jalapeno/DeepSeek-V4-Flash",
    apiKey: process.env.JALAPENO_API_KEY,
    headers: {
      "X-Custom-Header": "value"
    }
  }
});
```

### Dynamic model selection

```typescript
const agent = new Agent({
  id: "dynamic-agent",
  name: "Dynamic Agent",
  model: ({ requestContext }) => {
    const useAdvanced = requestContext.task === "complex";
    return useAdvanced
      ? "jalapeno/Qwen3.5-397B-A17B"
      : "jalapeno/DeepSeek-V4-Flash";
  }
});
```