Blog

Connect an AI agent to FrameIsle over MCP

By Luo · Published

FrameIsle has an MCP server, so an AI agent can use the same models you use in the workbench. This guide covers what the server exposes and how to use it without surprises. I checked the endpoint and the tool list on 2026-11-30.

Endpoint and authentication

The server is at https://frameisle.xprismai.com/mcp. It needs one Bearer API key, sent in the Authorization header. Without a key it returns HTTP 401 with a JSON error saying that one Bearer API key is required.

Most MCP clients that support remote servers let you set a URL and a custom header. The exact config differs by client, so follow your client’s documentation for remote servers and use:

URL:     https://frameisle.xprismai.com/mcp
Header:  Authorization: Bearer <your FrameIsle API key>

Keep the key out of chat messages, screenshots and public repos. Treat it as you would a card number, because generation tools spend your balance.

The tools

Tool What it does Scope it needs
list_models Lists the models you can use with their capabilities and current prices models:read
generate_video Starts a video generation task tasks:write
generate_image Starts an image generation task tasks:write
generate_text Starts a text generation task tasks:write
get_task Reads a task’s status tasks:read
get_result Returns the finished result, or the status if it is not done tasks:read
recover_request Finds a task again from its idempotency key tasks:read
import_asset Imports an image, video or audio file and returns a reference assets:write
get_balance Reads your balance, limited credit and held amount balance:read
list_payment_options Lists products, currencies and payment methods payments:read
create_payment_order Creates an unpaid order and returns a checkout link payments:write
get_payment_order Reads the status of one of your orders payments:read

The generation flow

  1. Call list_models and pick a model that supports what you want. Use the model identifier it returns.
  2. Call get_balance so the agent knows what it can spend.
  3. Call generate_video, generate_image or generate_text with an idempotency_key of your own (up to 128 characters) and a request object that contains at least model and prompt. The request takes the same JSON parameters as the public video, image and Chat Completions formats.
  4. The call only accepts the task. It does not wait for the result and returns an ID.
  5. Poll get_task, then call get_result when it is done. get_result returns the status for an unfinished task, and the resource URL or full text once it has finished.

Billing: generation reserves and settles your balance at the model’s current price.

Retrying safely

If a call times out before you see a task ID, do not just send it again. Call recover_request with the same operation (video.create, image.create, image.edit or text.create) and the same idempotency key to get the original task back. If you do retry the generation itself, use the same idempotency key and the same parameters, which avoids creating a second paid task.

Keeping an agent from overspending

What I did not test

I checked the endpoint response and the tool list. I did not publish example results in this guide, and I did not test every client. If a client setup does not work, check the header format first.

FAQ

What is the FrameIsle MCP server URL?

https://frameisle.xprismai.com/mcp. Without a Bearer API key it answers with HTTP 401 and the message that one Bearer API key is required.

Which tools does the FrameIsle MCP server expose?

list_models, generate_video, generate_image, generate_text, get_task, get_result, recover_request, import_asset, get_balance, list_payment_options, create_payment_order and get_payment_order.

Can an agent pay for me?

No. create_payment_order only creates an order and returns a checkout link or QR code for you to pay. It does not charge a card or add balance.

Sources