Pre-launch preview. Payments run in test mode, so nothing is really charged, and models aren't kept running.

abliterate

Errors

Errors follow OpenAI's shape: an error object with message, type and code.

StatusCodeWhat to do
400Fix the request.
401invalid_api_key, key_expiredCheck the key.
402insufficient_creditAdd credit, or turn on auto-reload. Lowering max_tokens reserves less.
402spend_limit_reachedRaise or clear the monthly spend limit on the account, project or key.
403admin_key_required, inference_key_requiredUse the other kind of key.
403policy_blockedOne of your enforcing policies matched. policy_id says which.
403platform_policy_violationThe platform rule matched. It can't be turned off.
404model_not_foundSee GET /v1/models.
413request_too_largeSend a smaller request. The limit is 8 MB.
429rate_limit_exceededWait for Retry-After seconds.
503model_not_deployedThis model isn't running on the platform at the moment.
503no_capacityNo GPU was free. You weren't charged. Retry after Retry-After seconds.
503gateway_unavailableThe API is starting up or briefly down. Retry after Retry-After seconds.
503policy_evaluation_failedAn enforcing check couldn't finish, so the request stopped. Retry.
504The request hit the time limit, and is billed up to it.

If a stream fails partway, its last event before [DONE] is an error object, which the OpenAI SDKs raise as an exception.