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

# PaymentRequiredResponseError

Payment Required - Insufficient credits or quota to complete request

## Fields

| Field                 | Type                                                                                              | Required             | Description                            | Example                                                                                                                                           |
| --------------------- | ------------------------------------------------------------------------------------------------- | -------------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `error`               | [components.PaymentRequiredResponseErrorData](../components/paymentrequiredresponseerrordata.mdx) | :heavy\_check\_mark: | Error data for PaymentRequiredResponse | \{<br />"code": 402,<br />"message": "Insufficient credits. Add more using [https://openrouter.ai/credits](https://openrouter.ai/credits)"<br />} |
| `openrouter_metadata` | Dict\[str, *Nullable\[Any]*]                                                                      | :heavy\_minus\_sign: | N/A                                    |                                                                                                                                                   |
| `user_id`             | *OptionalNullable\[str]*                                                                          | :heavy\_minus\_sign: | N/A                                    |                                                                                                                                                   |
