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

modelstringRequired

An EmpirioLabs chat model id, for example qwen3-max.

Request

This endpoint expects an object.
contentslist of objectsRequired

Conversation turns. Roles are user and model.

systemInstructionobjectOptional
generationConfigobjectOptional
toolslist of objectsOptional
toolConfigobjectOptional
safetySettingslist of objectsOptional
Accepted for compatibility.

Response

Generated content.
candidateslist of objects
usageMetadataobject
modelVersionstring
responseIdstring

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
429
Too Many Requests Error