Skip to main content
Anyone exposes Google Gemini-compatible endpoints at the /v1beta/models/{model} path, matching the format used by the Google AI SDKs and the Gemini REST API. You authenticate with your Anyone API key using the x-goog-api-key header or a key query parameter — no Google credentials needed. Anyone routes the request to whichever upstream channel is configured for the model you specify in the URL path.

Endpoints

The model name is part of the URL path, not the request body. For example, to use gemini-3.1-pro-preview, send a POST to /v1beta/models/gemini-3.1-pro-preview:generateContent.

Authentication

Pass your Anyone API key using either method: Header (recommended):
Query parameter:

Request parameters

object[]
required
The conversation history as an array of content objects. Each object has a role and a parts array.
object
A system prompt. Structure is the same as a contents item: an object with a parts array. Only text parts are supported for system instructions.
Also accepted as system_instruction (snake_case).
object
Parameters that control how the model generates output. Also accepted as generation_config.
object[]
Tools the model may use. Supports functionDeclarations, googleSearch, googleSearchRetrieval, codeExecution, and urlContext.
object
Controls how the model selects tools.
object[]
Override the default safety filters. Each entry specifies a category and threshold.

Response fields

object[]
An array of generated response candidates.
object
Token usage for the request.
object
Feedback about the prompt, including safety ratings and any block reason if the prompt was blocked.

Examples

Example response:

Thinking models

Anyone supports Gemini thinking models, which perform additional reasoning before generating a response. You have three ways to enable thinking: 1. Thinking model suffix — append -thinking to any supported model name:
2. Effort suffix — append -low, -medium, or -high for fine-grained control:
3. thinkingConfig in generationConfig — pass the configuration explicitly:
When thinking is active, parts with "thought": true in the response contain the model’s reasoning. These parts are not shown to end users by default — your application decides whether to display them.
If you only need text output and do not want to process thinking parts, set includeThoughts: false and let the model reason internally without including those tokens in the response body.