# setyoutubethumbnail: Set YouTube Thumbnail

> setyoutubethumbnail (Set YouTube Thumbnail) is a 1001fx API function in the group YouTube: POST https://api.1001fx.com/youtube/setyoutubethumbnail, 5 credits per call. It works in Make, n8n, scripts and AI agents as a plain HTTP call.

**Deprecated:** this function will be removed in a future release.

Uploads a custom video thumbnail to YouTube and sets it for a video.

- This service is provided by an external service provider: YouTube. The data of the call is sent to the provider. [More about service providers](https://1001fx.com/functions#serviceproviders)

- Group: YouTube
- Endpoint: `POST https://api.1001fx.com/youtube/setyoutubethumbnail`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 5 credits per call
- Ready-made in: none, use an HTTP request
- Service provider: YouTube
- Docs: https://1001fx.com/functions/setyoutubethumbnail

## Parameters

- `credentialKey` (string, required) – 1001fx Credential Key: Your 1001fx credential key. See https://1001fx.com/app/credentials/list
- `videoId` (string, required) – Video ID: YouTube Video ID.
- `file` (file, optional) – Thumbnail Image: Thumbnail image to upload to a specified video.
- `imageUrl` (string, optional) – Image URL: The URL of an image to show in your video. You can use 1001fx uploadasset for temporary asset upload.
