# AI/ML API

AI/ML API provides a suite of AI models and solutions for various tasks, including text generation, image processing, and more.

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**AI/ML API** authenticates with an API key. Generate the credential in your AI/ML API account, then paste it into FlyMyAI the first time an agent uses an AI/ML API action.

[Get your AI/ML API credential →](https://aimlapi.com/app/keys/?from=get-api-key)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `AI/ML API Key` | Your AI/ML API key used for authentication. _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `AI_ML_API_MODERATION_COMPLETION` | Tool to classify input text or image for safety using a moderation model. use after receiving user-generated content to filter out unsafe material. | `model`, `input` |
| `AI_ML_API_TEXT_CHAT_COMPLETION` | Tool to generate text completions or chat responses using a specified llm model. use after assembling the conversation history to produce the next response. | `model`, `messages` |

## Links

- [AI/ML API website](https://aimlapi.com/)
- [Get API key / credential](https://aimlapi.com/app/keys/?from=get-api-key)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
