# AI/ML API AI integration on Definable

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

## What this connects

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

Vendor: https://aimlapi.com/

## Tools available

**30** tools available. First 12:

- `AI_ML_API_CANCEL_RUN` — Cancel Run — Tool to cancel a run that is currently in progress. Use when you need to stop an assistant run before it completes.
- `AI_ML_API_CREATE_ASSISTANT` — Create Assistant — Tool to create an AI assistant with configurable model, instructions, and tools. Use when you need to set up a new assistant that can maintain conversation context and use tools like code_interpreter or file_search.
- `AI_ML_API_CREATE_MESSAGE` — Create Message — Tool to create a new message in a thread. Use when you need to add a user or assistant message to an existing conversation thread.
- `AI_ML_API_CREATE_RUN` — Create Run — Tool to create a run that executes an assistant on a thread. The assistant processes messages in the thread and generates responses based on its instructions and available tools.
- `AI_ML_API_CREATE_THREAD` — Create Thread — Tool to create a new thread for conversation with an assistant. Threads store messages and maintain context across interactions. Use when starting a new conversation or when you need a fresh context for assistant interactions.
- `AI_ML_API_DELETE_ASSISTANT` — Delete Assistant — Tool to delete an assistant by ID. Use when you need to remove an assistant that is no longer needed.
- `AI_ML_API_DELETE_MESSAGE` — Delete Message — Tool to delete a specific message from a thread. Use when you need to remove an unwanted or erroneous message from a conversation thread.
- `AI_ML_API_DELETE_THREAD` — Delete Thread — Tool to delete a thread by its ID. Use when you need to remove an existing thread from the system.
- `AI_ML_API_GET_ASSISTANT` — Get Assistant — Tool to retrieve details of a specific assistant by ID. Use when you need to fetch configuration, model settings, instructions, or available tools for an existing assistant.
- `AI_ML_API_GET_BILLING_BALANCE` — Get Billing Balance — Tool to retrieve the current billing balance for the account. Use when you need to check available credits, balance status, or auto-debit configuration.
- `AI_ML_API_GET_LUMA_GENERATION` — Get Luma Generation — Tool to fetch Luma AI video generation results by generation IDs. Use after creating a generation to check its status and retrieve the generated video URL when completed.
- `AI_ML_API_GET_MESSAGE` — Get Message — Tool to retrieve information about a specific message by its ID. Use when you need to fetch details of a particular message in a thread.

## Auth

Auth schemes: `API_KEY`.

## How agents use AI/ML API

Inside a Definable workflow, AI/ML API is one of the tools the **Distributor specialist** can call. Example coordination patterns:

- **Researcher → AI/ML API** — the Researcher (GPT-5.5) pulls context from AI/ML API (records, threads, documents), synthesises findings, and briefs the rest of the team.
- **Writer → Distributor → AI/ML API** — the Writer (Claude Opus 4.7) drafts copy in brand voice, the Verifier passes it, then the Distributor writes the result into AI/ML API (create record, post message, draft email).
- **Designer / Engineer → Distributor → AI/ML API** — the Designer ships an asset or the Engineer ships a code change, the Distributor delivers it via AI/ML API (attach file, open PR comment, post status).

The Verifier checks every AI/ML API call. On rate limit, schema drift, or auth refresh it self-heals and retries — the workflow completes without manual intervention.

## Categories

- artificial intelligence — https://definable.ai/apps/category/artificial-intelligence/
- ai models — https://definable.ai/apps/category/ai-models/

## Related

- HTML page: https://definable.ai/apps/ai_ml_api/
- Same category (artificial intelligence): https://definable.ai/apps/category/artificial-intelligence/
- All integrations: https://definable.ai/apps/
- Workflow (multi-agent loop): https://definable.ai/workflow/
- Apps llms.txt index: https://definable.ai/llms-apps.txt
