Skip to main content
POST
Gemini 兼容生成内容
Use the Gemini-style endpoint when your application already follows Google’s Gemini API request shape. Keep contents, parts, and generationConfig; replace the host, API key, and model ID.
Reference format: Gemini API text generation. HiLinkup supports common text generation structures; capabilities depend on the selected model.
“Gemini generateContent” is the protocol shape, not a requirement to use an overseas Gemini model. Examples use the HiLinkup platform model aliyun/kimi-k3; confirm available IDs with /v1/models.

Endpoint

Replace {model} with an available Gemini-compatible model ID, for example:

Headers

Minimal request

Configuration map

Gemini does not use /v1/chat/completions. If a client asks for a full endpoint, use https://api.hilinkup.com/v1beta/models/{model}:generateContent.

Authorizations

x-goog-api-key
string
header
required

Gemini 兼容端点使用 x-goog-api-key 头携带 API Key。

Path Parameters

model
string
required

provider-qualified 模型 ID,例如 aliyun/kimi-k3。

Body

application/json
contents
object[]
required

Response

200

Gemini generateContent 结果

Last modified on August 12, 2026