Skip to content

API keys

The nodes call BytePlus with your own keys. You save each key once in Settings → BytePlus. Workflows contain no keys and no client nodes, so you can share a workflow safely.

Each BytePlus product has its own key. They are not interchangeable: a ModelArk API key does not work on a Seed Speech node.

Key Create it in Used by
ModelArk API key ModelArk console Seedream, Seedance, Seed Audio 1.5, Video Query Tasks, BytePlus LLM and the asset library nodes
Seed Speech API key Seed Speech console, then Settings → API Keys. Activate the services first. Seed Audio 1.0, Seed Speech TTS, ASR and Voice Clone
AI MediaKit API key AI MediaKit console, then Settings → API key vCube Video Enhance, Video Smoothness Enhance, Image Quality Enhance
Vision AI API key Vision AI key setup guide OmniHuman 2.0, OmniHuman Task Result and OmniHuman Cancel Task
IAM access key and secret key IAM console. Use a sub-user whose policy allows only the asset library. Create Image, Video and Audio Asset, Asset Library, and looking up an asset ID in an asset_N input

You only need the keys for the nodes you use. Each node page lists them in its Keys needed row.

  1. Open Settings (the gear icon, or Ctrl+, / Cmd+,) and search for BytePlus.
  2. Under Default credentials, find the row for your key, for example ModelArk API key.
  3. Paste the key. For the ModelArk API key, also pick its region.
  4. Press Save. Remove deletes the saved value again.
Settings, BytePlus page: three default endpoint rows using built-in models and four empty credential rows, including ModelArk with a region drop-down
Before saving: keys are not set and optional endpoints use the built-in models.

ModelArk API keys are checked with BytePlus before they are saved. A wrong key is refused and nothing is written. If BytePlus cannot be reached, the key is saved and Settings says it could not be checked. The key takes effect at once, with no restart. Seed Speech, AI MediaKit and Vision AI API keys are saved without an access check.

For OmniHuman, use OmniHuman Vision AI API key, not the ModelArk row. Saving it starts no generation and does not change the ModelArk region.

Settings, BytePlus page: ModelArk key set with the sample suffix abcd; other credentials are not set and three default endpoint rows use built-in models
After saving: the row shows only the last four characters (here the sample value abcd) and where the key is stored.

Keys are never shown again. Settings only says whether a key is set, where it comes from and its last four characters. The key is written to user/.env in your ComfyUI folder and never into a workflow file.

The IAM access key and secret key go together: fill in both. Settings has no field for an STS session token. To use one, add BYTEPLUS_SESSION_TOKEN to user/.env after you save the pair, because saving or removing the pair in Settings also removes that line.

In Settings → Other → BytePlus → Default credentials, you can also set Seedance 2.0 default endpoint, Seedance 2.5 default endpoint and Seedream 5.0 Pro default endpoint. Enter a ModelArk endpoint ID (ep-...), not a URL. You still select the model on the node; the endpoint uses your saved ModelArk API key and region.

Each endpoint must serve exactly the named model in your key’s region. Saving checks the ID format only, without generating media or checking model access. Leave the field blank and press Save, or press Remove, to return to the built-in model. Environment variables still take precedence.

The Seedance 2.5 endpoint applies at every resolution, including 4k, and also applies to Seedance 2.5 Draft. It does not override Seedance 2.5 Flash, which keeps its own built-in model ID. The Seedream Pro endpoint also applies to Layer Separation with Pro selected. Fast, Mini and other model variants keep their own built-in IDs.

Changes take effect without restarting and invalidate cached outputs for the selected model on the next run. A pending non-blocking task keeps running when you change endpoints; find it with Video Query Tasks and model set to all. Draft to Final reads the model from the draft, then applies its configured endpoint when it matches the current Seedance 2.5 model. Keep the same endpoint override used to create the draft, even if the draft response reports a model ID. Leave the override empty for drafts made directly with the model.

Create user/.env in your ComfyUI folder and add only the lines you need. Use your own values in place of the placeholders:

BYTEPLUS_API_KEY=your-modelark-key
BYTEPLUS_REGION=ap-southeast-1
BYTEPLUS_SEED_SPEECH_API_KEY=your-seed-speech-key
BYTEPLUS_VOD_MEDIAKIT_API_KEY=your-mediakit-key
BYTEPLUS_CV_API_KEY=your-vision-ai-key
BYTEPLUS_ACCESS_KEY=your-iam-access-key
BYTEPLUS_SECRET_KEY=your-iam-secret-key

For optional endpoints, set BYTEPLUS_SEEDANCE_2_0_ENDPOINT, BYTEPLUS_SEEDANCE_2_5_ENDPOINT or BYTEPLUS_SEEDREAM_5_0_PRO_ENDPOINT to the matching ep-... ID. Leave unused variables unset.

The file is read again whenever it changes, so no restart is needed. The pack never touches other lines in it. Settings → BytePlus shows its path under the ModelArk row (“Saved in …”). The file does not exist until you save a key or endpoint.

Pick the region where you created the ModelArk API key: ap-southeast-1 (the default) or eu-west-1. A key and a region that do not match give an Invalid API Key (401) error. Settings catches this when you save: it says BytePlus rejected the key for the selected region. See Keys and regions.

A real environment variable with the same name beats the value in user/.env. Settings tells you when that happens (“An environment variable overrides the value in user/.env”). If BYTEPLUS_REGION is set as an environment variable, the region drop-down is locked, because the variable decides.

Add BytePlus LLM, type Reply with OK, choose Seed 2.0 Mini and connect the output to Preview as Text (Preview Any in older ComfyUI). Press Run. It costs a few tokens. Change the prompt or seed between runs, because ComfyUI reuses the cached result of an unchanged node.

A BytePlus LLM node set to Seed 2.0 Mini with the prompt Reply with OK, connected to an empty Preview as Text node. There is no key field and no client node on the canvas.
The whole workflow: no key and no client node. The answer appears in Preview as Text after you press Run.

Run your first template.