Gemini relay check

Clodex checks Gemini relays through the OpenAI-compatible POST /chat/completions path: protocol, tools, JSON schema, streaming, and usage.

Protocol level: This verifies protocol completeness, not cryptographic model identity. Google official OpenAI-compatible endpoint is https://generativelanguage.googleapis.com/v1beta/openai.

Point it to the parent of /chat/completions. Google official uses /v1beta/openai; third-party relays usually use /v1.

Used only for this check and sent as Authorization: Bearer.

OpenAI-compatible path

Uses POST /chat/completions, which most Gemini relays expose.

Capabilities

Checks tool calling, JSON schema and streaming behavior.

Usage fields

Verifies token usage shape and consistency.

FAQ

Why does Gemini often return model_not_found?

Relays may expose only some Gemini models, use different names, or remove old models. Preflight tries to show available alternatives.

Can Google official Gemini API be tested?

Yes. Use base_url https://generativelanguage.googleapis.com/v1beta/openai and an AIza... key from Google AI Studio.

More Gemini relay questions: /faq#gemini