← Back to Plugins
Integration

1minai

ReiatsuSan By ReiatsuSan 👁 5 views ▲ 0 votes

OpenClaw plugin for 1min.ai APIs. Provides access to multi-model AI chat (GPT-4o, Claude 3.5, Gemini), image generation (Flux, DALL-E) and asset management.

GitHub

Install

npm install
```

Configuration Example

{
  "plugins": {
    "1minai": {
      "apiKey": "YOUR_1MIN_AI_API_KEY",
      "defaultModel": "gpt-4o",
      "defaultImageModel": "dall-e-3"
    }
  }
}

README

# 1min.AI Plugin for OpenClaw

This plugin allows your OpenClaw agents to interact directly with the 1min.ai APIs. It provides a suite of tools for multi-model AI chat, image generation, asset uploading, and conversation management.

## Features

- **Multi-model Chat (`onemin_chat`)**: Chat with multiple AI models like GPT-4o, Claude 3.5 Sonnet, Gemini 1.5 Pro, Llama 3.3, and more. Supports web search grounding, persistent memory, multi-turn conversations, and file/image attachments.
- **Image Generation (`onemin_generate_image`)**: Generate images using models like Flux, DALL-E 3, Stable Diffusion XL, and Leonardo Phoenix.
- **Asset Uploading (`onemin_upload_asset`)**: Upload files (images, PDFs, documents) from a local path or a public URL to use in chat or image generation.
- **Conversation Management**: Create (`onemin_create_conversation`), list (`onemin_list_conversations`), and delete (`onemin_delete_conversation`) chat sessions, including specialized chats (PDFs, YouTube videos).

## Installation

1. Clone or download this plugin to your OpenClaw workspace directory.
2. Install dependencies:

```bash
npm install
```

## Configuration

In your OpenClaw configuration for this plugin, you must provide your 1min.ai API key. You can also customize the default models used if no model is specified in the tool prompt.

| Key | Type | Required | Default | Description |
| :--- | :---: | :---: | :--- | :--- |
| `apiKey` | string | **Yes** | - | Your 1min.ai API key (from [https://app.1min.ai/api](https://app.1min.ai/api)). |
| `defaultModel` | string | No | `gpt-4o-mini` | Default AI model to use for the `onemin_chat` tool. |
| `defaultImageModel` | string | No | `black-forest-labs/flux-schnell` | Default AI model to use for the `onemin_generate_image` tool. |

### Example Plugin Configuration

```json
{
  "plugins": {
    "1minai": {
      "apiKey": "YOUR_1MIN_AI_API_KEY",
      "defaultModel": "gpt-4o",
      "defaultImageModel": "dall-e-3"
    }
  }
}
```

## Testing

This plugin is configured to use [Vitest](https://vitest.dev/) for testing.

To run tests:
```bash
npm test
```

To run tests in watch mode:
```bash
npm run test:watch
```
integration

Comments

Sign in to leave a comment

Loading comments...