Sign in

Errors

Every error code that the API and your result files can show.

API answers

The answer has the OpenAI error format: an error object with message, type, param and code.

CodeStatusMeaning
invalid_api_key401The key is missing, wrong or revoked. Send it as a Bearer token.
account_suspended403The account is suspended.
rate_limit_exceeded429The key sent too many requests. Wait and try again.
invalid_request400The request is not valid. The param field names the part that is wrong.
invalid_purpose400A file upload has a purpose other than batch.
file_too_large400The file is larger than the file size limit.
file_not_found404No file of your account has this ID.
file_purged410The file was purged. You cannot download it or start a batch from it.
file_in_use400A batch still uses the file, so you cannot delete it.
invalid_input_file400The input file of a batch must have the purpose batch.
insufficient_balance402Your balance is below the estimated cost of the batch. Add credit and create the batch again.
batch_not_found404No batch of your account has this ID.
batch_not_cancellable400Only a batch that is in progress can be cancelled.

Lines the batch refuses

A batch with a bad line gets the status failed. Its errors field lists up to 10 problems, each with a code, a message and the line number. It uses no GPU time and costs nothing.

CodeMeaning
invalid_jsonThe line is not valid JSON, or not a JSON object.
invalid_lineA field is missing or wrong: custom_id, method, body or max_tokens. The line and param fields say which.
duplicate_custom_idAn earlier line already uses this custom_id.
invalid_urlThe url is not /v1/chat/completions.
invalid_modelThe model is not one that Hyfer serves.
mixed_modelsThe lines of the file use more than one model.
too_many_linesThe file has more lines than the limit.
empty_fileThe input file has no lines.

Lines in the result files

A request that was accepted can still fail. Its line is in the error file, and in the output file there is no line for it. The codes invalid_json and invalid_request can also show here.

CodeMeaning
unknown_parameterThe body has a parameter that the engine does not take.
engine_errorThe engine did not answer after three tries.
batch_cancelledYou cancelled the batch before this line ran.
batch_expiredThe batch expired before this line ran.
chunk_failedThe part of the file with this line failed, so the line did not run.