AGENT API
Give your agent a key
Use the read-only JSON API for model, price and offer data. Create a free key for outcome reports and usage; keys are hashed and shown once.
Create a free API key
No email required. Use it for outcome reports and usage; do not ship it in client-side code.
Endpoints
Read-only data is public. Recommendation sessions, outcome reports and usage require Authorization: Bearer <key>.
GET /api/v1/models.jsonGET /api/v1/provider-prices.jsonGET /api/v1/official-prices.jsonGET /api/v1/price-history.jsonPOST /api/v1/recommendPOST /api/v1/outcomesGET /api/v1/usageGET /api/v1/openapi.json
Recommend, then report
A recommendation returns a recommendationId. Pass it with the config you used to link the outcome. Send metadata only: no prompts, code, provider keys or personal data.
curl -X POST https://fluxevia.com/api/v1/recommend \
-H "Authorization: Bearer $FLUXEVIA_API_KEY" \
-H "content-type: application/json" \
-d '{"task":"coding","qualityFloor":0.9,"limit":3}'curl -X POST https://fluxevia.com/api/v1/outcomes \
-H "Authorization: Bearer $FLUXEVIA_API_KEY" \
-H "content-type: application/json" \
-d '{"recommendationId":"rec_…","configId":"…","taskClass":"coding","success":true,"actualCostUsd":1.42}'MCP
The local MCP server tracks recommendations and reports outcomes when FLUXEVIA_API_URL and FLUXEVIA_API_KEY are set.
npm --prefix mcp testNeed another endpoint? Send feedback below.
Was this page helpful?
Tell us what is wrong or missing. Data corrections are reviewed within 7 days.