TokenRex
Models & PricingFeaturesIntegrationsDocsFAQ
Get API
Home/Features/Images, speech & embeddings
Feature

Images, speech & embeddings

GPT Image 2.5, Gemini image models, text-to-speech, transcription and embeddings.

One key covers every modality beyond chat: generate and edit images with GPT Image 2.5 and Gemini image models, turn text into natural speech, transcribe audio to text, and build search and RAG pipelines with Gemini Embedding 2. All of it is metered into the same wallet with the same per-request logs.

Images
GPT Image 2.5 · Gemini
Audio
Speech + transcription
Search
Gemini Embedding 2

What you get

  • Image generation and editing in one endpoint
  • Text-to-speech with natural voices
  • Fast, accurate speech transcription
  • Embeddings for search, RAG and clustering
  • Consistent pricing and logs across endpoints

Common use cases

Product imageryVoiceoversMeeting notesSemantic searchRecommendation systems

How it works

  1. 1
    Create your account
    Sign up for TokenRex — no card required, no waitlist.
  2. 2
    Top up your wallet
    Add funds through Razorpay. The confirmed amount is credited to your balance.
  3. 3
    Create an API key
    Generate a scoped key from the dashboard. Keys are shown once and stored hashed.
  4. 4
    Make your first call
    Point your SDK at the TokenRex base URL. Every request is metered against your wallet in real time.

Code examples

1
2
3
4
5
6
7
8
9
10
from openai import OpenAI

client = OpenAI(api_key="sk-tb-YOUR_KEY", base_url="https://tokenrex.ai/api/public")

img = client.images.generate(
    model="gpt-image-2-5",
    prompt="A minimalist poster of the Howrah Bridge at dawn",
    size="1024x1024",
)
print(img.data[0].url)

Frequently asked questions

How are images billed?

Per image, with the rate depending on the model and quality tier — the live prices are listed below.

Which embedding model is available?

Gemini Embedding 2, billed per 1M input tokens at the market rate.

Can I edit existing images?

Yes. The images endpoint supports both generation and editing.

Related features

Video generation

Create short video clips from text or images with Gemini Omni and Veo 3.1.

Music generation

Lyria 3 creates music with vocals or instrumentals — clips or full tracks.

Every frontier model, one endpoint

GPT-6 Astra, Claude Opus 5.5, Claude Fable 5.1, Gemini 3.8 and more — one key, one wallet.

Get API key Models & PricingCost calculatorAPI documentation
All featuresNext: Playground

Live pricing & comparison

Compare image, speech, transcription and embedding models — live market prices per unit.

Embedding

ModelInputOutput / unit
gemini-embedding-001

Gemini embeddings (default)

$0.15—Details
gemini-embedding-2

Latest Gemini embeddings

$0.20—Details
text-embedding-3-large

High-quality embeddings

$0.13—Details
text-embedding-3-small

Lightweight embeddings

$0.02—Details

Image

ModelInputOutput / unit
gemini-2.5-flash-image

Nano Banana — image edit & gen

—$0.0391 / per imageDetails
gemini-3-pro-image

Highest-quality Gemini image — 1K output

—$0.134 / per imageDetails
gemini-3-pro-image-2k

Gemini 3 Pro Image at 2K resolution (2048 px on the long side for 1:1)

—$0.134 / per imageDetails
gemini-3-pro-image-4k

Gemini 3 Pro Image at 4K resolution (4096 px for 1:1)

—$0.24 / per imageDetails
gemini-3.1-flash-image

Nano Banana 2 — fast HQ image, 1K output

—$0.0671 / per imageDetails
gemini-3.1-flash-image-2k

Nano Banana 2 at 2K resolution (2048 px for 1:1)

—$0.101 / per imageDetails
gemini-3.1-flash-image-4k

Nano Banana 2 at 4K resolution (4096 px for 1:1)

—$0.151 / per imageDetails
gemini-3.1-flash-lite-image

Nano Banana 2 Lite — cheapest, 1K only

—$0.0336 / per imageDetails
gpt-image-1-mini

Cost-efficient OpenAI image gen — billed by tokens (being retired upstream)

$2.00$8.00Details
gpt-image-2

Highest-quality OpenAI image gen — Low/Medium/High quality, billed by tokens

$5.00$30.00Details
gpt-image-2.5-flare

Latency-first OpenAI image generation and editing — Low to Max quality, billed by tokens

$5.00$30.00Details
gpt-image-2.5-sunburst

Quality-first OpenAI image generation and editing — Low to Max quality, billed by tokens

$5.00$30.00Details

Transcription

ModelInputOutput / unit
gemini-3.5-transcribe

Auto language detection across 85+ languages

—$0.005 / per minuteDetails
gpt-4o-mini-transcribe

Cost-efficient speech-to-text

—$0.00302 / per minuteDetails
gpt-4o-transcribe

High-accuracy speech-to-text

—$0.00604 / per minuteDetails
gpt-transcribe

Latest OpenAI speech-to-text — context, keyword and language hints for names & specialist words

—$0.00458 / per audio minuteDetails

TTS

ModelInputOutput / unit
gemini-2.5-flash-lite-preview-tts

Lightest Gemini TTS

—$0.0171 / per 1k charsDetails
gemini-2.5-flash-tts

Fast Gemini TTS

—$0.0171 / per 1k charsDetails
gemini-2.5-pro-tts

High-quality Gemini TTS

—$0.0341 / per 1k charsDetails
gemini-3.1-flash-tts-preview

Latest Gemini TTS preview

—$0.0341 / per 1k charsDetails
gpt-4o-mini-tts

OpenAI streaming TTS

—$0.015 / per 1k charsDetails

Live market prices in your display currency. Full details, cache rates and variants on each model page and the Models & Pricing page.