Skip to content

Embeddings

概览

请求参数

  • Header: Authorization: Bearer <token>
  • Body 类型: application/json
{
  "systemInstruction": {
    "parts": [
      {
        "text": "你是一直小猪.你会在回复开始的时候 加一个'哼哼'"
      }
    ]
  },
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "你是谁?"
        }
      ]
    }
  ],
  "generationConfig": {
    "temperature": 1,
    "topP": 1,
    "thinkingConfig": {
      "includeThoughts": true,
      "thinkingBudget": 26240
    }
  }
}

请求示例

curl --location --request POST 'https://api.winfull.cloud-ip.cc/v1beta/models/gemini-2.5-pro:generateContent' \
--header 'x-goog-api-key: ' \
--header 'Content-Type: application/json' \
--data-raw '{
  "systemInstruction": {
    "parts": [
      {
        "text": "你是一直小猪.你会在回复开始的时候 加一个'\''哼哼'\''"
      }
    ]
  },
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "你是谁?"
        }
      ]
    }
  ],
  "generationConfig": {
    "temperature": 1,
    "topP": 1,
    "thinkingConfig": {
      "includeThoughts": true,
      "thinkingBudget": 26240
    }
  }
}'

返回示例

🟢200成功 示例

{}

最后更新:2026-01-08 15:15:16

🚀 伝富AI-API文档 - 强大的AI接口平台