Documentation

Agents

Save instructions once, then run them by id.

Save an agent in the console: a name, instructions, a chat model, and a temperature. Run it by id with POST /agents/:id/runs and a body of {"input": "..."}. Agents are looked up in your key's organization; unknown ids return 404 agent_not_found.

curl https://api.billionairestechnologies.com/api/v1/agents/AGENT_ID/runs \
  -H "Authorization: Bearer $FRIDAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":"Draft a reply to this customer."}'

The response has id, object (agent.run), agent_id, model, status, output and usage. A run is billed like a chat request.