Skip to main content
Glama

RelaySwitch

Server Details

Every major chat, image and video model on one prepaid key. OpenAI, Anthropic and Gemini formats.

If you are the author of this connector, you can claim ownership by verifying the domain or GitHub account it belongs to. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
ChatGPT
–
Claude
–

TDQS

Score is being calculated.

Available Tools

15 tools
chatSend a chat requestInspect

Sends messages to any chat model id through POST /v1/chat/completions and returns the answer, the token usage and what the request cost. system adds instructions, image_urls lets a model that sees images look at them (a file generate made works), web_search lets the model search while it answers. Billed to the key in the MCP request's Authorization header (Bearer sk-relay-live-...); without one it fails.

NameRequiredDescriptionDefault
modelYesA chat model id from list_models.
systemNoInstructions placed ahead of the conversation as a system message.
messagesYesThe conversation, OpenAI chat format.
image_urlsNoImage URLs attached to the last user message, for the chat models that take images (input_modalities in list_models). A file generate made works.
max_tokensNoCap on completion tokens.
web_searchNoTrue: the model may search the web while it answers (billed per search, the price in GET /v1/catalog server_tools).
temperatureNo
compareAsk several models the same thingInspect

Sends the same conversation (or one prompt) to 2 to 5 chat model ids at once through POST /v1/chat/completions and returns every answer side by side with its token usage, cost and time, plus the total. For a second opinion from another model, or to pick the model that answers a kind of question best. Completions are capped at max_tokens each (default 1024). Each model is billed to the key in the MCP request's Authorization header; a model that fails is reported and not charged.

NameRequiredDescriptionDefault
modelsYes2 to 5 chat model ids from list_models, asked at the same time.
promptNoOne user message, in place of messages.
systemNoInstructions placed ahead of the conversation as a system message.
messagesNoThe conversation, OpenAI chat format.
image_urlsNoImage URLs attached to the last user message, for the chat models that take images (input_modalities in list_models). A file generate made works.
max_tokensNoCap on completion tokens per model. Default 1024.
temperatureNo
embedTurn text into vectors
Read-onlyIdempotent
Inspect

Embeds one text or up to 64 through POST /v1/embeddings with an embedding model id from list_models (type embedding) and returns one vector per text, in order, with the token usage and the charge. Billed to the key in the MCP request's Authorization header.

NameRequiredDescriptionDefault
inputYesOne text, or up to 64 texts, to embed.
modelYesAn embedding model id from list_models (type embedding).
estimateEstimate what a request costs
Read-onlyIdempotent
Inspect

The cost of a request on every chat model (or the ids given), cheapest first, with the developer's list cost and the saving. Give input_tokens, or a prompt / messages to count from. With the caller's key, prices are the key's own (price locks included). Live from POST /v1/estimate.

NameRequiredDescriptionDefault
modelsNoModel ids to price. Default: every chat model, cheapest first.
promptNoText to estimate the prompt tokens from, instead of input_tokens.
messagesNoChat messages to estimate from, instead of input_tokens.
input_tokensNoPrompt tokens. Give this or a prompt / messages to count from.
output_tokensNoCompletion tokens. Default 1000.
generateGenerate an image, video, speech, music or 3D fileInspect

Runs any media model id from list_media_models with its settings (see media_model) through POST /v1/generations, waits up to wait_seconds for the files, and returns the generation: a link per file (kept 30 days), a finished image inline, and the charge. A video that is still running when the wait ends is returned as it stands; call generation with its id to keep waiting. Charged to the key in the MCP request's Authorization header when the model accepts the task; a failed generation is refunded in full. To go from an image to a video or an edit, pass the image's URL in image_urls.

NameRequiredDescriptionDefault
inputYesThe model's settings, as media_model lists them under params: prompt, size or aspect_ratio, resolution, duration, image_urls, text, voice... A setting left out takes the model's default.
modelYesA media model id from list_media_models.
previewNoDefault true: a finished image comes back inline as image content besides its link.
wait_secondsNoSeconds to wait for the files before answering with the generation as it stands, 0 to 120. Images usually finish inside the default 60; a video takes minutes, so follow up with generation.
generationA generation's status and files
Read-onlyIdempotent
Inspect

One generation by id: its status, progress, files and charge, waiting up to wait_seconds for it to finish first. Use it after generate answers with a video still running. Needs the key the generation was made with. Live from GET /v1/generations/{id}.

NameRequiredDescriptionDefault
idYesThe generation id generate answered with (gen_ then 24 hex characters).
previewNoDefault true: a finished image comes back inline as image content besides its link.
wait_secondsNoSeconds to wait for the files before answering with the generation as it stands, 0 to 120. Images usually finish inside the default 60; a video takes minutes, so follow up with generation.
generationsList the generations made on this key's organization
Read-onlyIdempotent
Inspect

The organization's generations, newest first, each with its status, model, files and charge: the asset library behind generate. Filter by kind, model or status; page with before. Files are kept 30 days. Needs the key. Live from GET /v1/generations.

NameRequiredDescriptionDefault
kindNo
limitNoHow many, newest first. Default 20.
modelNoOnly this media model id.
beforeNoOnly generations created before this Unix time (seconds, or the ms next_before of the last page).
statusNo
list_media_modelsList image, video, speech and 3D models and prices
Read-onlyIdempotent
Inspect

Every media model on RelaySwitch with its id, kind, endpoint, unit and price per image, second, generation or minute at each setting, next to the developer's price where recorded. No key needed. Live from GET /v1/catalog/media.

NameRequiredDescriptionDefault
kindNoOnly models of this kind.
searchNoA substring of the model id or name (nano-banana, veo, kling...).
list_modelsList every text model and price
Read-onlyIdempotent
Inspect

Every chat, embedding, rerank and transcription model on RelaySwitch with its id, type, the routes and tools that take it, our price (per million tokens, or per audio minute for transcription), the developer's list price where recorded, the wire formats it answers (openai, anthropic, gemini) and its specs. Image, video, speech, music and 3D models are in list_media_models. No key needed. Live from GET /v1/catalog.

NameRequiredDescriptionDefault
typeNoOnly models of this type. Default: every text model.
searchNoA substring of the model id or name (opus, deepseek, uncensored...).
developerNoOnly models from this developer (Anthropic, OpenAI, Google, DeepSeek...).
media_modelOne media model's settings and prices
Read-onlyIdempotent
Inspect

Everything generate needs to call one image, video, speech, music or 3D model: each setting under params with its type, the values it takes, its range and its default, and the price per unit at each setting under pricing. No key needed. Live from GET /v1/catalog/media.

NameRequiredDescriptionDefault
modelYesA media model id from list_media_models (nano-banana-2, kling-3.0-pro, seedance-2, elevenlabs-v3, image-upscaler...).
media_quotePrice a generation before running it
Read-onlyIdempotent
Inspect

What generate would charge for exactly these settings, at the key's own rates: the units billed, the charge, and the developer's own price for the same request where one is on record. The settings are checked as a real request's would be, so a wrong value fails here, not at the model. Nothing runs and nothing is charged. Needs the key. Live from POST /v1/generations/quote.

NameRequiredDescriptionDefault
inputYesThe model's settings, as media_model lists them under params: prompt, size or aspect_ratio, resolution, duration, image_urls, text, voice... A setting left out takes the model's default.
modelYesA media model id from list_media_models.
proofDaily real-model check
Read-onlyIdempotent
Inspect

Whether each model is still the model it says it is: every day one fixed prompt goes to every model and the verdict per model is stable, changed, failed or unchecked, with the time of the last check and how long the answer has been unchanged. No key needed. Live from GET /v1/proof.

NameRequiredDescriptionDefault
modelNoOne model id. Default: every model.
rerankRank documents by relevance
Read-onlyIdempotent
Inspect

Orders up to 100 documents by relevance to a query through POST /v1/rerank with a rerank model id from list_models (type rerank): each result's index into documents, its score and its text, best first. Billed per input token to the key in the MCP request's Authorization header.

NameRequiredDescriptionDefault
modelYesA rerank model id from list_models (type rerank).
queryYesWhat the documents are ranked against.
top_nNoHow many to return, best first. Default: all.
documentsYesUp to 100 texts to rank.
transcribeTranscribe audio or video
Read-onlyIdempotent
Inspect

Turns the speech in an audio or video file at an https URL (25 MB at most; a file generate made works) into text through POST /v1/audio/transcriptions, or into English with translate. Use a transcription model id from list_models (type transcription). Billed per second of audio to the key in the MCP request's Authorization header; a request that fails is not charged.

NameRequiredDescriptionDefault
modelYesA transcription model id from list_models (type transcription).
promptNoNames or words to spell right, or the text that came before.
languageNoThe spoken language as an ISO-639-1 code (en, es, zh...), when known.
audio_urlYesAn https URL of the audio or video file: mp3, mp4, m4a, wav, webm, ogg, flac or aac, 25 MB at most. A file generate made works.
translateNoTrue: translate the speech into English instead (the models that can).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 15 tool updates
    • First observedchat
    • First observedcompare
    • First observedembed
    • First observedestimate
    • First observedgenerate
    • First observedgeneration
    • First observedgenerations
    • First observedlist_media_models
    • First observedlist_models
    • First observedmedia_model
    • First observedmedia_quote
    • First observedproof
    • First observedrerank
    • First observedsearch
    • First observedtranscribe

Related MCP Connectors

Related MCP Servers

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources