Google GenAI SDK
The Gemini wire (/v1beta/models/…:generateContent) is not served — measured 405 on 2026-09-15. The google-genai SDK does not speak the OpenAI wire; use the OpenAI SDK (or any OpenAI-compatible client).
from openai import OpenAI
client = OpenAI(base_url="https://api.kotoba.cloud/v1", api_key=os.environ["KOTOBA_API_TOKEN"])
r = client.chat.completions.create(model="qwen3.8-flash-next-whitehacker", max_tokens=2048,
messages=[{"role": "user", "content": "..."}])
Map Gemini's contents / parts / systemInstruction to messages (role + string content). Image and audio inputs are not accepted today (content is a string).