Ai Ml Api

Learn how to use Ai Ml Api with Composio

Overview

Enum

AI_ML_API

Description

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

Authentication Details

api_key
stringRequired

Actions

Tool to classify input text or image for safety using a moderation model. use after receiving user-generated content to filter out unsafe material.

Action Parameters

input
stringRequired
model
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to generate text completions or chat responses using a specified llm model. use after assembling the conversation history to produce the next response.

Action Parameters

frequency_penalty
number
logit_bias
object
max_tokens
integer
messages
arrayRequired
model
stringRequired
n
integerDefaults to 1
presence_penalty
number
stop
array
stream
boolean
temperature
numberDefaults to 1
top_p
numberDefaults to 1
user
string

Action Response

data
object
error
string
successful
boolean