视频理解-url [原生格式] 开发中
POST /v1beta/models/gemini-2.5-pro:generateContent
说明
概览
| Method | POST |
|---|---|
| Path | /v1beta/models/gemini-2.5-pro:generateContent |
| Type | http |
| Status | 0 |
| Module | 2102810 |
| Folder | 61214320 |
参数
{ "query": [ { "name": "key", "required": true, "description": "", "id": "GsBYee3kKi", "type": "string", "enable": true, "sampleValue": "{{YOUR_API_KEY}}" } ], "header": [ { "name": "Content-Type", "required": true, "description": "", "id": "f9z3Ac0sW3", "type": "string", "enable": true, "sampleValue": "application/json" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "contents": { "type": "array", "items": { "type": "object", "properties": { "parts": { "type": "array", "items": { "type": "object", "properties": { "inline_data": { "type": "object", "properties": { "mime_type": { "type": "string" }, "data": { "type": "string" } }, "required": [ "mime_type", "data" ] }, "text": { "type": "string" } }, "required": [] } } } } } }, "required": [ "contents" ] }, "required": false, "mediaType": "", "examples": [ { "mediaType": "application/json", "value": "{\n \"contents\": [\n {\n \"role\": \"user\",\n \"parts\": [\n {\n \"file_data\": {\n \"mime_type\": \"video/mp4\",\n \"file_uri\": \"https://generativelanguage.googleapis.com/v1beta/files/rsmb0ggleyv0\"\n }\n },\n {\n \"text\": \"Please summarize the video in 3 sentences.\"\n }\n ]\n }\n ]\n}", "name": "示例" } ], "oasExtensions": "" }
响应
[ { "id": 698904516, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {} }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]