langgenie.ai

API reference

Errors

Error format and status codes.

Errors return a JSON body with a machine-readable code and a human-readable message:

{
  "error": {
    "code": "invalid_api_key",
    "message": "Missing or invalid API key."
  }
}
StatusCodeMeaning
400invalid_requestBody isn’t multipart/form-data, or a parameter is invalid (missing_file, invalid_model).
401invalid_api_keyKey missing, malformed or revoked.
413file_too_largeAudio exceeds 25 MB.
429rate_limitedToo many requests — back off and retry.
502inference_failedTemporary model error. Safe to retry.