
aisma
ai.aisma/aisma
Edit videos you already shot with plain words and reference photos. Framing and audio stay.
Documentation
Aisma MCP server and API
Edit a video you already shot by describing the change in plain words, from any AI assistant, agent or script. Remove a person or an object, change an outfit, the background or a product, swap a face from your photos, restyle the clip or add an effect. Aisma keeps the original framing and audio and delivers a private 720p or 1080p result to your Aisma Library.
- MCP server (remote, Streamable HTTP):
https://api.aisma.ai/mcp - ChatGPT app: Aisma in ChatGPT
- REST API:
https://api.aisma.ai/v1(OpenAPI 3.1) - Developer docs: https://aisma.ai/developers
- Official MCP Registry name:
ai.aisma/aisma
This repository holds documentation, the registry server.json and small client examples. The server
itself is hosted by Aisma; there is nothing to install or run.
What you need
- An Aisma account signed in with Google, Apple or email. Guest profiles can't connect apps or hold keys.
- Edits use the connected account's Aisma credits. Confirm each edit's credit cost before it starts. Account and credit information is on the pricing page.
- A clip of 2–60 seconds (MP4 or MOV, up to 500 MB), or a finished video from your Aisma Library. Optionally up to 10 reference photos (JPEG, PNG or WebP).
Use Aisma in ChatGPT
Open the Aisma app in ChatGPT, connect it and sign in to your Aisma account. Attach a video and any reference photos in the chat, then describe the change. You can also choose a finished video from your Aisma Library.
Ask ChatGPT to open the Aisma edit card. In clients that support inline cards, show_edit opens three
real Before/After examples: an outfit change, a new background and object removal. Use on my video
sends the idea back to the chat so you can attach your own video and reference photos; it does not import
the demonstration or start an edit.
The ChatGPT app copies attached files with import_chat_media, then checks their asset ids with
get_asset. For a new user who has never purchased credits or started an edit, the first edit must
go through a preparation question round before it can start, even if the account has enough credits.
The assistant calls start_preview and presents its useful questions in the chat or edit card. A question
round already completed on aisma.ai also satisfies this first-use requirement.
get_preview reads the preparation and answer_preview saves your choices. Once the offer is ready,
confirm its credit cost before start_prepared_edit starts the edit with those answers. Preparation
itself reserves no credits. For an account that has already edited, paid or completed a question round,
preview_unavailable permits the ordinary quote_edit → confirmation → start_edit path. A temporary
unavailable response means try later; a content refusal is shown without switching to that path.
If a first start returns preview_required but preparation returns preview_unavailable, the assistant
explains that preparation is unavailable and points you to Aisma to continue.
It must not keep switching between preview and ordinary start attempts.
The card can show the same account-owned preparation, with its questions and saved choices, and lets you finish the question round and explicitly confirm the current edit cost. With account access, it shows the connected account's actual balance and any shortfall. A changed cost needs another explicit confirmation; refreshing the card or balance never starts an edit. Once started, the card shows progress and a private result player, with Open in Aisma for the full task page. Opening a card does not repeat preparation or start another job.
Follow the task's webUrl in Aisma, or ask ChatGPT to check get_job and provide get_result_link once
the result is ready. Available timing is approximate; a finished result is confirmed by resultReady.
If your client cannot display the card, continue with the same tools and answers in the chat or open the
task in Aisma.
If the account needs more credits, use the pricing page for account information, then return to the same chat and account. The assistant checks the balance again and keeps your selected materials, preview and answers. An expired ordinary quote needs a fresh quote and confirmation. If a prepared edit reports a changed credit cost, confirm that amount to continue with the same preview. In the card, use Refresh balance when you return. You can also choose Use a shorter video to ask for a shorter source at the same quality; attach the new clip and prepare it again to see its new cost. A shorter clip may need fewer credits, but its cost still depends on the prepared edit.
The published app uses https://api.aisma.ai/mcp/catalog. Custom connections to /mcp use the standard
MCP workflow below.
Connect another AI assistant (MCP)
Your client opens Aisma's sign-in page on first use: OAuth 2.1 with PKCE and dynamic client registration, so there is no client ID to copy. On the consent screen you choose what the connection may do and can set an optional monthly credit limit. You can change limits or disconnect at any time in Aisma under Profile → Settings & help → Connected apps and keys (https://aisma.ai/app/api-access).
Prefer a key? Create a personal API key on the same page and send it as Authorization: Bearer aisma_live_….
Each key has its own permissions and limits, adjustable per key on that page.
Claude Code
claude mcp add --transport http aisma https://api.aisma.ai/mcp
# or with a personal API key
claude mcp add --transport http aisma https://api.aisma.ai/mcp --header "Authorization: Bearer $AISMA_API_KEY"
Cursor (~/.cursor/mcp.json or .cursor/mcp.json in a project)
{
"mcpServers": {
"aisma": { "url": "https://api.aisma.ai/mcp" }
}
}
With a key, add "headers": { "Authorization": "Bearer aisma_live_…" } next to url.
VS Code (.vscode/mcp.json)
{
"servers": {
"aisma": { "type": "http", "url": "https://api.aisma.ai/mcp" }
}
}
Claude.ai and Claude Desktop: Settings → Connectors → Add custom connector → https://api.aisma.ai/mcp.
Other clients: any client that supports remote MCP servers over Streamable HTTP works. The server is
stateless and answers protocol revisions 2025-11-25, 2025-06-18 and 2025-03-26. An unauthenticated request
gets 401 with WWW-Authenticate: Bearer resource_metadata=…, which is how clients discover the sign-in.
Uploading through standard MCP
Standard MCP's create_upload returns a one-time HTTPS link and the client uploads the file itself with
an HTTP PUT. This works in assistants that can read your files and run commands, including Claude Code,
Cursor, VS Code and other coding agents. Clients without that capability can use finished videos from
your Aisma Library (list_library → use_library_video). Chat attachments use the ChatGPT app's
import_chat_media flow described above.
Standard MCP tools
| Tool | What it does | Spends credits |
|---|---|---|
create_upload | Returns a one-time HTTPS upload link and an asset id for a video or photo; the assistant PUTs the file itself | No |
get_asset | Status of an upload: uploading, checking, ready, failed or expired | No |
use_library_video | Uses one of your finished Aisma videos as the source of a new edit | No |
quote_edit | Prices an edit of a ready source with your instruction and optional photos, at 720p or 1080p; nothing is charged and the quote holds for 15 minutes | No |
start_edit | Starts a quoted edit and reserves its credits; marked destructive, and the assistant confirms with you first | Yes, after you confirm |
get_job | Status and progress of an edit | No |
list_library | Your Aisma Library, newest first, with each edit's status | No |
get_result_link | A private link to the finished video, valid for one hour | No |
get_account | Your credit balance and this connection's monthly limit and usage | No |
Every tool has a title, read-only or destructive hints and an output schema.
ChatGPT catalog tools
The ChatGPT app shares the standard tools except create_upload and adds these tools for attachments,
preparation and an optional inline card. The standard /mcp endpoint and REST API use the upload → quote →
confirmed start flow. They do not provide interactive preparation questions or catalog previews; Aisma uses its evidence-based
choices for those ordinary edits.
| Tool | What it does | Spends credits |
|---|---|---|
show_edit | Opens the starter card (kind: start), or the connected account's existing preparation or task (kind: preview or job, with its id); does not start an edit | No |
import_chat_media | Copies the video and photos attached in this chat into your private Aisma account | No |
start_preview | Prepares an eligible edit and its questions; reuse the same input on retries and supply a new requestId for an intentionally new preparation with identical input | No |
get_preview | Reads the preparation, questions and offered credit cost | No |
answer_preview | Saves your choices for the current question round | No |
start_prepared_edit | Starts the prepared edit with its saved answers after you confirm the credit amount | Yes, after you confirm |
Try it
- In ChatGPT, attach a clip and say, "Change the background to a snowy pine forest. Ask me the preparation questions and wait for my confirmation before starting."
- "Upload ~/Videos/wedding.mov to Aisma and remove the man in the red jacket behind the couple. Ask me before you start."
- "In product.mp4, swap the clear perfume bottle for the matte-black one in bottle.jpg."
- "Change her gray tracksuit in dance.mp4 to the red suit in photo.png."
- "Take my latest finished Aisma video and turn the corridor into a snowy pine forest at 1080p."
- "Check my Aisma edit and send me the link when it's ready."
REST API quick start
Send your key as a bearer token and a descriptive User-Agent header (for example my-app/1.0): some HTTP
libraries' default agents are refused by our edge network. Bodies are JSON, ids are UUIDs.
POST /v1/uploadsreturnsuploadUrl,method(PUT) andheaders. PUT the file there with those headers.- Poll
GET /v1/assets/{id}untilstatusisready. POST /v1/quotesprices the edit. A202withretryAfterMsmeans the clip is still being checked; ask again after that delay.POST /v1/jobswith anIdempotency-Keyheader starts the quoted edit. A retry with the same key returns the same edit.- Poll
GET /v1/jobs/{id}(no more often than every 10 seconds) or register a webhook, thenPOST /v1/jobs/{id}/resultfor a one-hour link.
export AISMA_API_KEY=aisma_live_...
UA="my-app/1.0"
curl -s -X POST https://api.aisma.ai/v1/uploads \
-H "Authorization: Bearer $AISMA_API_KEY" -H "User-Agent: $UA" -H "Content-Type: application/json" \
-d '{"kind":"video","contentType":"video/mp4","bytes":12345678}'
# PUT clip.mp4 to uploadUrl with the returned headers, then wait for GET /v1/assets/ASSET_ID → ready
curl -s -X POST https://api.aisma.ai/v1/quotes \
-H "Authorization: Bearer $AISMA_API_KEY" -H "User-Agent: $UA" -H "Content-Type: application/json" \
-d '{"sourceId":"ASSET_ID","brief":"change the background to a snowy forest","quality":"720p"}'
curl -s -X POST https://api.aisma.ai/v1/jobs \
-H "Authorization: Bearer $AISMA_API_KEY" -H "User-Agent: $UA" -H "Content-Type: application/json" \
-H "Idempotency-Key: first-edit-0001" \
-d '{"quoteId":"QUOTE_ID"}'
curl -s -X POST https://api.aisma.ai/v1/jobs/JOB_ID/result \
-H "Authorization: Bearer $AISMA_API_KEY" -H "User-Agent: $UA"
Complete scripts that upload, price, ask you to confirm, start and download:
examples/edit.sh(curl + jq)examples/edit.py(Python 3 +requests)examples/edit.mjs(Node.js 18+fetch)
Errors share one JSON shape, {"error": {"code", "message"}}, with readable messages. Webhooks
(job.completed, job.failed, job.settled) are signed per Standard Webhooks. Scopes, limits, webhooks
and the error table are documented at https://aisma.ai/developers.
Privacy, terms and support
- Uploads and results are private to your account; every media link is signed and short-lived.
- Terms of Use (section 8, API and connected apps): https://aisma.ai/terms
- Privacy Policy: https://aisma.ai/privacy
- Pricing: https://aisma.ai/pricing
- Support: support@aisma.ai · https://aisma.ai/support
Aisma is made by BEINTOUCH PTE. LTD., Singapore.
License
The examples and documentation in this repository are released under the MIT License. The Aisma service itself is governed by the Terms of Use above.
No installation packages available.