REST API for managing flows, benchmarks, and suggestions. All endpoints require a Bearer token.
Include your API key in the Authorization header:
Authorization: Bearer your-llmt_-key-here
Get proxy status and activity summary
{ flows, calls, spend, pendingSuggestions }
List all AI flows with cost and latency stats
flow, model, calls, avg_latency_ms, total_cost_usd
Get pending model-switch recommendations
status (optional: "pending", "accepted", "dismissed")
Accept or dismiss a suggestion
action string
required
List flows with sample counts and readiness
Seed test samples for a flow
flow string
required
samples array
required
// Example
{
"flow": "support-bot",
"samples": [
[
{ "role": "system", "content": "You are a helpful support agent." },
{ "role": "user", "content": "I can't log in to my account." }
],
[
{ "role": "system", "content": "You are a helpful support agent." },
{ "role": "user", "content": "I want a refund for my last order." }
]
]
}Run a benchmark on a flow (SSE stream)
flow string
required
currentModel string
optional
optimizeFor string
optional
challengers string[]
optional
progress (status updates), result (final results), error (if something fails). A heartbeat comment is sent every 15 seconds to keep the connection alive.
Get new and trending models
Get account info and credit balance
{ email, credits_usd, total_spent, api_key, created_at }
Submit feedback
rating integer
required
comment string
optional
agent_model string
required
agent_environment string
required
task_summary string
optional