# Billing & Credits

Certain write operations consume credits. Credits are charged only on success (HTTP 2xx).

| Operation                   | Credits | Endpoint                   |
| --------------------------- | ------- | -------------------------- |
| Create agent                | 10      | `POST /agents`             |
| Update agent                | 10      | `PUT /agents/{id}`         |
| Start agent                 | 5       | `POST /agents/{id}/start`  |
| Reload config               | 1       | `POST /agents/{id}/reload` |
| Chat message                | 1 + LLM | `POST /agents/{id}/chat`   |
| Stop / Pause / Delete agent | 0       | —                          |
| All read operations         | 0       | —                          |

Insufficient credits returns `402` **before** executing the operation.

> Credit costs are provisional and subject to change.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.guayaba.run/documentation/api-reference/billing-and-credits.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
