Section Jump Links:
// Jump to section
v2.4
POST
/v2/sessionsInitialize a stateful or streaming inference session with automatic edge consensus and latency optimization.
Quota: 5,000 req/minAuth: Bearer Token
Request Example
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | required | The targeted model identifier (e.g. 'vertex-core-v2' or 'vertex-fast-embed'). |
| maxTokens | integer | optional | Maximum output tokens to generate. Defaults to 2048 (max: 8192). |
| temperature | number | optional | Sampling temperature between 0.0 and 1.0. Lower values are more deterministic. |
| stream | boolean | optional | Whether to return chunks via Server-Sent Events (SSE). Default: false. |
Response Example (200 OK)application/json
Create Inference Session
Establishes an active inference runtime session pinned to the lowest-latency regional edge cluster. Sessions maintain ephemeral KV caches for multi-turn conversations and agentic reasoning workflows.
HTTP Request
POST https://api.example.com/v2/sessions
Headers
| Header | Value | Description |
|---|---|---|
Authorization |
Bearer <token> |
Required valid API credential |
Content-Type |
application/json |
Required request MIME type |
X-Vertex-Region |
us-east-1 |
Optional region pin override |
Was this documentation page helpful?
Help us improve the Vertex developer experience.
✓Thank you for your feedback! Have an issue or bug to report?
Open Support Ticket →