Loading...
Loading...
Interact with OmniRoute via JSON-RPC 2.0 agent-to-agent protocol. 6 built-in A2A skills: smart-routing, quota-management, provider-discovery, cost-analysis, health-report, list-capabilities.
npx skill4agent add cheaper-inference/omniroute omni-agents-a2aPOST /api/auth/loginREQUIRE_API_KEY=falseGET /api/openapi/specdocs/openapi.yaml/.well-known/agent.json/a2acurl $OMNIROUTE_URL/.well-known/agent.json| Skill | Purpose |
|---|---|
| Given a prompt, recommends best provider/model combo |
| Reports quota balance for given provider/account |
| Lists providers matching capability filters (vision, JSON mode, tools, max-context) |
| Estimates cost for a given request shape |
| Returns system health (circuit states, latencies, errors) |
curl -X POST $OMNIROUTE_URL/a2a \
-H "Authorization: Bearer $OMNIROUTE_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tasks/send",
"params": {
"skillId": "smart-routing",
"input": { "prompt_length": 4000, "tools": true, "vision": false }
},
"id": 1
}'{
"jsonrpc": "2.0",
"result": {
"taskId": "...",
"status": "completed",
"output": { "recommended_combo": "...", "reasoning": "..." }
},
"id": 1
}-32600-32601method-32602skillId401OMNIROUTE_KEY