Organizations

Set the USD per ElevenLabs credit (SuperAdmin only)

PUT
/api/organizations/{organizationId}/ai-cost-settings

Sets the organization's USD per ElevenLabs credit, or null to go back to the default. When the rate the voice rows use changes (or the last run at this rate failed or was lost), the organization's voice rows are repriced in the background; repriceQueued says whether that run was queued. Returns 503 when the rate was saved but the run could not be queued. Requires SUPERADMIN.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

organizationId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/organizations/string/ai-cost-settings" \  -H "Content-Type: application/json" \  -d '{    "elevenlabsUsdPerCredit": 0.00012  }'
{  "success": true,  "repriceQueued": true,  "data": {    "elevenlabsUsdPerCredit": 0.00012,    "effectiveUsdPerCredit": 0.00012,    "defaultUsdPerCredit": 0.0001,    "maxUsdPerCredit": 0.01,    "voiceReprice": {      "jobId": "voice-reprice-6a0d978d0000000000000a01-1793300000000-6a0d978d0000000000000b01",      "status": "queued",      "usdPerCredit": 0.00012,      "requestedAt": "2026-10-29T10:00:00.000Z"    }  }}