byok

Save a BYOK LLM API key

Save (create or update) an encrypted BYOK LLM API key.

Validates the key via a test inference call before persisting. One key per provider per user -- saving for an existing provider replaces the previous key.

post/account/llm-keys

Request

  • Base URL: https://api.whoisgeni.us (the document declares no server; this is the origin it was published from)
  • URL: https://api.whoisgeni.us/account/llm-keys
  • Auth: HTTP bearer

Request body

providerstring required

LLM provider name: "openai", "anthropic", "google", "mistral", "groq"

api_keystring required

Raw API key (will be encrypted server-side, never stored in plaintext)

Response

Saved key details (never includes raw key)

metaobject nullable

Example response

{
  "error": {
    "code": "JOB_NOT_FOUND",
    "message": "No job found with the given ID."
  }
}

Changes

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