from elevenlabs import ElevenLabs
client = ElevenLabs(
api_key="YOUR_API_KEY",
)
client.user.get()
{
"subscription": {
"tier": "<string>",
"character_count": 123,
"character_limit": 123,
"can_extend_character_limit": true,
"allowed_to_extend_character_limit": true,
"next_character_count_reset_unix": 123,
"voice_limit": 123,
"max_voice_add_edits": 123,
"voice_add_edit_counter": 123,
"professional_voice_limit": 123,
"can_extend_voice_limit": true,
"can_use_instant_voice_cloning": true,
"can_use_professional_voice_cloning": true,
"currency": "usd",
"status": "trialing",
"billing_period": "monthly_period",
"character_refresh_period": "monthly_period"
},
"subscription_extras": {
"concurrency": 123,
"force_logging_disabled": true,
"moderation": {
"is_in_probation": true,
"enterprise_check_nogo_voice": true,
"enterprise_check_block_nogo_voice": true,
"never_live_moderate": true,
"nogo_voice_similar_voice_upload_count": 123,
"enterprise_background_moderation_enabled": true,
"safety_status": "appeal_approved",
"warning_status": "warning"
}
},
"is_new_user": true,
"xi_api_key": "<string>",
"can_use_delayed_payment_methods": true,
"is_onboarding_completed": true,
"is_onboarding_checklist_completed": true,
"first_name": "<string>",
"is_api_key_hashed": false,
"xi_api_key_preview": "<string>",
"referral_link_code": "<string>",
"partnerstack_partner_default_link": "<string>"
}
Gets information about the user
from elevenlabs import ElevenLabs
client = ElevenLabs(
api_key="YOUR_API_KEY",
)
client.user.get()
{
"subscription": {
"tier": "<string>",
"character_count": 123,
"character_limit": 123,
"can_extend_character_limit": true,
"allowed_to_extend_character_limit": true,
"next_character_count_reset_unix": 123,
"voice_limit": 123,
"max_voice_add_edits": 123,
"voice_add_edit_counter": 123,
"professional_voice_limit": 123,
"can_extend_voice_limit": true,
"can_use_instant_voice_cloning": true,
"can_use_professional_voice_cloning": true,
"currency": "usd",
"status": "trialing",
"billing_period": "monthly_period",
"character_refresh_period": "monthly_period"
},
"subscription_extras": {
"concurrency": 123,
"force_logging_disabled": true,
"moderation": {
"is_in_probation": true,
"enterprise_check_nogo_voice": true,
"enterprise_check_block_nogo_voice": true,
"never_live_moderate": true,
"nogo_voice_similar_voice_upload_count": 123,
"enterprise_background_moderation_enabled": true,
"safety_status": "appeal_approved",
"warning_status": "warning"
}
},
"is_new_user": true,
"xi_api_key": "<string>",
"can_use_delayed_payment_methods": true,
"is_onboarding_completed": true,
"is_onboarding_checklist_completed": true,
"first_name": "<string>",
"is_api_key_hashed": false,
"xi_api_key_preview": "<string>",
"referral_link_code": "<string>",
"partnerstack_partner_default_link": "<string>"
}
Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
Successful Response
The response is of type object
.
Was this page helpful?