Introducing our new Monitoring feature Learn more

Documentation

Errors and rate limits

HTTP status codes, error payloads, and rate limiting for the Krastie API.

Errors & rate limits

Error shape

Many endpoints return JSON with a human-readable message and an optional errCode:

{
  "message": "Unauthorized",
  "errCode": 401
}

Some endpoints also include an error string with more detail.

Common status codes

StatusMeaning
200 / 201Success
202Accepted — job queued (poll with the returned jobId)
400Invalid request (missing fields, bad URL, prompt limits, etc.)
401Missing or invalid API key
403Plan or credit limit — upgrade or wait for credits
404Resource or job not found
429Too many requests from this IP
500Server error

Rate limits

API traffic is limited per client IP:

LimitWindow
1500 requests15 minutes

After about 1000 requests in the same window, responses may be delayed (slowdown) before hard limiting applies.

If you hit the cap, wait for the window to reset and retry with backoff.

Credits and plan limits

Generation endpoints consume AI credits according to your plan. When you are out of credits you typically receive 403 with a plan/limit message. Visibility report endpoints also enforce per-plan prompt counts.