Call Gemini model method

http
POST /ai/v1beta/models/{model_method}

Call Gemini model method.

Parameters

NameInRequiredDescription
model_methodpathYes
x-veryfront-project-referenceheader
x-veryfront-project-idheader
x-veryfront-project-slugheader
x-veryfront-agent-run-idheader
x-veryfront-conversation-idheader
x-veryfront-message-idheader
x-veryfront-agent-idheader
x-veryfront-billing-group-idheader

Responses

StatusDescription
200Upstream provider response (forwarded as-is)
400Invalid request
401Unauthorized
402Insufficient AI credits, an exhausted monthly AI budget, or a provider spend limit
403Project access denied
404No deployment of this model speaks this protocol natively
413Request body over the 32 MiB limit (code request_too_large), or an upstream 413 re-rendered in this envelope
429The calling API key's requests-per-minute limit (code key-rate-limited), or an upstream provider rate limit re-rendered in this envelope with its Retry-After
500Gateway error, or an upstream 500 re-rendered in this envelope
502Gateway proxy error, or an upstream 502 re-rendered in this envelope
503No available deployment, auth unavailable, or an upstream 503 re-rendered in this envelope
529Upstream provider overloaded, re-rendered in this envelope
defaultAny other status the upstream provider returned, with the upstream status and its body (if any) re-rendered in this envelope