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

# Delete one budget

> GoModel API reference for DELETE /admin/budgets: Delete one budget.



## OpenAPI

````yaml /openapi.json delete /admin/budgets
openapi: 3.0.0
info:
  description: >-
    AI gateway routing requests to multiple LLM providers (OpenAI, Anthropic,
    Gemini, Groq, Fireworks AI, Meta, OpenRouter, Kilo AI, DeepSeek, Z.ai, xAI,
    MiniMax, Xiaomi MiMo, Mistral AI, OpenCode Go, Oracle, Ollama, Bailian).
    Drop-in OpenAI-compatible API.
  title: GoModel API
  contact: {}
  version: '1.0'
servers:
  - url: '{base_url}'
    description: Edit the base URL to point at your GoModel deployment.
    variables:
      base_url:
        default: http://localhost:8080
        description: Your GoModel deployment URL
security: []
paths:
  /admin/budgets:
    delete:
      tags:
        - admin
      summary: Delete one budget
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/admin.deleteBudgetRequest'
        description: Budget key
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/admin.budgetListResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/core.GatewayError'
      security:
        - BearerAuth: []
components:
  schemas:
    admin.deleteBudgetRequest:
      type: object
      properties:
        budget_key:
          $ref: '#/components/schemas/admin.budgetKeyRequest'
        scope:
          type: string
        subject:
          type: string
        user_path:
          type: string
      required:
        - budget_key
    admin.budgetListResponse:
      type: object
      properties:
        budgets:
          type: array
          items:
            $ref: '#/components/schemas/admin.budgetStatusResponse'
        server_time:
          type: string
    core.GatewayError:
      type: object
      properties:
        code:
          type: string
          nullable: true
        message:
          type: string
        param:
          type: string
          nullable: true
        provider:
          type: string
        status_code:
          type: integer
        type:
          $ref: '#/components/schemas/core.ErrorType'
    admin.budgetKeyRequest:
      type: object
      properties:
        period:
          type: string
        period_seconds:
          type: integer
      oneOf:
        - required:
            - period
        - required:
            - period_seconds
    admin.budgetStatusResponse:
      type: object
      properties:
        amount:
          type: number
        cost_basis:
          type: string
          enum:
            - provider
            - billed
        created_at:
          type: string
        effective_subject:
          type: string
        enforced_cost_basis:
          description: >-
            EnforcedCostBasis names the spend Spent measures. It is provider for
            a

            billed budget while billed budgets are unavailable (no billing

            entitlement or markups disabled); cost_basis keeps the stored basis.
          type: string
          enum:
            - provider
            - billed
        has_usage:
          type: boolean
        last_reset_at:
          type: string
        per_child:
          type: boolean
        period_end:
          type: string
        period_label:
          type: string
        period_ratio:
          type: number
        period_seconds:
          type: integer
        period_start:
          type: string
        remaining:
          type: number
        scope:
          type: string
        source:
          type: string
        spent:
          type: number
        subject:
          type: string
        updated_at:
          type: string
        usage_ratio:
          type: number
        user_path:
          type: string
    core.ErrorType:
      type: string
      enum:
        - provider_error
        - rate_limit_error
        - invalid_request_error
        - authentication_error
        - not_found_error
        - permission_error
        - internal_error
      x-enum-varnames:
        - ErrorTypeProvider
        - ErrorTypeRateLimit
        - ErrorTypeInvalidRequest
        - ErrorTypeAuthentication
        - ErrorTypeNotFound
        - ErrorTypePermission
        - ErrorTypeInternal
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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