# Workspace Plan and Usage

`Workspace.get_plan()` returns the workspace's billing plan, included credits, and feature limits. `Workspace.get_usage()` returns the corresponding usage report (inference calls, training credits, image counts).

These are useful for embedding billing dashboards in internal tools and for guard-railing automation that consumes paid credits.

## Get plan

```python
import roboflow

rf = roboflow.Roboflow(api_key="YOUR_API_KEY")
workspace = rf.workspace()

plan = workspace.get_plan()
print(plan["name"])             # e.g. "growth"
print(plan.get("limits", {}))   # included image / inference / training quotas
```

## Get usage

```python
usage = workspace.get_usage()
print(usage)
```

The response is the same JSON that drives the workspace's [billing usage report in the web app](https://app.roboflow.com/) — month-to-date image uploads, training credits consumed, and hosted/dedicated inference counts.

## REST equivalent

The same data is exposed at:

* `GET /usage/plan` — plan info
* `POST /:workspace/billing-usage-report` — usage breakdown

See [Billing Folders Usage Report](/developer/rest-api/billing-folders-usage-report.md) for the raw REST endpoint.

## CLI equivalent

```bash
roboflow workspace plan
roboflow workspace usage
```


---

# 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.roboflow.com/developer/python-sdk/workspace-plan-and-usage.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.
