- Category: artificial intelligence
- Auth: API_KEY
- Composio-managed OAuth available? N/A
- Tools: 30
- Triggers: 0
- Slug:
AI_ML_API - Version: 20261101_00
Tools
Cancel Run
Cancel Run
Create Assistant
Create Assistant
Slug:
AI_ML_API_CREATE_ASSISTANTTool 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.Input Parameters
string ("openai/gpt-4o" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4" | "gpt-4-0125-preview" | "gpt-4-1106-preview" | "gpt-3.5-turbo" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-1106" | "o3-mini" | "openai/gpt-4.1-2025-04-14" | "openai/gpt-4.1-mini-2025-04-14" | "openai/gpt-4.1-nano-2025-04-14" | "o1")
required
ID of the model to use for the assistant. Choose from available OpenAI-compatible models.
List of tools enabled for the assistant. Can include code_interpreter, file_search, or custom functions.
Nucleus sampling parameter. The model considers tokens with cumulative probability up to top_p.
Custom key-value pairs for storing additional information. Keys max 64 characters, values max 512 characters.
Controls randomness in outputs. Higher values (e.g., 1.5) make output more random, lower values (e.g., 0.2) make it more deterministic.
Output format specification. Can be ‘auto’, ‘text’, ‘json_object’, or a ResponseFormat object with json_schema.
Output
Create Message
Create Message
Slug:
AI_ML_API_CREATE_MESSAGETool to create a new message in a thread. Use when you need to add a user or assistant message to an existing conversation thread.Input Parameters
The role of the entity creating the message. Must be ‘user’ or ‘assistant’.
Set of up to 16 key-value pairs for storing additional information. Keys can be a maximum of 64 characters and values can be a maximum of 512 characters.
Output
Create Run
Create Run
Slug:
AI_ML_API_CREATE_RUNTool 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.Input Parameters
The ID of the model to be used to execute this run. If not provided, uses the assistant’s default model.
Override the tools the assistant can use for this run. This is useful for enabling or disabling specific functions.
Set of 16 key-value pairs that can be attached to the run. Keys can be a maximum of 64 characters, and values can be a maximum of 512 characters.
The sampling temperature to use, between 0 and 2. Higher values make output more random, lower values more deterministic.
Controls which (if any) tool is called by the model. Can be ‘none’, ‘auto’, or a specific tool.
Overrides the instructions of the assistant. This is useful for customizing behavior on a per-run basis.
Output
Create Thread
Create Thread
Slug:
AI_ML_API_CREATE_THREADTool 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.Input Parameters
Custom key-value pairs for storing additional information (max 16 pairs, keys ≤64 chars, values ≤512 chars).
Output
Delete Assistant
Delete Assistant
Delete Message
Delete Message
Delete Thread
Delete Thread
Get Assistant
Get Assistant
Get Billing Balance
Get Billing Balance
Get Luma Generation
Get Luma Generation
Slug:
AI_ML_API_GET_LUMA_GENERATIONTool 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.Input Parameters
Comma-separated list of generation IDs to fetch. Use the ID(s) returned from the generation creation request.
Output
Get Message
Get Message
Get Response by ID
Get Response by ID
Slug:
AI_ML_API_GET_RESPONSETool 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.Input Parameters
Specify additional output data to include in the model response. Supported values: code_interpreter_call.outputs (python code execution outputs), computer_call_output.output.image_url (image URLs from computer call), file_search_call.results (file search tool call results), message.output_text.logprobs (logprobs with assistant messages), reasoning.encrypted_content (encrypted reasoning tokens for multi-turn conversations).
Output
Get Run
Get Run
Get Run Step
Get Run Step
Get Thread
Get Thread
List Assistants
List Assistants
Slug:
AI_ML_API_LIST_ASSISTANTSTool to list all assistants associated with the account. Use when you need to retrieve available assistants with pagination support.Input Parameters
A cursor for use in pagination. ‘after’ is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
Sort order by the created_at timestamp of the objects. ‘asc’ for ascending order and ‘desc’ for descending order.
A cursor for use in pagination. ‘before’ is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
Output
List Batches
List Batches
List Luma AI Generations
List Luma AI Generations
List Thread Messages
List Thread Messages
Slug:
AI_ML_API_LIST_MESSAGESTool 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.Input Parameters
A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
Output
List Models
List Models
List Models With Details
List Models With Details
List Runs
List Runs
Slug:
AI_ML_API_LIST_RUNSTool to list all runs for a specific thread. Use when you need to retrieve runs with pagination support.Input Parameters
A cursor for use in pagination. ‘after’ is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
Sort order by the created_at timestamp of the objects. ‘asc’ for ascending order and ‘desc’ for descending order.
A cursor for use in pagination. ‘before’ is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
Output
List Run Steps
List Run Steps
Slug:
AI_ML_API_LIST_RUN_STEPSTool 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.Input Parameters
A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
Output
Submit Tool Outputs
Submit Tool Outputs
Slug:
AI_ML_API_SUBMIT_TOOL_OUTPUTSTool 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.Input Parameters
If true, returns a stream of events that happen during the Run as server-sent events. Defaults to false.
Output
Text Chat Completion
Text Chat Completion
Slug:
AI_ML_API_TEXT_CHAT_COMPLETIONTool to generate text completions or chat responses using a specified LLM model. Use after assembling the conversation history to produce the next response.Input Parameters
Sampling temperature between 0 and 2; higher values make output more random, lower values more deterministic.
Output
Update Assistant
Update Assistant
Slug:
AI_ML_API_UPDATE_ASSISTANTTool 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.Input Parameters
Array of enabled tools for the assistant. Each tool should be an object with a ‘type’ field (code_interpreter, file_search, or function).
Nucleus sampling parameter as an alternative to temperature. The model considers tokens with cumulative probability up to top_p. Range: 0-1.
Sampling parameter that controls output randomness. Higher values (e.g., 1.5) make output more random, lower values (e.g., 0.5) make it more deterministic. Range: 0-2.
System instructions that guide the assistant’s behavior and responses. Maximum 256,000 characters.
The level of reasoning effort to use for reasoning models. Options: low, medium, high.
Output
Update Message
Update Message
Slug:
AI_ML_API_UPDATE_MESSAGETool to modify metadata for a specific message in a thread. Use when you need to update message metadata such as tags or custom fields.Input Parameters
Set of up to 16 key-value pairs that can be attached to the message. Keys must be strings up to 64 characters long, and values must be strings up to 512 characters long. This is the only field that can be modified when updating a message.
Output
Update Run
Update Run
Slug:
AI_ML_API_UPDATE_RUNTool to update a run’s metadata with key-value pairs. Use when you need to attach or modify additional information for a specific run.Input Parameters
Key-value pairs for storing additional information about the run. Maximum 16 pairs allowed. Keys can be a maximum of 64 characters, and values can be a maximum of 512 characters.
Output
Update Thread
Update Thread
Slug:
AI_ML_API_UPDATE_THREADTool to update thread metadata and tool resources in the AI/ML API. Use when you need to modify existing thread properties or attach resources.Input Parameters
Set of up to 16 key-value pairs that can be attached to the thread. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.