Skip to main content
Language model integration starts with the chat model list. Copy the returned model name into an OpenAI, Anthropic, or Gemini compatible request.
If you do not have an API Key yet, read Get API Key first.
View language model pricing: International site.

Integration order

  1. Call Chat models.
  2. Copy data[n].name from the model list and pass it as model.
  3. Choose one compatible endpoint: OpenAI chat, Anthropic messages, Gemini generateContent, or Gemini streamGenerateContent.

Header differences

  • OpenAI compatible requests use Authorization: Bearer <API_KEY>.
  • Anthropic compatible requests use x-api-key: <API_KEY>.
  • Gemini compatible requests use x-goog-api-key: <API_KEY> and put the model name in the {model} path parameter.