Generate content
Google Gemini-compatible endpoint. Send a native Gemini request (`contents`, `systemInstruction`, `generationConfig`, `tools`) and receive a native `GenerateContentResponse`. Point the google-genai SDK (Python or JavaScript) or any Gemini-native client at `https://api.empiriolabs.ai` and the SDK appends this path automatically. Authenticate with your EmpirioLabs API key via the `x-goog-api-key` header (or the `?key=` query parameter). Works with any chat model, and pricing, parameters, and billing match `/v1/chat/completions`.
Authentication
AuthorizationBearer
Pass your EmpirioLabs API key as a bearer token. The Anthropic-style
x-api-key header is also accepted on every endpoint.
Path parameters
model
An EmpirioLabs chat model id, for example qwen3-max.
Request
This endpoint expects an object.
contents
Conversation turns. Roles are user and model.
systemInstruction
generationConfig
tools
toolConfig
safetySettings
Accepted for compatibility.
Response
Generated content.
candidates
usageMetadata
modelVersion
responseId
Errors
400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
429
Too Many Requests Error
