TokenLX
GEMINI

google/gemini-1.5-flash

$0.02/M tokens input$0.15/M tokens output3.67B  tokens servedImage

Google's fast multimodal model with 1M context. Remarkable value for long-document and video input tasks.

Key strengths

  • 1M token context
  • Native video + audio input
  • Very low cost
  • Fast first token

Use cases

  • Long document Q&A
  • Video summarization
  • Multilingual chat
  • RAG over large corpora
long-contextmultimodalcheap

Google's google/gemini-1.5-flash is a state-of-the-art text-to-image generation model. It produces highly detailed, photorealistic and stylized imagery from natural-language prompts, with strong instruction following and accurate text rendering inside generated images.

Compatible with the OpenAI `/images/generations` endpoint shape, supporting prompt, size, seed, negative prompt, and resolution controls. Excellent for creative workflows, marketing assets, product visualization, and concept art at scale.

google/gemini-1.5-flash is fully OpenAI-compatible — drop in your existing OpenAI Python or Node SDK and switch `baseURL` to `https://api.tokenlx.ai`. TokenLX transparently routes your requests to the optimal provider endpoint while preserving streaming, function-calling, and structured-output semantics.

Performance

Compare different providers across TokenLX · All locations.

Throughput
35
tok/s
Latency
116
ms
E2E Latency
187
ms
Tool Call Errors
0.08
%
Output Errors
0.35
%
Time to First Token
93
ms

Effective Pricing

Actual cost per million tokens across providers over the past 7 days.

Input
$0.02
per 1M tokens
7d agotoday
Output
$0.15
per 1M tokens
7d agotoday
Input tiers
0M - 0.128M$0.02per 1M tokens
0.128M+$0.04per 1M tokens
Output tiers
0M - 0.128M$0.15per 1M tokens

Recent activity

Total usage per day on TokenLX (last 30 days).

Prompt
1.50B
Completion
2.17B
30d ago15d agotoday

Sample code & API

TokenLX normalizes requests and responses across providers. Use any OpenAI SDK or our native SDK.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.tokenlx.ai/v1",
    api_key="sk-tokenlx-...",
)

response = client.images.generate(
    model="gemini-1.5-flash",
    prompt="A futuristic city skyline at sunset, photorealistic",
    size="1024x1024",
    n=1,
)
print(response.data[0].url)

Replace sk-aihubrouter-… with your key from the dashboard.