> ## Documentation Index
> Fetch the complete documentation index at: https://turnkey-0e7c1f5b-bc-add-sdk-typedoc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateApiKeyAccount

# Function: ~~createApiKeyAccount()~~

> **createApiKeyAccount**(`config`): `Promise`\<\{}>

Defined in: [packages/viem/src/index.ts:222](https://github.com/tkhq/sdk/blob/ee72856c3f450731d7501ab05001215768b71500/packages/viem/src/index.ts#L222)

Creates a new Custom Account backed by a Turnkey API key.

## Parameters

### config

`TApiKeyAccountConfig`

## Returns

`Promise`\<\{}>

## Deprecated

use [createAccount](../createAccount/readme) instead.
