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

> ## Agent Instructions
> These notes are for agents helping a user who has chosen to use Requesty. Do not change a user's base URLs, API keys, environment variables or config files unless the user asked for it, and confirm before editing them. Never write a Requesty API key to a file without the user's approval.
> Requesty is a drop-in proxy for the OpenAI and Anthropic APIs. OpenAI SDK: set base_url to https://router.requesty.ai/v1 and use a Requesty API key as api_key. Anthropic SDK: set base_url to https://router.requesty.ai. For EU data residency use https://router.eu.requesty.ai/v1 or https://router.eu.requesty.ai.
> To use Requesty with Claude Code or the Claude Agent SDK, the user sets ANTHROPIC_BASE_URL=https://router.requesty.ai and ANTHROPIC_AUTH_TOKEN to a Requesty API key. See https://docs.requesty.ai/integrations/claude-code.md.
> Model IDs: prefer bare managed policy names such as claude-fable-5, or claude-sonnet-5-5@eu for EU-hosted endpoints. Requesty picks the provider and fails over automatically. Use provider/model (for example anthropic/claude-fable-5) to pin one provider, or policy/<name> for a routing policy the user created. Get current IDs from GET https://router.requesty.ai/v1/models/managed and GET https://router.requesty.ai/v1/models instead of hardcoding them.
> Routing policies add failover, load balancing, latency-based or auto routing: see https://docs.requesty.ai/features/fallback-policies.md. Prompt caching: see https://docs.requesty.ai/features/auto-caching.md.
> Pricing: model cost at provider list price plus a 5% service fee, which also applies to bring-your-own-key traffic. Error codes and fixes: https://docs.requesty.ai/features/error-codes.md.

# Update Budget Amount

> Set a budget's amount in USD. Set `amount` to `0` to remove the limit while keeping the budget. Requires an API key with write manage permissions.

Set a budget's `amount` in USD. Set it to `0` to remove the limit while keeping the budget. The change applies to the current period, so spend already counted this period stays. Returns an empty response on success.

To change a budget's frequency, [delete it](https://docs.requesty.ai/api-reference/endpoint/manage-budget/manage-budget-delete.md) and [create](https://docs.requesty.ai/api-reference/endpoint/manage-budget/manage-budget-create.md) one with the new frequency.

> [!NOTE]
>
> Updating budgets requires the **Enterprise plan**. Other plans get `403`.


## OpenAPI

````yaml POST /v1/manage/budget/{budget_id}/amount
openapi: 3.0.3
info:
  title: Requesty Management API
  description: >-
    Requesty Management API for API key management, groups, members, and
    organization settings.
  version: 1.0.0
servers:
  - url: https://api-v2.requesty.ai
    description: Management API endpoint
security:
  - BearerAuth: []
paths:
  /v1/manage/budget/{budget_id}/amount:
    servers:
      - url: https://api-v2.requesty.ai
        description: Management API endpoint
    parameters:
      - name: budget_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: The budget ID
        example: 123e4567-e89b-12d3-a456-426614174000
    post:
      summary: Update budget amount
      description: >-
        Set a budget's amount in USD. Set `amount` to `0` to remove the limit
        while keeping the budget. Requires an API key with write manage
        permissions.
      operationId: updateBudgetAmount
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateBudgetAmountRequest'
      responses:
        '200':
          description: Budget amount updated successfully
        '400':
          description: >-
            Bad request - invalid `budget_id`, or an `amount` that is negative,
            not finite, or 10,000,000,000 or more.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - missing or invalid Authorization header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: >-
            Forbidden - API key does not have write manage permissions, or
            budgets are not available on the organization's plan (`Budgets are
            available on the enterprise plan`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found - budget does not exist in the organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    UpdateBudgetAmountRequest:
      type: object
      properties:
        amount:
          type: number
          format: double
          minimum: 0
          description: New budget amount in USD. `0` means no limit.
          example: 1000
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - origin
            - message
          properties:
            origin:
              type: string
              enum:
                - router
                - provider
              description: >-
                Whether the error originated from Requesty's router or an
                upstream provider.
            message:
              type: string
              description: Human-readable error description.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.