Skip to content

Gemini ​

http
GET /v1beta/models
POST /v1beta/models/{model}:generateContent
POST /v1beta/models/{model}:streamGenerateContent

The Gemini-compatible endpoint is suitable for directly using Gemini-style clients. In some scenarios, OpenAI-compatible requests can also be converted to the Gemini upstream.

Request Example ​

bash
curl "https://api.cloudaikit.com/v1beta/models/gemini-1.5-flash:generateContent" \
  -H "Authorization: Bearer sk-your-token" \
  -H "Content-Type: application/json" \
  -d '{"contents":[{"parts":[{"text":"你好"}]}]}'

If the Gemini-compatible endpoint used by your deployment is different, refer to the Endpoint Overview and the response returned by the current service.

Conversion Limitations ​

Format conversion cannot guarantee a one-to-one correspondence for all fields. Images, audio, tool calls, structured output, reasoning content, and safety parameters may differ significantly between service providers.