RelayMe

Plan product visuals, estimate generation costs and run saved image and video workflows from an MCP client.

Hosted MCP Server

npx add-mcp 'https://api.relayme.ai/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

Connect RelayMe to Claude or ChatGPT

Choose a platform and sign in to RelayMe to authorize it. Then plan new creative work or use your saved workflows in chat.

Claude

OAuth 2.1

The name and URL are prefilled. Confirm, then sign in to RelayMe and authorize the connection.

Add RelayMe to Claude

ChatGPT

Custom MCP

Open ChatGPT Plugins

  1. Select “+”, then “Add custom MCP server.”
  2. Name it RelayMe, paste the URL below and leave authentication set to OAuth.
  3. Review the prompt, then create and install the plugin. Sign in to RelayMe and authorize it when prompted.

Once connected, try a creative brief

Select RelayMe in a new chat. In Claude, use “+” → “Connectors.” In ChatGPT, type @ and choose RelayMe. Planning uses no credits. Review the plan in Creative Studio before generating.

Try your saved workflows

Missing the add option or seeing more settings?

If you previously authorized workflows only, add RelayMe again and approve creative planning.

Claude Free allows one custom connector. If the form does not open, sign in to Claude and try again, or add the same URL from Customize → Connectors. On team plans, a workspace owner may need to add it first. If Claude asks how to register the client, select “Register automatically.” Claude help

Use ChatGPT on the web. If “Add custom MCP server” is missing, check that your workspace allows creating custom plugins. ChatGPT help

The run lifecycle

  1. 01Discover a workflow and inspect its input schema
  2. 02Provide inputs and review the cost estimate
  3. 03Submit a run with a stable idempotency key
  4. 04Poll at the supplied interval for a terminal status and outputs

1. Find an available workflow

GET /api/ai-tools/v1/workflows

Create an API key in the developer area after signing in and keep it on your server. Replace the key, workflow ID and input node IDs in these examples with your own values.

export RELAYME_BASE_URL="https://api.relayme.ai"
export RELAYME_API_KEY="<your-api-key>"

curl "$RELAYME_BASE_URL/api/ai-tools/v1/workflows" \
  -H "Authorization: Bearer $RELAYME_API_KEY"
const workflowsResponse = await fetch("https://api.relayme.ai/api/ai-tools/v1/workflows", {
  headers: { Authorization: \`Bearer ${process.env.RELAYME_API_KEY}\` },
});
const { data: workflows } = await workflowsResponse.json();
import os, requests

res = requests.get(
    "https://api.relayme.ai/api/ai-tools/v1/workflows",
    headers={"Authorization": f"Bearer {os.environ['RELAYME_API_KEY']}"},
)
workflows = res.json()

2. Inspect inputs and outputs

GET /workflows/{id}/schema

Supply inputs according to inputSchema. Check unsupportedNodes first: browser-only tool nodes may not execute on the server. Output keys correspond to outputSchema.

# Replace 123 with a workflow ID returned for your account.
export WORKFLOW_ID="123"
curl "$RELAYME_BASE_URL/api/ai-tools/v1/workflows/$WORKFLOW_ID/schema" \
  -H "Authorization: Bearer $RELAYME_API_KEY"
const workflowId = "123";
const schemaResponse = await fetch(\`https://api.relayme.ai/api/ai-tools/v1/workflows/${workflowId}/schema\`, {
  headers: { Authorization: \`Bearer ${process.env.RELAYME_API_KEY}\` },
});
const schema = await schemaResponse.json();
workflow_id = "123"
schema = requests.get(
    f"https://api.relayme.ai/api/ai-tools/v1/workflows/{workflow_id}/schema",
    headers={"Authorization": f"Bearer {os.environ['RELAYME_API_KEY']}"},
).json()

3. Estimate the run cost

POST /workflows/{id}/estimate

Review estimatedCost, currency, per-node estimates and assumptions. exact: false means the estimate has uncertainty. Submit a run once its parameters and expected cost are acceptable.

# Replace text-1 with an input node ID from your workflow schema.
curl -X POST "$RELAYME_BASE_URL/api/ai-tools/v1/workflows/$WORKFLOW_ID/estimate" \
  -H "Authorization: Bearer $RELAYME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"inputs":{"text-1":"A clean product photo on a white background"}}'
const estimateResponse = await fetch(\`https://api.relayme.ai/api/ai-tools/v1/workflows/${workflowId}/estimate\`, {
  method: "POST",
  headers: {
    Authorization: \`Bearer ${process.env.RELAYME_API_KEY}\`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"inputs":{"text-1":"A clean product photo on a white background"}}),
});
const estimate = await estimateResponse.json();
estimate = requests.post(
    f"https://api.relayme.ai/api/ai-tools/v1/workflows/{workflow_id}/estimate",
    headers={"Authorization": f"Bearer {os.environ['RELAYME_API_KEY']}"},
    json={"inputs":{"text-1":"A clean product photo on a white background"}},
).json()

4. Submit and save the run ID

POST /workflows/{id}/runs

A newly accepted run returns HTTP 202, Location, Retry-After and data.runId. An idempotent replay may return HTTP 200; read data.runId from that response too. Bind the idempotency key to one business operation: reuse it for network retries and use a new key for a new operation.

# Create a unique key for each intended run; reuse it for retries of that run.
export RUN_KEY="product:YOUR-PRODUCT-ID:hero-image:v1"
curl -i -X POST "$RELAYME_BASE_URL/api/ai-tools/v1/workflows/$WORKFLOW_ID/runs" \
  -H "Authorization: Bearer $RELAYME_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $RUN_KEY" \
  -d '{"inputs":{"text-1":"A clean product photo on a white background"}}'
const runResponse = await fetch(\`https://api.relayme.ai/api/ai-tools/v1/workflows/${workflowId}/runs\`, {
  method: "POST",
  headers: {
    Authorization: \`Bearer ${process.env.RELAYME_API_KEY}\`,
    "Content-Type": "application/json",
    "Idempotency-Key": "product:YOUR-PRODUCT-ID:hero-image:v1",
  },
  body: JSON.stringify({"inputs":{"text-1":"A clean product photo on a white background"}}),
});
const { data: { runId } } = await runResponse.json();
run_resp = requests.post(
    f"https://api.relayme.ai/api/ai-tools/v1/workflows/{workflow_id}/runs",
    headers={
        "Authorization": f"Bearer {os.environ['RELAYME_API_KEY']}",
        "Idempotency-Key": "product:YOUR-PRODUCT-ID:hero-image:v1",
    },
    json={"inputs":{"text-1":"A clean product photo on a white background"}},
).json()
run_id = run_resp["data"]["runId"]

5. Poll for the result

GET /workflow-runs/{runId}

Wait according to Retry-After or retryAfterSeconds. QUEUED, RUNNING and CANCEL_REQUESTED are not terminal. Read outputs on COMPLETED, inspect node errors on FAILED and stop polling on CANCELLED. Signed webhooks are also available when creating a run.

export RUN_ID="<runId-from-the-202-response>"
curl "$RELAYME_BASE_URL/api/ai-tools/v1/workflow-runs/$RUN_ID" \
  -H "Authorization: Bearer $RELAYME_API_KEY"
const statusResponse = await fetch(\`https://api.relayme.ai/api/ai-tools/v1/workflow-runs/${runId}\`, {
  headers: { Authorization: \`Bearer ${process.env.RELAYME_API_KEY}\` },
});
const status = await statusResponse.json();
status = requests.get(
    f"https://api.relayme.ai/api/ai-tools/v1/workflow-runs/{run_id}",
    headers={"Authorization": f"Bearer {os.environ['RELAYME_API_KEY']}"},
).json()

Connect with the HTTP API and Agent Skills

  1. Sign in and create an API key in the developer area. Creating a key is free, but generation and workflow runs spend credits, so the account needs enough balance or those requests are refused.
  2. Download the Agent Skill bundle and unzip it: five folders, one skill each, each with a SKILL.md. Put them wherever your agent loads skills from (see your agent’s documentation).
  3. Set RELAYME_API_KEY in the agent’s environment. Keep it in a secret store or on your server, never in a prompt.
  4. Start with one direct generation, for example: Use relayme-creative to generate one 1K, 1:1 product image of a white ceramic mug on a light grey background with Nano Banana. Poll the task until it completes and give me the image link. This spends credits at that model’s rate.
curl -LO https://api.relayme.ai/api/ai-tools/v1/skills.zip
unzip skills.zip -d relayme-skills
ls relayme-skills
# relayme-agent  relayme-chat  relayme-creative  relayme-tasks  relayme-workflows
# each folder contains SKILL.md

export RELAYME_API_KEY="<your-api-key>"

Which calls spend credits

Tool names follow function-tools.json.

ToolWhat it doesSpends credits?
relayme_generate_imageDirect image generationSpends credits The image model’s per-image rate
relayme_generate_videoDirect video generationSpends credits The video model’s per-second rate
relayme_chatText chatSpends credits The selected text model’s rate
relayme_run_workflowRun a saved workflowSpends credits Each generation node in the run
relayme_estimate_workflowEstimate a workflowNo (0 credits)
relayme_list_models relayme_list_workflows relayme_get_workflow relayme_get_workflow_schemaDiscover models and workflows, read input schemasNo (0 credits)
relayme_get_task relayme_list_tasks relayme_get_workflow_run relayme_list_workflow_runsCheck task and run statusNo (0 credits)
relayme_validate_workflow relayme_create_workflow relayme_update_workflow relayme_delete_workflowValidate, create, update or delete workflowsNo (0 credits)
relayme_cancel_workflow_runCancel a runCancelling is free Calls already sent to a provider may still finish and be billed

What the API does not do

  • Browser-side tool nodes (image crop, video first and last frame) cannot run on the server. They are listed in unsupportedNodes, and a workflow that depends on them cannot complete through the API.
  • An estimate is not the final price: nodes that depend on generated upstream content may be estimated with placeholders (exact: false), and the actual charge is what the run records.
  • A new account has no saved workflows: save one in the workspace or create one through the API before the workflow list returns anything.
  • Direct image and video generation has no idempotency guarantee; after a timeout, check the task list before resubmitting.

Frequently asked questions

What does the API support?

Workflow discovery, schemas, estimates, execution and cancellation, plus chat and direct image/video generation. Use the public OpenAPI and individual skills for the current contracts.

Does retrying create another workflow run?

Reuse the original Idempotency-Key for the same workflow-run request to avoid creating a duplicate run. Direct image/video generation does not offer the same idempotency guarantee; check task history after a timeout instead of blindly resubmitting.

Is an estimate the final charge?

No. Nodes that depend on generated upstream content may use placeholders and return exact: false with assumptions. Final cost depends on actual model usage and submitted calls.

Can a cancelled run still incur charges?

Yes. Cancellation stops scheduling subsequent nodes, but tasks already submitted to providers may complete and incur charges. Check inFlightTaskMayComplete and the terminal run status.