ai

AI proxy — routes to Claude, ChatGPT, or Gemini

Changed on
post/ai/chat

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/ai/chat
  • Auth: none declared

Request body

provider'claude' | 'chatgpt' | 'gemini'
systemPromptstring
contextstring

Response

AI response

contentstring required
providerstring required
modelstring nullable
usageobject nullable

Changes