Finetuning.aiFinetuning.ai

Errors

Error codes, responses, and troubleshooting guide

The Finetuning.ai API uses standard HTTP status codes and returns consistent error responses.

Error response format

All errors follow the format:

{
  "error": {
    "code": "...",
    "message": "..."
  }
}

Error codes

CodeStatusDescription
MISSING_API_KEY401X-API-Key header was not provided
INVALID_API_KEY401API key is malformed, revoked, or does not exist
PRO_PLAN_REQUIRED403Your subscription does not include API access
RATE_LIMITED429Too many requests — wait and retry
VALIDATION_ERROR400Request body is missing or has invalid fields
MONTHLY_LIMIT_REACHED402No generations remaining this month
QUEUE_FULL429Too many generations in progress
GENERATION_FAILED500Generation queue submission failed
NOT_FOUND404Resource not found
INTERNAL_ERROR500Unexpected server error

Common issues

"Invalid API key"

{
  "error": {
    "code": "INVALID_API_KEY",
    "message": "API key is malformed, revoked, or does not exist"
  }
}

Fix: Ensure you're using the X-API-Key header (not Authorization: Bearer). Double-check for extra whitespace or newlines in your key.

"Monthly limit reached"

{
  "error": {
    "code": "MONTHLY_LIMIT_REACHED",
    "message": "No generations remaining this month"
  }
}

Fix: Upgrade your plan or wait for your monthly limit to reset at finetuning.ai/dashboard.

"Invalid request body"

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "duration must be between 10 and 180 seconds"
  }
}

Fix: Check the message field for details on which fields are invalid.

Generation stuck in "processing"

If a generation stays in processing for more than 5 minutes, it may have failed silently. Contact support.

Need help?

If you're encountering errors not listed here, visit the Support page.

On this page