Sume 400 invalid_request: read the details array

A Sume 400 invalid_request means the body, query, path or headers are not valid. The error envelope has code, message, request_id and a details array.

4 min readSume
All posts

400 invalid_request (or bad_request) means the request body, query, path or headers are not valid. The envelope has code, message, request_id and details (read 2026-10-06 in the errors docs).

How do I find the bad field?

Read details first; fix that field; resubmit with the same idempotency key only if the original request never created a job.

{
  "error": {
    "code": "invalid_request",
    "message": "Invalid request body, parameters, or headers.",
    "request_id": "req_...",
    "details": []
  }
}

What should I do in practice?

A 400 is never fixed by waiting.

  • Do not retry a 400 unchanged.
  • Compare the body to the model's docs page.
  • Log the request id.

Sources

Related posts

More in Developers

All Developers posts

Written by Sume