GenAI Integration
Create cached content (Gemini format)
Creates a cached content entry that can be re-used across subsequent generate-content calls to reduce repeated prefix tokens.
post/genai/v1beta/cachedContents
Request
- Base URLhttp://localhost:8080
- Auth
- HTTP bearer
- or HTTP basic
- or API key in header x-bf-vk
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
x-model-providerstring
Optional provider override. Defaults to gemini. Use vertex to route to Vertex.
Request body
Response
Successful response
object required
Changes
No recorded changes to this operation across all 1 revision of this API.