Developers
OpenAI-compatible API
Use your agent anywhere that accepts an OpenAI base URL.
Any tool that lets you set an OpenAI base URL can talk to your agent — it answers with its knowledge, Q&A, instructions and actions.
- Base URL:
https://anytimereply.com/api/openai/v1 - API key: your
af_live_…key - Model: your agent's ID (
GET /modelslists them)
curl https://anytimereply.com/api/openai/v1/chat/completions \
-H "Authorization: Bearer af_live_xxx" \
-H "Content-Type: application/json" \
-d '{"model":"AGENT_ID","messages":[{"role":"user","content":"Opening hours?"}]}'Streaming ("stream": true) is supported. Tools you pass (for example a "transfer to human" tool) are offered to the agent; when it uses one, the response carries tool_calls for your app to run. Pass user to keep one conversation per person.