---
title: "API key animated icon"
description: "API key animated icon (Models & providers). Authorize an app: the key goes in, turns, and the code opens. Light: the key pushes in 2 units and stops with a hit, then turns on its shaft (its profile closes up toward the shaft line, as a key seen side-on does when it turns); a beat later the code brackets spring apart and settle, and the key turns back and withdraws. Strong: the key draws back first, drives in 2.5 with a hit and a rebound, turns further, and the brackets spring wider with a bounce. The brackets never leave their rows; the key stays rigid."
canonical: https://generativeicons.lottiefiles.com/icons/api-key/
---

# API key animated icon

Authorize an app: the key goes in, turns, and the code opens. Light: the key pushes in 2 units and stops with a hit, then turns on its shaft (its profile closes up toward the shaft line, as a key seen side-on does when it turns); a beat later the code brackets spring apart and settle, and the key turns back and withdraws. Strong: the key draws back first, drives in 2.5 with a hit and a rebound, turns further, and the brackets spring wider with a bounce. The brackets never leave their rows; the key stays rigid.

- Id: `api-key`
- Category: Models & providers
- Search terms: api token, access token, secret key, api secret, client secret, bearer token, auth token, developer key, authorization, service key
- One action, back to rest
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.lottiefiles.com/assets/api-key.lottie (dotLottie, 3912 bytes, sha256 e784f383842497b7fb32f3b4e3453710f12ce42158cedc03122d0d51fdbdc9ef)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add api-key
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/api-key.mjs';

export function ApiKeyIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/api-key.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.lottiefiles.com/icons/api-key/ · https://generativeicons.lottiefiles.com/api/icons/api-key
