If you do not have an API Key yet, read Get API Key first.
View language model pricing: International site.
Integration order
- Call Chat models.
- Copy
data[n].namefrom the model list and pass it asmodel. - 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.

