Skip to main content

Gemini model on ScaleMax

Gemini 3.8 Flash API

Call Gemini 3.8 Flash with the model ID gemini-3.8-flash through ScaleMax's OpenAI-compatible API. It costs $0.75 per million input tokens and $3.75 per million output tokens, prepaid, with no subscription.

Low price · Reads images · 1M context

Model ID
gemini-3.8-flash
Maker
Gemini
Input / 1M tokens
$0.75
Output / 1M tokens
$3.75
Context window
1,050,000 tokens
Max output
65,500 tokens

Gemini 3.8 Flash pricing

ScaleMax publishes one customer rate per model and deducts each completed request from your prepaid balance at that rate: $0.75 per 1M input tokens and $3.75 per 1M output tokens for Gemini 3.8 Flash.

What typical requests cost at the standard rate (token counts are illustrative sizes):

RequestSizeCost per requestPer $25 of credit
Chat reply2,000 tokens in, 600 out$0.00375about 6,666 requests
Coding-agent step40,000 tokens in (files + history), 2,000 out$0.038about 666 requests
Long-document pass200,000 tokens in, 4,000 out$0.165about 151 requests

The Starter credit pack costs $2.50 and adds $25 of usage credit (larger packs add more per dollar — see how pricing works). Prompt-cache reads, where the model supports caching, can bill below the input rate.

Pay by UPI, PayU or Cashfree (UPI, cards, net banking), Cryptomus (crypto) or PayPal. Prices on this page are in US dollars; India checkout shows rupees. See what ₹1,000 buys for token packs.

How to call Gemini 3.8 Flash

Create a key in the dashboard, export it as SCALEMAX_API_KEY, and send gemini-3.8-flash as the model. OpenAI-compatible clients use the base URL https://api.scalemax.pro/v1. Token pack keys use /token/v1 instead of /v1.

curl · Chat Completions
curl https://api.scalemax.pro/v1/chat/completions \
  -H "Authorization: Bearer $SCALEMAX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.8-flash",
    "messages": [{"role": "user", "content": "Explain this error in one line."}],
    "max_tokens": 300
  }'
Python · OpenAI SDK
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.scalemax.pro/v1",
    api_key=os.environ["SCALEMAX_API_KEY"],
)

reply = client.chat.completions.create(
    model="gemini-3.8-flash",
    messages=[{"role": "user", "content": "Explain this error in one line."}],
    max_tokens=300,
)
print(reply.choices[0].message.content)
Node · OpenAI Responses API
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.scalemax.pro/v1",
  apiKey: process.env.SCALEMAX_API_KEY,
});

const response = await client.responses.create({
  model: "gemini-3.8-flash",
  input: "Explain this error in one line.",
  max_output_tokens: 300,
});
console.log(response.output_text);

Keep the key server-side. Call GET /v1/models with your key to see every model it can use; the quick start covers errors and streaming.

Capabilities and limits

  • Context window: 1,050,000 tokens (1.05M-token).
  • Maximum output: 65,500 tokens per response.
  • Supports: Reads images, Tool / function calling, Responses API.
  • Streaming: server-sent events on every route.

Works in

Any OpenAI-compatible client: Cursor, Cline, Roo Code, Kilo Code, OpenCode, Continue, Aider, Zed and Hermes Agent, with the model ID above. Setup steps for each are on the integrations page.

Other Gemini models

ModelModel IDInput / 1MOutput / 1MContext
Gemini 3.8 Flashgemini-3.8-flash$0.75$3.751,050,000
Gemini 3 Flash Previewgemini-3-flash-preview$0.50$31,050,000
Gemini 3.1 Flash Lite Previewgemini-3.1-flash-lite-preview$0.25$1.501,050,000
Gemini 3.5 Flash Litegemini-3.5-flash-lite$0.25$1.501,050,000

Lower-cost alternatives

Models from other makers with a lower output rate. Quality differs by task — test on your own prompts before switching.

ModelModel IDInput / 1MOutput / 1MContext
GPT-5.6 Lunagpt-5.6-luna$0.522$3.1321,050,000
DeepSeek V4.1 Flashdeepseek-v4.1-flash$0.30$1.201,000,000
Claude Haiku 5.5claude-haiku-5-5$0.20$11,000,000

All models, with their IDs and rates, are on the model list.

Gemini 3.8 Flash API questions

What is the API model ID for Gemini 3.8 Flash?

Use gemini-3.8-flash. Send it as the "model" field to https://api.scalemax.pro/v1/chat/completions.

How much does the Gemini 3.8 Flash API cost?

$0.75 per 1M input tokens and $3.75 per 1M output tokens at the published ScaleMax rate. A Pay as you go key is prepaid: each completed request is deducted from your credit.

What is the context window of Gemini 3.8 Flash?

1,050,000 tokens, with up to 65,500 output tokens per response.

Can I use Gemini 3.8 Flash in Cursor, Cline or Roo Code?

Yes. Add ScaleMax as an OpenAI-compatible provider with the base URL https://api.scalemax.pro/v1 and the model ID gemini-3.8-flash. Your key must include this model.

Can I pay for Gemini 3.8 Flash from India in rupees?

Yes. ScaleMax is prepaid and checkout accepts UPI, cards and net banking in INR, as well as crypto. There is no subscription.

Start calling Gemini 3.8 Flash

Get a prepaid key, copy the model ID, and send your first request in a couple of minutes.