Fluxevia
中文

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.json
  • GET /api/v1/provider-prices.json
  • GET /api/v1/official-prices.json
  • GET /api/v1/price-history.json
  • POST /api/v1/recommend
  • POST /api/v1/outcomes
  • GET /api/v1/usage
  • GET /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 test

Need another endpoint? Send feedback below.

Was this page helpful?

Tell us what is wrong or missing. Data corrections are reviewed within 7 days.