# AIVAX AI model inference, document indexing and search. Helpful links: - API endpoint: https://inference.aivax.net/ - Reference for agents: https://inference.aivax.net/apidocs/llms.txt - Documentation/guides: https://docs.aivax.net/ - Terms of service: https://docs.aivax.net/docs/en/legal/terms-of-service - Privacy Policy: https://docs.aivax.net/docs/en/legal/privacy-policy Tip for agents: send the header `X-Response-Truncating: agent-optimized` in your request to get a shortened, optimized response for LLMs reading. API Version: 1 # Change Plan Subscribes to or changes the account plan. Upgrades are charged now with a pro-rata discount and applied as soon as the payment is confirmed; downgrades take effect at the next renewal. - Method: Post - Path: /api/v1/subscriptions/plan - Canonical name: system.v1.subscriptions.change-plan ## Headers - Authorization (required): The API key used to authenticate the request. Can also be provided in the `x-api-key` header or as a query parameter (`api-key`). ## Request Examples - Target plan. ### Example request body ```json { "plan": "Free" } ``` ### JSON Schema ```json { "type": "object", "properties": { "plan": { "type": "string", "enum": [ "Free", "Pro", "Max", "Ultimate", "Custom", "CoderLite", "CoderPlus" ] } } } ``` ## Responses - OK: applied (bool), scheduled (bool), invoiceId, paymentLocation (null when a saved payment method was charged or nothing was due). - BadRequest: Invalid plan or the account cannot change plans.