GGateYourWay API
Status RU Create key
Security

Authentication

Public keys use the gyw-sk-... format and are scoped to a model family and price group.

01

Headers

OpenAI

Bearer token

Authorization: Bearer gyw-sk-YOUR_KEY

Use for Chat Completions, Responses, Images, and the Cursor bridge.

Anthropic

x-api-key

x-api-key: gyw-sk-YOUR_KEY

For the Messages API, also send anthropic-version: 2023-06-01.

02

Key scope

A single key does not automatically grant access to every family.

CheckResult
Key family matches the modelRequest can continue
Model is outside the scope403 key_scope_not_supported
Endpoint is unsupported by the model403 endpoint_not_supported
Private group is unavailable to the account403 trusted_access_required
03

401 vs 403

401 means the key is missing, revoked, or unrecognized. 403 means the key is valid but does not allow the selected model, endpoint, or private group.

04

Secret handling

  • Store the key in an environment variable or secret manager.
  • Do not put the key in git, browser JavaScript, or screenshots.
  • Revoke a compromised key in the cabinet and create a new one.
  • The setup assistant in these docs processes an entered key only in the browser and does not save it.
Manage keys →