gemini-cli (and the family of CLIs / IDE extensions
built on top of it) speaks the Gemini Native protocol — query-param
auth (?key=...) against /v1beta/models/{model}:generateContent.
ByteSpike serves that protocol verbatim at llm.bytespike.ai/v1beta.
Prerequisites
- A ByteSpike account + a key bound to the
gemini-defaultgroup (or any group that serves Gemini models). See Register. - Gemini CLI installed:
Configure
Gemini CLIs typically readGEMINI_API_KEY and let you override the
base URL via env or flag.
GOOGLE_API_BASE_URL); or use the raw curl form (next section)
inside a wrapper script.
Verify
candidates[0].content.parts[0].text field, plus
the standard X-Quota-Remaining-Credits header.
Switching models
The model name lives in the URL path:/v1beta reference
for the full request shape.
Streaming
Switch the method suffix:data: {chunk}\n\n blocks terminated by a final [DONE] marker.
SDKs
Both Google’s official Generative AI SDK and most third-party Gemini clients accept abaseUrl override at client construction:
Image + video models via Gemini stack
Veo (Google’s video model) ships under the Gemini API surface but the long-running shape uses ByteSpike’s async tasks API instead:POST /tasks/submit and
the Veo 3.1 model page.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
401 API key not valid | Wrong key or missing query param | Verify ?key=sk-byts-... is present and correct |
403 PERMISSION_DENIED | Model not in key’s group | Switch to gemini-default group or pick another model |
404 NOT_FOUND (model) | Model id typo — ByteSpike uses the dashed form (gemini-3-1-pro), not Google’s dotted form (gemini-3.1-pro) | Use the slugs from /api/v1/me/available-models |
| Stream cuts after first chunk | Some CLIs default to non-streaming endpoint; check the :streamGenerateContent suffix | Switch to streamGenerateContent |
Next
/v1beta reference
Full request / response / streaming protocol.
Gemini models
Models, capabilities, pricing.
Claude Code CLI
The Anthropic-native equivalent.
Cursor IDE
Editor-level Gemini integration.