Skip to main content
POST
/
ai
/
gateway
/
{provider}
/
{path}
AI Gateway
curl --request POST \
  --url https://api.veryfront.com/ai/gateway/{provider}/{path} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Authentication via JWT token or API key. JWT: Get from Veryfront dashboard. API Key: Format "vf__" - create via /api-keys endpoint.

Path Parameters

provider
enum<string>
required

AI provider name

Available options:
anthropic,
openai,
google,
moonshotai
Example:

"anthropic"

path
string
required

Upstream API path (may contain additional segments)

Example:

"v1/messages"

Body

application/json

Provider-specific request body (forwarded as-is to upstream)

{key}
unknown

Response

Upstream provider response (forwarded as-is)