API Reference

Gemini Compatibility

Native-style /v1beta requests

Path format

A native Gemini request commonly uses this form:

https://api.sunai.lol/v1beta/models/{model}:generateContent

You can also use the OpenAI-compatible /v1/chat/completions endpoint when the group exposes the model through an OpenAI-compatible name.

Authentication

Use the same bearer token:

Authorization: Bearer sk-your-token

Notes

  • Select a Gemini-related token group
  • Use the exact model ID shown in the model catalog
  • Primary endpoint: https://api.sunai.lol; backup endpoint: https://api2.sunai.lol

Group selection: Gemini / Grok.

On this page