> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# VastAI.generate_pdf_invoices

Generate PDF invoices based on filters.

## Signature

```python theme={null}
VastAI.generate_pdf_invoices(
    quiet: bool = False,
    start_date: Optional[str] = None,
    end_date: Optional[str] = None,
    only_charges: bool = False,
    only_credits: bool = False
) -> str
```

## Parameters

<ParamField path="quiet" type="bool" default="False">
  Suppress non-essential output.
</ParamField>

<ParamField path="start_date" type="Optional[str]">
  Start date for the invoice period (e.g. "2024-01-01").
</ParamField>

<ParamField path="end_date" type="Optional[str]">
  End date for the invoice period (e.g. "2024-01-31").
</ParamField>

<ParamField path="only_charges" type="bool" default="False">
  Include only charge items in the output.
</ParamField>

<ParamField path="only_credits" type="bool" default="False">
  Include only credit items in the output.
</ParamField>

## Returns

`str`, Result from the API call.

## Example

```python theme={null}
from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.generate_pdf_invoices()
print(result)
```
