gemini-3-flash API
Gemini 3 Flash is Google's fast, budget-priced frontier model with a 1M-token context window. Call it on CaMeL Hub with any OpenAI SDK — base_url https://api.camel-hub.com/v1, model gemini-3-flash — at $0.50 per 1M input tokens and $3.00 per 1M output tokens.
Pricing
| per 1M input tokens | per 1M output tokens | |
|---|---|---|
| CaMeL Hub | $0.5 | $3.00 |
| Provider list price | $0.5 | $3.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
- Context window
- 1048576 tokens
- Max output
- 65536 tokens
- Capabilities
- streaming, vision, function-calling
- Endpoints
- gemini, openai
What it is good for
- Whole-document analysis: feed contracts, research papers, or financial filings up to ~1M tokens and extract summaries, clauses, or figures in one pass
- RAG applications with large retrieved contexts, where the $0.50/1M input price keeps per-query cost low even with aggressive context stuffing
- High-volume customer support and chat automation where per-reply cost and low latency matter more than maximum reasoning depth
- Vision tasks such as reading screenshots, charts, scanned invoices, and UI states for QA or data-entry automation
- Function-calling agents that route user requests to tools and APIs, using structured outputs to drive downstream systems
- Bulk classification, tagging, and data extraction jobs where each call emits only a few output tokens
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-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-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-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 Flash billed on CaMeL Hub?
Input and output tokens are billed separately: $0.50 per 1M input tokens and $3.00 per 1M output tokens on the default group. Usage is metered per request and deducted from your prepaid balance — there is no seat fee or minimum commitment, and every call is itemized in your usage log.
What context window and output limit does Gemini 3 Flash support?
Google documents an input token limit of 1,048,576 tokens (about 1M) and an output limit of 65,536 tokens for Gemini 3 Flash. In practice that is enough for several hundred pages of input text in a single request.
Does Gemini 3 Flash support streaming, vision, and function calling?
Yes to all three via CaMeL Hub: set stream: true for token-by-token streaming, pass images as image_url content parts for vision input, and define tools/functions in the standard OpenAI format for function calling. These work on both the OpenAI-compatible and Gemini-native endpoints.
How do I start calling gemini-3-flash?
Create an account at https://api.camel-hub.com/console, generate an API key, then point any OpenAI SDK at base_url https://api.camel-hub.com/v1 with model "gemini-3-flash". No Google Cloud project or separate Gemini API key is required — one CaMeL Hub key covers this and every other model on the platform.
Should I use the OpenAI-compatible endpoint or the Gemini-native endpoint?
Use the OpenAI-compatible endpoint if your code already uses OpenAI SDKs or tools like LangChain — only the base_url changes. Use the Gemini-native endpoint if your client was written against Google's own request format and you want to keep request bodies unchanged. Pricing is identical on both.