GatewayOptions
Namespace: Vercel.AI.Gateway
public sealed class GatewayOptionsAI Gateway settings. The default base URL is https://ai-gateway.vercel.sh/v4/ai.
Inheritance: object
Properties
Section titled “Properties”ApiKey
Section titled “ApiKey”public string? ApiKey { get; set; }Explicit key. Falls back to AI_GATEWAY_API_KEY.
Value: string
BaseUrl
Section titled “BaseUrl”public string BaseUrl { get; set; }Gateway origin for the V4 routes.
Value: string
BatchResultDownloads
Section titled “BatchResultDownloads”public BatchResultDownloads? BatchResultDownloads { get; set; }Settings for downloading JSON Lines batch results.
Value: BatchResultDownloads
O11yHeaders
Section titled “O11yHeaders”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).
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product