n8n HTTP Request
Verified with n8n 2.50.6 against a test gateway. The HTTP Request node returned 200, and the same request ID appeared in account history with a charge of 0 RUB.
- In API keys, create a dedicated key for your project.
- Connect Manual Trigger to HTTP Request. Set Method to
POSTand URL tohttps://api.anyllm.space/v1/chat/completions. - Under Authentication, select Generic Credential Type → Header Auth. In the credential, set Name to
Authorizationand Value toBearer <project key>. - Enable Send Headers. Set
X-Max-Cost-Rubto0andX-Client-Referenceton8n-first-request. - Enable Send Body. Set Body Content Type to JSON and Specify Body to Using JSON. Paste this body.
{
"model": "demo-text",
"messages": [{ "role": "user", "content": "ready" }],
"max_tokens": 32
}- Under Options → Response, enable Include Response Headers and Status. Run the workflow manually. Expect
statusCode200 and a text response atbody.choices[0].message.content. - Copy
headers['x-request-id']. Open Request history, select the project and search by ID. The row should showdemo-textand 0 RUB. You can also search by the referencen8n-first-request.
For an automated workflow, build Idempotency-Key from a stable operation ID, such as the order ID, workflow step and revision. Reuse it across retries of that operation, even when n8n starts a new execution. n8n HTTP Request reference · Retries and spending caps
Make HTTP
For a trial in Make, use HTTP → Make a request with the same method, URL, JSON body and cost cap. Use Authentication type → API key. In the credential, set API key placement to In the header, API key parameters name to Authorization and Key to Bearer <project key>. Set Body content type to application/json, select JSON string under Body input method, and paste the JSON. Enable Parse response. Run once and look for the response header x-request-id in the module output, then search for the ID in account history. This scenario still awaits an end-to-end Make test. Make HTTP reference