# AI/ML API

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

- **Category:** artificial intelligence
- **Auth:** API_KEY
- **Tools:** 31
- **Triggers:** 0
- **Slug:** `AI_ML_API`
- **Version:** 20260217_00

## Tools

### Cancel Run

**Slug:** `AI_ML_API_CANCEL_RUN`

Tool to cancel a run that is currently in progress. Use when you need to stop an assistant run before it completes.

### Create Assistant

**Slug:** `AI_ML_API_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.

### Create Message

**Slug:** `AI_ML_API_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.

### Create Run

**Slug:** `AI_ML_API_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.

### Create Thread

**Slug:** `AI_ML_API_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.

### Delete Assistant

**Slug:** `AI_ML_API_DELETE_ASSISTANT`

Tool to delete an assistant by ID. Use when you need to remove an assistant that is no longer needed.

### Delete Message

**Slug:** `AI_ML_API_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.

### Delete Thread

**Slug:** `AI_ML_API_DELETE_THREAD`

Tool to delete a thread by its ID. Use when you need to remove an existing thread from the system.

### Get Assistant

**Slug:** `AI_ML_API_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.

### Get Billing Balance

**Slug:** `AI_ML_API_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.

### Get Luma Generation

**Slug:** `AI_ML_API_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.

### Get Message

**Slug:** `AI_ML_API_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.

### Get Response by ID

**Slug:** `AI_ML_API_GET_RESPONSE`

Tool to retrieve a previously generated model response by its unique ID. Use when you need to access details of a specific response, including its output, status, and usage statistics.

### Get Run

**Slug:** `AI_ML_API_GET_RUN`

Tool to retrieve a specific run by ID from a thread. Use when you need to check the status, results, or details of a previously created run.

### Get Run Step

**Slug:** `AI_ML_API_GET_RUN_STEP`

Tool to retrieve a specific run step by its ID within a thread and run. Use when you need detailed information about a particular step's execution status and results.

### Get Thread

**Slug:** `AI_ML_API_GET_THREAD`

Tool to retrieve information about a specific thread by ID. Use when you need to fetch thread details, metadata, or available tool resources for an existing conversation thread.

### List Assistants

**Slug:** `AI_ML_API_LIST_ASSISTANTS`

Tool to list all assistants associated with the account. Use when you need to retrieve available assistants with pagination support.

### List Batches

**Slug:** `AI_ML_API_LIST_BATCHES`

Tool to get the status or results of a batch processing job. Use when you need to check the progress or retrieve results of a previously submitted batch.

### List Luma AI Generations

**Slug:** `AI_ML_API_LIST_LUMA_GENERATIONS`

Tool to fetch user's Luma AI video generations. Use when you need to retrieve a list of all Luma AI video generation tasks for the authenticated user.

### List Thread Messages

**Slug:** `AI_ML_API_LIST_MESSAGES`

Tool to retrieve a list of messages from a specific thread. Use when you need to fetch conversation history or message content from an AI assistant thread.

### List Models

**Slug:** `AI_ML_API_LIST_MODELS`

Tool to list all available AI models from the AI/ML API. Use when you need to retrieve the complete catalog of 400+ models including chat, image, video, voice, and other model types.

### List Models With Details

**Slug:** `AI_ML_API_LIST_MODELS_WITH_DETAILS`

Tool to list all available AI/ML models with detailed information including pricing, features, and capabilities. Use when you need to discover available models or get comprehensive model metadata.

### List Runs

**Slug:** `AI_ML_API_LIST_RUNS`

Tool to list all runs for a specific thread. Use when you need to retrieve runs with pagination support.

### List Run Steps

**Slug:** `AI_ML_API_LIST_RUN_STEPS`

Tool to list the steps in a run. Use when you need to retrieve and examine the execution steps of a specific run within a thread.

### Moderation Completion

**Slug:** `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.

### Submit Tool Outputs

**Slug:** `AI_ML_API_SUBMIT_TOOL_OUTPUTS`

Tool to submit tool outputs for a run that requires action. Use when a run has status 'requires_action' and needs tool call results to continue execution.

### Text Chat Completion

**Slug:** `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.

### Update Assistant

**Slug:** `AI_ML_API_UPDATE_ASSISTANT`

Tool to modify an existing assistant's properties including name, instructions, model, and tools. Use when you need to update an assistant's configuration or behavior after it has been created.

### Update Message

**Slug:** `AI_ML_API_UPDATE_MESSAGE`

Tool to modify metadata for a specific message in a thread. Use when you need to update message metadata such as tags or custom fields.

### Update Run

**Slug:** `AI_ML_API_UPDATE_RUN`

Tool to update a run's metadata with key-value pairs. Use when you need to attach or modify additional information for a specific run.

### Update Thread

**Slug:** `AI_ML_API_UPDATE_THREAD`

Tool to update thread metadata and tool resources in the AI/ML API. Use when you need to modify existing thread properties or attach resources.
