gemini-3.5-flash API
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 tokens | per 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
- Context window
- 1048576 tokens
- Max output
- 65536 tokens
- Capabilities
- streaming, vision
- Endpoints
- gemini, openai, anthropic
What it is good for
- Agentic coding assistants that keep a whole repository in context across long multi-step editing sessions
- Long-document analysis — summarizing or cross-referencing hundreds of pages of reports, contracts, or transcripts in one request
- UI screenshot understanding: turning app screens, dashboards, and design mockups into structured descriptions or test assertions
- Chart, diagram, and scanned-table extraction from images into JSON or Markdown
- Low-latency streaming chatbots and support assistants that need stronger reasoning than budget-tier models
- Bulk data extraction and classification pipelines where per-request quality matters but Pro-class pricing does not pencil out
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.