ApiKeyProvider

fun interface ApiKeyProvider(source)

Supplies an ElevenLabs API key immediately before an authenticated request.

Implementations may read from a rotating credential store. The SDK does not cache returned keys and rejects blank values.

Functions

Link copied to clipboard
abstract suspend fun getApiKey(): String

Returns the API key to use for the next request.