gemini-3.5-flash API

At provider list price streamingvision

Gemini 3.5 Flash is Google's fast frontier multimodal model. On CaMeL Hub it costs $1.50 per 1M input tokens and $9.00 per 1M output tokens — call it with any OpenAI SDK by pointing base_url at https://api.camel-hub.com/v1 and requesting model "gemini-3.5-flash". No Google Cloud account or region setup required: top up, create a key, and start streaming.

Pricing

per 1M input tokensper 1M output tokens
CaMeL Hub$1.5$9.00
Provider list price$1.5$9.00

Prices are the public default-group rate in USD per 1M tokens; input and output are billed separately. · Provider list price · verified 2026-07-11

Specifications

Provider
Google
Context window
1048576 tokens
Max output
65536 tokens
Capabilities
streaming, vision
Endpoints
gemini, openai, anthropic
Gemini 3.5 Flash is the flagship of Google's Flash line — the tier historically built for speed and cost efficiency — but this generation closes most of the gap to the Pro models. Google positions it for sustained frontier performance on agentic and coding tasks, and it shows: the model holds up over long multi-step coding sessions instead of degrading after the first few turns, which older Flash releases were prone to do. It keeps the line's trademark low time-to-first-token, so it feels responsive in interactive use even on large prompts. The headline spec is context: 1,048,576 input tokens and up to 65,536 output tokens. That is enough to load an entire mid-sized repository, a full book, or hundreds of pages of reports into a single request and still leave generous room for the answer. Combined with vision input, it handles mixed workloads — code plus screenshots, contracts plus scanned tables — without splitting the job across models. One billing note worth knowing: the model can spend internal reasoning ("thinking") tokens before answering, and those are counted at the output rate, so terse-looking answers on hard problems may bill more output tokens than the visible text suggests. At $1.50/$9.00 per 1M tokens, it sits well above the budget Flash variants but below Pro-class pricing — the right slot when you need near-frontier quality at interactive latency and batch-friendly cost. On CaMeL Hub you can reach it three ways with the same key: the OpenAI-compatible endpoint (drop-in for existing SDK code), the Gemini-native endpoint, and an Anthropic-compatible endpoint, so whichever client library your stack already uses will work without a rewrite.

What it is good for

Quickstart

OpenAI-compatible: set base_url to https://api.camel-hub.com/v1 and use your CaMeL Hub API key. No SDK changes needed.

cURL

curl https://api.camel-hub.com/v1/chat/completions \
  -H "Authorization: Bearer $CAMEL_HUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.5-flash",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Python

from openai import OpenAI

client = OpenAI(
    api_key="$CAMEL_HUB_KEY",
    base_url="https://api.camel-hub.com/v1",  # <-- the only change vs. the OpenAI default
)

resp = client.chat.completions.create(
    model="gemini-3.5-flash",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)

Node.js

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.CAMEL_HUB_KEY,
  baseURL: "https://api.camel-hub.com/v1", // <-- the only change vs. the OpenAI default
});

const resp = await client.chat.completions.create({
  model: "gemini-3.5-flash",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);

Get an API key Browse integration guides

Frequently asked questions

How is gemini-3.5-flash billed on CaMeL Hub?

Input and output are metered separately: $1.50 per 1M input tokens and $9.00 per 1M output tokens, deducted from your balance based on the actual token counts of each request. There is no per-request fee and no subscription requirement — pay-as-you-go top-ups work fine.

Are thinking tokens billed separately?

No. Any internal reasoning (thinking) tokens the model produces are counted as output tokens at the same $9.00 per 1M output rate, matching Google's documented billing convention. On hard problems the billed output can therefore exceed the visible answer length.

Does it support streaming and image input?

Yes to both. Set stream: true for token-by-token streaming responses, and pass images via image_url content parts in the standard OpenAI chat format (or the equivalent in the Gemini-native and Anthropic-compatible request formats).

What is the context window?

Google documents an input limit of 1,048,576 tokens and an output limit of 65,536 tokens for gemini-3.5-flash. In practice that fits an entire mid-sized codebase or several hundred pages of text in a single request.

How do I get started?

Create an account at https://api.camel-hub.com/console, top up, and generate an API key. Then point any OpenAI SDK at base_url https://api.camel-hub.com/v1 with model "gemini-3.5-flash" — no other code changes needed. The same key also works on the Gemini-native and Anthropic-compatible endpoints.

More from Google

Compare with other models