POST https://api.freemodel.app/v1beta/models/{model}:generateContent
Choose a Gemini-compatible model ID returned by GET /v1/models. Substitute it for <gemini-model-id> in the path.
Generate content
Authenticate with a Bearer key. The gateway also accepts a FreeModel key in thekey query parameter for Gemini-style clients.
Response
Request body
| Field | Type | Required | Description |
|---|---|---|---|
Path model | string | Yes | A Gemini-compatible model ID available to your key. |
contents | array | Yes | Gemini-style content objects containing parts. |
generationConfig.temperature | number | No | Sampling variation. |
generationConfig.maxOutputTokens | integer | No | Maximum tokens to generate when supported. |
Model availability can change. The models page lists the current catalog and pricing.