Discourse does the same HTTP calls that cURL will do, so it is possible to reproduce with 100% fidelity.
That said, it’s well know that Anthropic is having a hard time keeping up with the increasing demand, so it may be easier to shop around for either using Claude via AWS or Google Cloud, or even try Gemini or other LLM APIs.