Skip to main content
POST
Gemini 风格生成

Base URL

  • https://api.qhaigc.net
  • https://api-hk.qhaigc.net

Endpoint

POST /v1beta/models/{model}:generateContent 示例模型:gemini-2.5-progemini-2.5-flash

鉴权与请求头

请求体格式(Gemini 原生)

请求示例

响应结构示例

官方格式参考

相关页面

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model
string
required

模型名称,如 gemini-2.5-pro

Body

application/json
contents
object[]
required
generationConfig
object
safetySettings
object[]
tools
object[]

Response

200 - application/json

成功响应

candidates
object[]
usageMetadata
object