For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DashboardSign Up
  • Getting Started
    • Welcome
    • Quick Start
    • Authentication
  • Native Mode
    • Overview
    • OpenAI
    • Anthropic
    • Gemini
  • Unified Mode
    • Overview
    • Python
    • TypeScript
    • cURL
  • Platform
    • Key Management
    • Rate Limits & Budgets
    • Usage & Billing
    • Error Reference
  • API Reference
      • POSTOpenAI
      • POSTAnthropic
      • POSTGemini
DashboardSign Up
API ReferenceNative Mode

Gemini

POST
/gemini/v1beta/models/:model:generateContent
POST
/gemini/v1beta/models/:model:generateContent
$curl -X POST https://api.trygateway.ai/gemini/v1beta/models/gemini-2.5-flash:generateContent \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "contents": [
> {}
> ]
>}'
200Successful
1{}

Transparent proxy to the Google Gemini API. Your request is forwarded unmodified — the gateway only swaps your proxy key for the real Gemini API key. Use exactly the same request body you would send to generativelanguage.googleapis.com.

Was this page helpful?
Previous
Built with

Authentication

AuthorizationBearer

Your proxy key (starts with sk-proxy-…). Create one in the dashboard at app.trygateway.ai.

Path parameters

modelstringRequired

Gemini model identifier (e.g. gemini-2.5-flash)

Request

This endpoint expects an object.
contentslist of objectsRequired
Conversation turns
generationConfigobjectOptional

Response

Gemini generateContent response (returned unmodified from Gemini)