Gemini

by GoogleText

Fast multimodal Google models exposed through an OpenAI-compatible chat endpoint.

InputPromptmessages
Models9available
FlowSyncresult URL
Price40% offvendor token pricing
GeminiExample conversation
You

Summarize this product brief in five bullets.

Gemini logo
Gemini

The brief prioritizes a unified API, predictable billing, static-first documentation, responsive examples, and a short path from key creation to first result.

Examples

A request and response, in context

01 · SummarizationGemini
You

Summarize a product brief focused on one API, predictable billing, and fast onboarding.

Gemini logo
Gemini

The product unifies model access behind one API, makes usage costs easier to anticipate, and shortens the path from account setup to a successful request. Documentation and examples are designed to remain clear across desktop and mobile.

02 · Structured dataGemini
You

Extract a JSON object from: Acme renewed the Pro plan for 25 seats on 2026-07-01.

Gemini logo
Gemini

{ "customer": "Acme", "plan": "Pro", "seats": 25, "renewedOn": "2026-07-01" }

03 · Decision supportGemini
You

Compare polling and webhooks for a small internal tool in three points.

Gemini logo
Gemini

Polling is simpler to deploy, works without a public callback URL, and is easy to debug. Webhooks reduce repeated requests and latency, but require signature verification and reliable event handling.

Capabilities

What you can build with Gemini

Prompt driven generation

Submit a concise prompt and get production-ready responses output through one TTAPI job.

Core controls only

Keep integration simple with prompt, model, output settings, and callback handling.

Async result flow

Use polling or webhook callbacks so long-running generations do not block your UI.

Ready for product UI

Return Gemini results that can be displayed, stored, or passed into downstream workflows.

Pricing

Token billing rules

One key and one balance across supported text models.

Token billing ruleOfficial pricing
PlatformTTAPI billing
Gemini40% off official pricing
API request

Headers and submit parameters

Use the endpoint below with your TTAPI key and the request fields shown.

POSThttps://api.ttapi.io/gemini/chat/completions

Headers

TT-API-KEYstringrequired

Your TTAPI API key.

Content-Typestringrequired

Use application/json.

Body

modelstringrequired

Supported model identifier.

messagesarrayrequired

OpenAI-compatible chat messages.

temperaturenumberoptional

Sampling temperature.

max_tokensintegeroptional

Maximum output tokens.

streambooleanoptional

Enable server-sent event streaming.

Open the official TTAPI documentation
Integrate

From key to first result

Copy the resolved endpoint, authentication headers, and request body for this model.

curl --request POST \
  --url https://api.ttapi.io/gemini/chat/completions \
  --header 'TT-API-KEY: $TTAPI_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"model":"gemini-3.5-flash","messages":[{"role":"user","content":"Summarize this brief."}],"stream":false}'