AIML API MCP server
29 operations0 webhooks
Unified API gateway for accessing many AI and machine learning models.
Try AIML API with your agent
Connect AIML API, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in AIML API on my account, then run one read-only example and show me the result.
AIML API tools and triggers
Tools are what your agent can do in AIML API through Corsair's MCP server. Triggers are the AIML API events a routine can start from.
Runs
- CancelWrite
Cancel an in-progress run.
runs.cancel
- CreateWrite
Create a run for a thread and assistant.
runs.create
- GetRead-only
Retrieve a run by ID.
runs.get
- ListRead-only
List runs for a thread.
runs.list
- Submit Tool OutputsWrite
Submit tool outputs for a run.
runs.submitToolOutputs
- UpdateWrite
Update a run.
runs.update
Assistants
- CreateWrite
Create a new AIMLAPI assistant.
assistants.create
- DeleteWrite
Delete an assistant.
assistants.delete
- GetRead-only
Retrieve an assistant by ID.
assistants.get
- ListRead-only
List configured assistants.
assistants.list
- UpdateWrite
Update an assistant definition.
assistants.update
Messages
- CreateWrite
Create a message in a thread.
messages.create
- DeleteWrite
Delete a message.
messages.delete
- GetRead-only
Retrieve a message by ID.
messages.get
- ListRead-only
List messages in a thread.
messages.list
- UpdateWrite
Update a message.
messages.update
Threads
- CreateWrite
Create an AIMLAPI thread.
threads.create
- DeleteWrite
Delete a thread.
threads.delete
- GetRead-only
Retrieve a thread by ID.
threads.get
- UpdateWrite
Update thread metadata or resources.
threads.update
Models
- ListRead-only
List models currently available to the AIMLAPI account.
models.list
- List With DetailsRead-only
List models with pagination metadata and expanded details.
models.listWithDetails
Run Steps
- GetRead-only
Retrieve a single run step.
runSteps.get
- ListRead-only
List run steps for a run.
runSteps.list
Batches
- ListRead-only
List or retrieve batch processing status and results.
batches.list
Billing
- Get BalanceRead-only
Retrieve account billing balance.
billing.getBalance
Chat
- Create CompletionWrite
Generate a chat completion using an AIMLAPI-compatible model.
chat.createCompletion
Luma
- Get GenerationRead-only
Retrieve a Luma video generation by ID.
luma.getGeneration
Responses
- GetRead-only
Retrieve a response by ID.
responses.get
Connect AIML API to Claude, ChatGPT or Cursor
- 1
Connect AIML API in Corsair
Add your AIML API API key once in Corsair. Corsair stores the credential encrypted and makes the AIML API API calls for your agent, so it never goes into a prompt or a config file. Connect AIML API
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs AIML API. On a ChatGPT personal plan, connect AIML API here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Install Corsair from ChatGPT's plugin directory, connect it and sign in. A custom MCP server with the address works too, but personal plans get its read tools only.Add to Cursor / Grok BuildOr add this to~/.cursor/mcp.json. It opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. None of AIML API's operations are destructive, so in the default Cautious mode they all run right away. Strict mode asks before each of its 14 writes, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/aimlapi, add the AIML API plugin, and connect with an API key. Then call methods like corsair.aimlapi.api.assistants.create() from your app. Corsair syncs data per tenant.
Yes. AIML API requires an API key from your AIML API account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit AIML API, GitHub, Notion, Stripe, and the rest. Trigger AIML API from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for unified API gateway for accessing many AI and machine learning models. Common builds include sync jobs, admin tooling, and agents that call AIML API APIs from your backend. Local DB entities let you query synced AIML API records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per AIML API API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/aimlapi in the open repo. When AIML API ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your AIML API data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store AIML API data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put AIML API on a link in Strict mode and every write waits for your approval, while destructive actions are refused. None of the AIML API operations are destructive, so the default Cautious mode runs them all without asking. You can change a link's mode at hub.corsair.dev/me.