model-gateway

Store one of your model provider keys

Sealed before storage (envelope encryption bound to your organization) and never returned. A baseUrl, required for openai-compatible and azure-openai, must be HTTPS on a public host.

post/api/v1/model-keys

Request

  • Base URL: https://worthune.com
  • URL: https://worthune.com/api/v1/model-keys
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Api-Key

Request body

provider'anthropic' | 'gemini' | 'openai-compatible' | 'azure-openai' required
labelstring required
keystring required
baseUrlstring

e.g. https://api.openai.com/v1, a Kimi or self-hosted endpoint, or https://<resource>.openai.azure.com/openai/v1.

Response

Stored.

okunknown required
notestring required

Changes

No recorded changes to this operation across all 1 revision of this API.