Skip to content

GatewayOptions

Namespace: Vercel.AI.Gateway

public sealed class GatewayOptions

AI Gateway settings. The default base URL is https://ai-gateway.vercel.sh/v4/ai.

Inheritance: object

View source

public string? ApiKey { get; set; }

Explicit key. Falls back to AI_GATEWAY_API_KEY.

Value: string

View source

public string BaseUrl { get; set; }

Gateway origin for the V4 routes.

Value: string

View source

public BatchResultDownloads? BatchResultDownloads { get; set; }

Settings for downloading JSON Lines batch results.

Value: BatchResultDownloads

View source

public IReadOnlyDictionary<string, string>? O11yHeaders { get; set; }

Observability headers sent on every request. When null, they come from VERCEL_DEPLOYMENT_ID (ai-o11y-deployment-id), VERCEL_ENV (ai-o11y-environment), VERCEL_REGION (ai-o11y-region), and VERCEL_PROJECT_ID (ai-o11y-project-id).

Value: IReadOnlyDictionary<string, string>

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product