Skip to main content

Create a client

Common model examples you can use out of the box:
  • ai.GPT4o (OpenAI)
  • ai.Claude4Opus (Anthropic Claude 3.7 Sonnet)
  • ai.Grok3Mini and ai.Grok4 (xAI Grok)
  • ai.Gemini20Flash (Google Gemini)
Availability depends on your API access and keys.

Send a chat completion

Stream a response

Single-prompt generation

Message & history types

Response types

KarmaAI fields (reference)