Gemini Files und Cache
Gemini-Cache-Inhalt erstellen
Erstellt zwischengespeicherte Inhalte für ein aktuelles TokenLab Gemini-Modell.
curl -X POST "https://example.com/v1beta/cachedContents" \ -H "Content-Type: application/json" \ -d '{ "model": "string" }'{ "name": "string", "model": "string", "displayName": "string", "createTime": "2019-08-24T14:15:22Z", "updateTime": "2019-08-24T14:15:22Z", "expireTime": "2019-08-24T14:15:22Z", "usageMetadata": {}}API-Key-Authentifizierung. Erstellen oder verwalten Sie API-Keys unter Dashboard > API > API Keys.
Ort: header
Abfrageparameter
API-Key-Alternative zu Bearer oder x-goog-api-key.
Header
Wiederverwenden desselben Keys und Request-Bodys bei der Wiederherstellung einer Erstellungsantwort. Ein abweichender Body mit demselben Key führt zu einem Konflikt.
Anfragekörper
application/json
Antwort
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json