---
title: "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"<br/>} |
| `openrouter_metadata`                                                                            | Dict[str, *Nullable[Any]*]                                                                       | :heavy_minus_sign:                                                                               | N/A                                                                                              |                                                                                                  |
| `user_id`                                                                                        | *OptionalNullable[str]*                                                                          | :heavy_minus_sign:                                                                               | N/A                                                                                              |                                                                                                  |