Markdown ↗

OHGROK / Integration guide

API keys & model groups

Give each application the access it needs.

On this page

Create a site key

Create a key in the matching model group in the console. Keep it on your server or in local environment variables, outside public web bundles.

Match the model group

The group attached to the key controls routing and price. A default-group key is not automatically valid for dedicated channel groups. Select the group shown on the model detail page.

  1. Text example: grok-4.5, channel2-grok-cursor.
  2. Image example: image-2, its enabled image-generation group.
  3. Video example: seedance-2.0-fast, its corresponding Seedance group.

Store and rotate

Use server-side environment variables. Exclude local secret files from version control. If a key is exposed, revoke it in the console, create a replacement and update your application.