Skip to main content
Every aimlapi.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.

Assistants

create

assistants.create Create a new AIMLAPI assistant. Risk: write
Input
Output

delete

assistants.delete Delete an assistant. Risk: write
Input Output

get

assistants.get Retrieve an assistant by ID. Risk: read
Input Output

list

assistants.list List configured assistants. Risk: read
Input Output

update

assistants.update Update an assistant definition. Risk: write
Input
Output

Batches

list

batches.list List or retrieve batch processing status and results. Risk: read
Input Output

Billing

getBalance

billing.getBalance Retrieve account billing balance. Risk: read
Input: empty object Output

Chat

createCompletion

chat.createCompletion Generate a chat completion using an AIMLAPI-compatible model. Risk: write
Input
Output

Luma

getGeneration

luma.getGeneration Retrieve a Luma video generation by ID. Risk: read
Input Output

Messages

create

messages.create Create a message in a thread. Risk: write
Input
Output

delete

messages.delete Delete a message. Risk: write
Input Output

get

messages.get Retrieve a message by ID. Risk: read
Input Output

list

messages.list List messages in a thread. Risk: read
Input Output

update

messages.update Update a message. Risk: write
Input
Output

Models

list

models.list List models currently available to the AIMLAPI account. Risk: read
Input: empty object Output: object

listWithDetails

models.listWithDetails List models with pagination metadata and expanded details. Risk: read
Input Output: object

Responses

get

responses.get Retrieve a response by ID. Risk: read
Input Output

Runs

cancel

runs.cancel Cancel an in-progress run. Risk: write
Input Output

create

runs.create Create a run for a thread and assistant. Risk: write
Input
Output

get

runs.get Retrieve a run by ID. Risk: read
Input Output

list

runs.list List runs for a thread. Risk: read
Input Output

submitToolOutputs

runs.submitToolOutputs Submit tool outputs for a run. Risk: write
Input Output

update

runs.update Update a run. Risk: write
Input
Output

Run Steps

get

runSteps.get Retrieve a single run step. Risk: read
Input Output

list

runSteps.list List run steps for a run. Risk: read
Input Output

Threads

create

threads.create Create an AIMLAPI thread. Risk: write
Input
Output

delete

threads.delete Delete a thread. Risk: write
Input Output

get

threads.get Retrieve a thread by ID. Risk: read
Input Output

update

threads.update Update thread metadata or resources. Risk: write
Input
Output