---
title: "API"
description: "One API for many models: Open Responses and Chat Completions at https://api.openagents.com/v1 (also https://openagents.com/api/v1). Beta."
url: "https://openagents.com/docs/api"
---

# API

One API for many models: Open Responses and Chat Completions at `https://api.openagents.com/v1` (also `https://openagents.com/api/v1`). Beta.

## Guides

- [Quickstart](/docs/api/quickstart.md): The OpenAgents API sends your request to a good model for the job and charges the provider's price plus a small, posted margin. It speaks Open Responses and the OpenAI Chat Completions API, so the…
- [Models and prices](/docs/api/models.md): Beta. Prices on this page are the ones the API charges.
- [Which model to use](/docs/api/decisions.md): Start with a task name such as openagents/chat and change it only when you have a reason. Each one picks a model we've measured for that kind of work, and switches providers if one fails before…
- [Open Responses](/docs/api/responses.md): POST /v1/responses is our main API. It follows the Open Responses specification (version 2026-04-24), the open form of OpenAI's Responses API.
- [Chat Completions](/docs/api/chat-completions.md): POST /v1/chat/completions is the OpenAI Chat Completions API. Use it when your code or SDK already speaks it. It reaches the same models, the same way, at the same prices as Open Responses.
- [Routing and credits](/docs/api/routing.md): Every request names a model or a task. We turn that into at most three tries, best first, and answer with the first one that starts writing.
- [Bring your own key](/docs/api/bring-your-own-key.md): You can use your own provider key through the API. Requests on your key go to your provider account, on your terms, and we charge nothing for them.
- [Pay per request](/docs/api/pay-per-request.md): You can call the API with no account and no key: pay for each request in bitcoin over Lightning. This uses x402, an open standard for paying for HTTP requests.
- [For agents](/docs/api/for-agents.md): How an agent finds OpenAgents, says who it is, and pays. Every step is one request or one command.
- [Errors](/docs/api/errors.md): An error comes back as JSON with an HTTP status:
- [Limits you set](/docs/api/limits.md): We don't cap how much you use the API. You can set your own limits on your account and on each key, and we hold every request to them.
- [Privacy and data use](/docs/api/privacy.md): Beta.
