n8n / Make
一条标准 HTTP 请求无缝接入自动化工作流。
Method: POST
URL: https://api.rawroute.dev/v1/chat/completions
Authentication: Generic > Header Auth
Name: Authorization Value: Bearer <your rawroute key>
Send Body: JSON
{
"model": "claude-sonnet-5-5",
"messages": [{ "role": "user", "content": "{{ $json.text }}" }]
}
Settings: Retry On Fail: on, Max Tries: 3, Wait Between Tries: 5000 ms
On Error: Continue (using error output) for 4xx you want to routeModule: HTTP > Make a request
URL: https://api.rawroute.dev/v1/chat/completions
Method: POST
Headers: Authorization: Bearer <your rawroute key>
Body type: Raw, Content type: JSON (application/json)
Request content:
{"model": "claude-sonnet-5-5", "messages": [{"role": "user", "content": "{{1.text}}"}]}
Parse response: Yes
Error handler: right-click the module > Add error handler > Break,
Automatically complete execution: Yes, Number of attempts: 3Retries
- 429, 502, 503, 504
- 重试
- 400, 401, 403, 404
- 不要重试