Synapse Router Multi-Model Gateway
Cost-Aware Multi-Model AI Agent Router & Confidence-Gated Cascade Escalation Model Context Protocol (MCP) server running on Vercel Serverless. Optimizes inference spending with predictive complexity scoring and automated fallback routing across LLM providers.
- Selected price
- $0.001 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Synapse Router Multi-Model Gateway
Prepare your request, then continue with your agent.
Selected price
$0.001 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
idintegerjsonrpcstringresultobjecttoolsobject[]descriptionstringinputSchemaobjectpropertiesobjectbypass_cacheobjectdefaultbooleantypestring
estimated_output_tokensobjectdefaultintegertypestring
latency_sla_msobjecttypestring
max_cost_usdobjecttypestring
min_confidenceobjectdefaultnumbertypestring
promptobjectdescriptionstringtypestring
require_json_schemaobjecttypestring
step_idobjectdefaultstringtypestring
system_promptobjectdefaultstringtypestring
tenant_idobjectdefaultstringtypestring
tools_schemaobjectdefaultunknown[]itemsobjecttypestring
typestring
workflow_idobjectdefaultstringtypestring
endpoint_idobjectdescriptionstringtypestring
budget_cap_usdobjecttypestring
cost_usdobjecttypestring
model_idobjecttypestring
task_idobjecttypestring
task_promptobjecttypestring
tokens_usedobjecttypestring
requiredstring[]typestring
namestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
id?: number;
jsonrpc?: string;
result?: {
tools?: Array<{
description?: string;
inputSchema?: {
properties?: {
bypass_cache?: {
default?: boolean;
type?: string;
};
estimated_output_tokens?: {
default?: number;
type?: string;
};
latency_sla_ms?: {
type?: string;
};
max_cost_usd?: {
type?: string;
};
min_confidence?: {
default?: number;
type?: string;
};
prompt?: {
description?: string;
type?: string;
};
require_json_schema?: {
type?: string;
};
step_id?: {
default?: string;
type?: string;
};
system_prompt?: {
default?: string;
type?: string;
};
tenant_id?: {
default?: string;
type?: string;
};
tools_schema?: {
default?: Array<unknown>;
items?: {
type?: string;
};
type?: string;
};
workflow_id?: {
default?: string;
type?: string;
};
endpoint_id?: {
description?: string;
type?: string;
};
budget_cap_usd?: {
type?: string;
};
cost_usd?: {
type?: string;
};
model_id?: {
type?: string;
};
task_id?: {
type?: string;
};
task_prompt?: {
type?: string;
};
tokens_used?: {
type?: string;
};
};
required?: Array<string>;
type?: string;
};
name?: string;
}>;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
codesphereugCurrent Synapse Router Multi-Model Gateway · POST · View API reference | $0.001 / call | — | —successP50— |
- Unit price
- $0.001
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 5. Price update time: not supplied.
Total $0.1
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/codesphereug/synapse/mcp- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/codesphereug/synapse/mcp' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"id": 2,
"jsonrpc": "2.0",
"method": "tools/list"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
No input fields are required by this API contract.
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"id": 2,
"jsonrpc": "2.0",
"result": {
"tools": [
{
"description": "Route an AI agent workflow step across FAST_LOCAL, BALANCED, and FRONTIER_REASONING models using Pareto cost/latency optimization, SimHash semantic caching, circuit-breaker failover, and confidence-gated cascade escalation.",
"inputSchema": {
"properties": {
"bypass_cache": {
"default": false,
"type": "boolean"
},
"estimated_output_tokens": {
"default": 256,
"type": "integer"
},
"latency_sla_ms": {
"type": "number"
},
"max_cost_usd": {
"type": "number"
},
"min_confidence": {
"default": 0.78,
"type": "number"
},
"prompt": {
"description": "User or agent step instruction.",
"type": "string"
},
"require_json_schema": {
"type": "object"
},
"step_id": {
"default": "step-0",
"type": "string"
},
"system_prompt": {
"default": "",
"type": "string"
},
"tenant_id": {
"default": "default-tenant",
"type": "string"
},
"tools_schema": {
"default": [],
"items": {
"type": "object"
},
"type": "array"
},
"workflow_id": {
"default": "default-workflow",
"type": "string"
}
},
"required": [
"prompt"
],
"type": "object"
},
"name": "route_agent_step"
},
{
"description": "Compute deterministic complexity score [0.0, 1.0] and recommended model Tier (FAST_LOCAL, BALANCED, FRONTIER_REASONING) for an agent step.",
"inputSchema": {
"properties": {
"estimated_output_tokens": {
"default": 256,
"type": "integer"
},
"latency_sla_ms": {
"type": "number"
},
"prompt": {
"type": "string"
},
"require_json_schema": {
"type": "object"
},
"system_prompt": {
"default": "",
"type": "string"
},
"tools_schema": {
"default": [],
"items": {
"type": "object"
},
"type": "array"
}
},
"required": [
"prompt"
],
"type": "object"
},
"name": "classify_task_complexity"
},
{
"description": "Inspect 3-state circuit breaker status (CLOSED, OPEN, HALF_OPEN), rolling error rates, HTTP 429 rate-limit counters, and EMA latency for registered model endpoints.",
"inputSchema": {
"properties": {
"endpoint_id": {
"description": "Optional endpoint ID; omit to inspect all registered endpoints.",
"type": "string"
}
},
"type": "object"
},
"name": "inspect_endpoint_health"
},
{
"description": "Query tenant and workflow token/USD budget utilization, remaining allowance, and 80% soft-cap tier downgrade state.",
"inputSchema": {
"properties": {
"tenant_id": {
"default": "default-tenant",
"type": "string"
},
"workflow_id": {
"default": "default-workflow",
"type": "string"
}
},
"type": "object"
},
"name": "check_budget_status"
},
{
"description": "Query sliding-window RPM and TPM consumption, ceiling limits, and saturation status for a model endpoint.",
"inputSchema": {
"properties": {
"endpoint_id": {
"description": "Model endpoint ID to inspect.",
"type": "string"
}
},
"required": [
"endpoint_id"
],
"type": "object"
},
"name": "synapse_rate_limit_status"
},
{
"description": "Export canonical RFC 6962 G2_BUDGET_ROUTING attestation leaf for a routing receipt or simulation parameters.",
"inputSchema": {
"properties": {
"budget_cap_usd": {
"type": "number"
},
"cost_usd": {
"type": "number"
},
"model_id": {
"type": "string"
},
"task_id": {
"type": "string"
},
"task_prompt": {
"type": "string"
},
"tokens_used": {
"type": "integer"
}
},
"type": "object"
},
"name": "synapse_export_aegis_g2"
}
]
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Synapse Router Multi-Model Gateway
Cost-Aware Multi-Model AI Agent Router & Confidence-Gated Cascade Escalation Model Context Protocol (MCP) server running on Vercel Serverless. Optimizes inference spending with predictive complexity scoring and automated fallback routing across LLM providers.
Documentation: https://openany.si/apis/efc9e0e8-33ca-485e-b961-42c7521faf84
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/codesphereug/synapse/mcp
Price: $0.001 / call
Provider: codesphereug
Contract revision: 5
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/codesphereug/synapse/mcp' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"id": 2,
"jsonrpc": "2.0",
"method": "tools/list"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Synapse Router Multi-Model Gateway",
"endpoint": "https://api.openany.si/v1/agent-apis/codesphereug/synapse/mcp",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "1000",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Recorded upstream MCP tools/list (HTTP 200)",
"request": {
"body": {
"id": 2,
"jsonrpc": "2.0",
"method": "tools/list"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"id": 2,
"jsonrpc": "2.0",
"result": {
"tools": [
{
"description": "Route an AI agent workflow step across FAST_LOCAL, BALANCED, and FRONTIER_REASONING models using Pareto cost/latency optimization, SimHash semantic caching, circuit-breaker failover, and confidence-gated cascade escalation.",
"inputSchema": {
"properties": {
"bypass_cache": {
"default": false,
"type": "boolean"
},
"estimated_output_tokens": {
"default": 256,
"type": "integer"
},
"latency_sla_ms": {
"type": "number"
},
"max_cost_usd": {
"type": "number"
},
"min_confidence": {
"default": 0.78,
"type": "number"
},
"prompt": {
"description": "User or agent step instruction.",
"type": "string"
},
"require_json_schema": {
"type": "object"
},
"step_id": {
"default": "step-0",
"type": "string"
},
"system_prompt": {
"default": "",
"type": "string"
},
"tenant_id": {
"default": "default-tenant",
"type": "string"
},
"tools_schema": {
"default": [],
"items": {
"type": "object"
},
"type": "array"
},
"workflow_id": {
"default": "default-workflow",
"type": "string"
}
},
"required": [
"prompt"
],
"type": "object"
},
"name": "route_agent_step"
},
{
"description": "Compute deterministic complexity score [0.0, 1.0] and recommended model Tier (FAST_LOCAL, BALANCED, FRONTIER_REASONING) for an agent step.",
"inputSchema": {
"properties": {
"estimated_output_tokens": {
"default": 256,
"type": "integer"
},
"latency_sla_ms": {
"type": "number"
},
"prompt": {
"type": "string"
},
"require_json_schema": {
"type": "object"
},
"system_prompt": {
"default": "",
"type": "string"
},
"tools_schema": {
"default": [],
"items": {
"type": "object"
},
"type": "array"
}
},
"required": [
"prompt"
],
"type": "object"
},
"name": "classify_task_complexity"
},
{
"description": "Inspect 3-state circuit breaker status (CLOSED, OPEN, HALF_OPEN), rolling error rates, HTTP 429 rate-limit counters, and EMA latency for registered model endpoints.",
"inputSchema": {
"properties": {
"endpoint_id": {
"description": "Optional endpoint ID; omit to inspect all registered endpoints.",
"type": "string"
}
},
"type": "object"
},
"name": "inspect_endpoint_health"
},
{
"description": "Query tenant and workflow token/USD budget utilization, remaining allowance, and 80% soft-cap tier downgrade state.",
"inputSchema": {
"properties": {
"tenant_id": {
"default": "default-tenant",
"type": "string"
},
"workflow_id": {
"default": "default-workflow",
"type": "string"
}
},
"type": "object"
},
"name": "check_budget_status"
},
{
"description": "Query sliding-window RPM and TPM consumption, ceiling limits, and saturation status for a model endpoint.",
"inputSchema": {
"properties": {
"endpoint_id": {
"description": "Model endpoint ID to inspect.",
"type": "string"
}
},
"required": [
"endpoint_id"
],
"type": "object"
},
"name": "synapse_rate_limit_status"
},
{
"description": "Export canonical RFC 6962 G2_BUDGET_ROUTING attestation leaf for a routing receipt or simulation parameters.",
"inputSchema": {
"properties": {
"budget_cap_usd": {
"type": "number"
},
"cost_usd": {
"type": "number"
},
"model_id": {
"type": "string"
},
"task_id": {
"type": "string"
},
"task_prompt": {
"type": "string"
},
"tokens_used": {
"type": "integer"
}
},
"type": "object"
},
"name": "synapse_export_aegis_g2"
}
]
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Recorded upstream MCP tools/list (HTTP 200)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/codesphereug/synapse/mcp' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "id": 2, "jsonrpc": "2.0", "method": "tools/list" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "id": 2, "jsonrpc": "2.0", "result": { "tools": [ { "description": "Route an AI agent workflow step across FAST_LOCAL, BALANCED, and FRONTIER_REASONING models using Pareto cost/latency optimization, SimHash semantic caching, circuit-breaker failover, and confidence-gated cascade escalation.", "inputSchema": { "properties": { "bypass_cache": { "default": false, "type": "boolean" }, "estimated_output_tokens": { "default": 256, "type": "integer" }, "latency_sla_ms": { "type": "number" }, "max_cost_usd": { "type": "number" }, "min_confidence": { "default": 0.78, "type": "number" }, "prompt": { "description": "User or agent step instruction.", "type": "string" }, "require_json_schema": { "type": "object" }, "step_id": { "default": "step-0", "type": "string" }, "system_prompt": { "default": "", "type": "string" }, "tenant_id": { "default": "default-tenant", "type": "string" }, "tools_schema": { "default": [], "items": { "type": "object" }, "type": "array" }, "workflow_id": { "default": "default-workflow", "type": "string" } }, "required": [ "prompt" ], "type": "object" }, "name": "route_agent_step" }, { "description": "Compute deterministic complexity score [0.0, 1.0] and recommended model Tier (FAST_LOCAL, BALANCED, FRONTIER_REASONING) for an agent step.", "inputSchema": { "properties": { "estimated_output_tokens": { "default": 256, "type": "integer" }, "latency_sla_ms": { "type": "number" }, "prompt": { "type": "string" }, "require_json_schema": { "type": "object" }, "system_prompt": { "default": "", "type": "string" }, "tools_schema": { "default": [], "items": { "type": "object" }, "type": "array" } }, "required": [ "prompt" ], "type": "object" }, "name": "classify_task_complexity" }, { "description": "Inspect 3-state circuit breaker status (CLOSED, OPEN, HALF_OPEN), rolling error rates, HTTP 429 rate-limit counters, and EMA latency for registered model endpoints.", "inputSchema": { "properties": { "endpoint_id": { "description": "Optional endpoint ID; omit to inspect all registered endpoints.", "type": "string" } }, "type": "object" }, "name": "inspect_endpoint_health" }, { "description": "Query tenant and workflow token/USD budget utilization, remaining allowance, and 80% soft-cap tier downgrade state.", "inputSchema": { "properties": { "tenant_id": { "default": "default-tenant", "type": "string" }, "workflow_id": { "default": "default-workflow", "type": "string" } }, "type": "object" }, "name": "check_budget_status" }, { "description": "Query sliding-window RPM and TPM consumption, ceiling limits, and saturation status for a model endpoint.", "inputSchema": { "properties": { "endpoint_id": { "description": "Model endpoint ID to inspect.", "type": "string" } }, "required": [ "endpoint_id" ], "type": "object" }, "name": "synapse_rate_limit_status" }, { "description": "Export canonical RFC 6962 G2_BUDGET_ROUTING attestation leaf for a routing receipt or simulation parameters.", "inputSchema": { "properties": { "budget_cap_usd": { "type": "number" }, "cost_usd": { "type": "number" }, "model_id": { "type": "string" }, "task_id": { "type": "string" }, "task_prompt": { "type": "string" }, "tokens_used": { "type": "integer" } }, "type": "object" }, "name": "synapse_export_aegis_g2" } ] } }