Generate text content with a Gemini-compatible request

Gemini-compatible endpoint for generateContent and streamGenerateContent. The BeatAPI key is removed before forwarding.

身份验证

x-goog-api-keystring

Gemini-compatible API key header. Use a BeatAPI API key.

OR
AuthorizationBearer

Send your API key as Authorization: Bearer <BEATAPI_API_KEY>.

路径参数

modelstring必需

Public text model id exposed by BeatAPI. Call GET /v1/models to discover the models enabled for your environment.

actionenum必需
允许的值:

请求

This endpoint expects a map from strings to any.

响应

Gemini-compatible JSON response or server-sent event stream

错误

401
Unauthorized Error
402
Payment Required Error
429
Too Many Requests Error
502
Bad Gateway Error
503
Service Unavailable Error