{"id":401,"date":"2026-10-27T19:44:38","date_gmt":"2026-10-27T11:44:38","guid":{"rendered":"https:\/\/qoraapi.com\/blog\/?p=401"},"modified":"2026-10-27T19:44:38","modified_gmt":"2026-10-27T11:44:38","slug":"cheap-gemini-api","status":"publish","type":"post","link":"https:\/\/qoraapi.com\/blog\/cheap-gemini-api\/","title":{"rendered":"Cheap Gemini API: How to Use Gemini 2.5 Pro and Flash with One API Key"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Looking for a cheap Gemini API? The cheapest way to call Gemini on Qora is <code>gemini-2.5-flash<\/code> at $0.12 input and $0.48 output per 1 million tokens. The stronger model, <code>gemini-2.5-pro-preview-06-05<\/code>, costs $0.75 input and $6.00 output per 1 million tokens. Both work through one OpenAI-compatible API key at <code>https:\/\/qoraapi.com\/v1<\/code> \u2014 no Google Cloud account, no separate Gemini billing, no code rewrite.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide shows you the exact model names to use, the exact prices, working code you can copy, and how to pick Pro or Flash for each job so you stop paying Pro prices for Flash work. All prices in this article are Qora Model Square prices, checked on October 27, 2026.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How Much Does the Gemini API Cost on Qora?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Gemini pricing is per token. You pay separately for input tokens (the text you send) and output tokens (the text the model writes). Output costs more than input on every Gemini model, so long answers are the expensive part of any Gemini bill.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Model<\/th><th>Input (per 1M tokens)<\/th><th>Output (per 1M tokens)<\/th><\/tr><\/thead><tbody><tr><td>gemini-2.5-flash<\/td><td>$0.12<\/td><td>$0.48<\/td><\/tr><tr><td>gemini-2.5-flash-preview-04-17<\/td><td>$0.18<\/td><td>$0.72<\/td><\/tr><tr><td>gemini-2.0-flash<\/td><td>$0.18<\/td><td>$0.72<\/td><\/tr><tr><td>gemini-2.5-pro-preview-03-25<\/td><td>$0.375<\/td><td>$3.00<\/td><\/tr><tr><td>gemini-2.5-pro-preview-06-05<\/td><td>$0.75<\/td><td>$6.00<\/td><\/tr><tr><td>gemini-2.5-pro-preview-05-06<\/td><td>$0.75<\/td><td>$6.00<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Two things matter here. First, there is no plain <code>gemini-2.5-pro<\/code> model ID on the Model Square. The Pro model is listed under dated preview names, and the one used in this article is <code>gemini-2.5-pro-preview-06-05<\/code>. If you send <code>gemini-2.5-pro<\/code> as the model name, the request will fail with a model-not-found error. Second, the two Pro previews do not cost the same: the 03-25 snapshot is $0.375 input and $3.00 output, exactly half the price of the 06-05 and 05-06 snapshots.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A worked example makes the gap concrete. Suppose you send 1 million input tokens and generate 200,000 output tokens. On <code>gemini-2.5-flash<\/code>, that costs $0.12 + $0.096 = $0.216, about 22 cents. On <code>gemini-2.5-pro-preview-06-05<\/code>, the same work costs $0.75 + $1.20 = $1.95. Same tokens, nine times the price.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Gemini 2.5 Pro vs Flash: Which One for Which Job?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Flash and Pro are not two versions of the same tool. They are priced for different jobs, and using Pro for a Flash job is the most common way people overpay for Gemini.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use Flash for high-volume, routine work: classifying tickets, extracting fields from invoices, summarising short documents, and drafting first-pass replies. Flash costs $0.12 per million input tokens, so 10 million input tokens costs $1.20.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use Pro when the task needs deeper reasoning or a long, tangled input: debugging a multi-file problem, analysing a 50-page contract, or planning a multi-step task. Pro costs $0.75 per million input tokens on the 06-05 snapshot, and its output costs $6.00 per million tokens.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A practical rule: start every feature on Flash. Run it against your real inputs and check the outputs. If Flash gets the answer right, you are done, and your Gemini bill stays small. If Flash fails on a specific kind of input \u2014 long documents, multi-step reasoning, tricky edge cases \u2014 route only that kind of input to Pro. For the general routing playbook, see <a href=\"https:\/\/qoraapi.com\/blog\/reduce-ai-api-costs\/\">How to Reduce AI API Costs: A Practical Guide for Developers<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Set Up Gemini with One API Key<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You need a Qora API account and key. Sign up at <a href=\"https:\/\/qoraapi.com\/\">https:\/\/qoraapi.com\/<\/a>, create a key in the Console, and top up your balance. Qora is pay-as-you-go in USD, with a minimum top-up of $50. If your balance is zero, your first request will fail even if the key is correct, so check the balance in the Console first.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Test with cURL<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This calls <code>gemini-2.5-flash<\/code> through the Qora endpoint. Replace <code>$QORA_API_KEY<\/code> with your key, or export it first with <code>export QORA_API_KEY=\"sk-...\"<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl https:\/\/qoraapi.com\/v1\/chat\/completions \\\n  -H \"Content-Type: application\/json\" \\\n  -H \"Authorization: Bearer $QORA_API_KEY\" \\\n  -d '{\n    \"model\": \"gemini-2.5-flash\",\n    \"messages\": &#91;\n      {\"role\": \"user\", \"content\": \"Summarise this in three bullet points: Gemini is fast and cheap.\"}\n    ],\n    \"max_tokens\": 300\n  }'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A successful response returns a JSON object with <code>choices[0].message.content<\/code>. If you get <code>401<\/code>, the key is wrong or missing. If you get <code>404<\/code>, the model name is wrong \u2014 copy it exactly from the Model Square. If you get <code>429<\/code>, you hit a rate limit; wait and retry.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Use Gemini from Python<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The same call works with the OpenAI Python SDK, because Qora is OpenAI-compatible. Only the base URL and the model name change.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import os\nfrom openai import OpenAI\n\nclient = OpenAI(\n    base_url=\"https:\/\/qoraapi.com\/v1\",\n    api_key=os.environ&#91;\"QORA_API_KEY\"],\n)\n\nresponse = client.chat.completions.create(\n    model=\"gemini-2.5-flash\",\n    messages=&#91;{\"role\": \"user\", \"content\": \"List three uses for Gemini Flash in one sentence each.\"}],\n    max_tokens=300,\n)\nprint(response.choices&#91;0].message.content)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To switch to Pro, change one string: <code>model=\"gemini-2.5-pro-preview-06-05\"<\/code>. Nothing else in the code changes. For the general OpenAI-compatible setup, see <a href=\"https:\/\/qoraapi.com\/blog\/openai-compatible-api-guide\/\">OpenAI-Compatible API: One Key for GPT, Claude &amp; Gemini<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Stream the Reply for Chat Apps<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For a chatbot or a live interface, stream the response instead of waiting for the full answer. Streaming does not change the price \u2014 you pay for the same tokens \u2014 but the user sees the first words in under a second instead of waiting for the whole reply.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>stream = client.chat.completions.create(\n    model=\"gemini-2.5-flash\",\n    messages=&#91;{\"role\": \"user\", \"content\": \"Give me three tips for saving on API costs.\"}],\n    max_tokens=300,\n    stream=True,\n)\nfor chunk in stream:\n    if chunk.choices&#91;0].delta.content:\n        print(chunk.choices&#91;0].delta.content, end=\"\", flush=True)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">How to Cut Your Gemini Bill Further<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Routing to Flash is the biggest saving. Three smaller habits add up after that.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, ask for less output. Output tokens cost four times as much as input tokens on Flash ($0.48 vs $0.12) and eight times as much on Pro ($6.00 vs $0.75). A vague prompt such as &#8220;tell me about this document&#8221; produces a long answer and a large bill. A specific prompt produces a short answer: &#8220;Return a JSON object with three fields \u2014 summary, key_dates, and action_items. No other text.&#8221; Set <code>max_tokens<\/code> as a hard cap, and treat a response that hits the cap as a signal to split the task.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Second, keep repeated context stable. If every request starts with the same system prompt, instructions, or reference document, do not rewrite it on every call and do not shuffle its order. Stable, repeated input is what makes prompt caching work when the provider offers it. This article does not quote a Gemini cache discount, because no Gemini cached-input price was verified for this guide \u2014 check the Model Square for the current cached-input price on the model you use before relying on a specific number.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Third, batch work that can wait. Summarising documents, labelling data, and generating nightly reports do not need an answer in seconds. If your provider offers a lower price for non-urgent batch requests, use it for that work and keep Flash for live traffic. For more on batching, see the <a href=\"https:\/\/qoraapi.com\/blog\/ai-api-cost-index-2026\/\">2026 AI API Cost Index<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Gemini vs Claude, GPT, and DeepSeek Prices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Gemini Flash is cheap, but it is not the cheapest model on Qora for every job. Here is how it compares with the alternatives named in this article, per 1 million tokens:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Model<\/th><th>Input<\/th><th>Output<\/th><th>Cheapest for<\/th><\/tr><\/thead><tbody><tr><td>gemini-2.5-flash<\/td><td>$0.12<\/td><td>$0.48<\/td><td>High-volume routine text work<\/td><\/tr><tr><td>claude-3-5-haiku-20241022<\/td><td>$0.15<\/td><td>$0.75<\/td><td>Short, fast tasks where Claude quality matters<\/td><\/tr><tr><td>deepseek-chat<\/td><td>$0.30<\/td><td>$1.20<\/td><td>Cheap general chat and code<\/td><\/tr><tr><td>gpt-5<\/td><td>$0.45<\/td><td>$3.60<\/td><td>General work where GPT behaviour is expected<\/td><\/tr><tr><td>gemini-2.5-pro-preview-06-05<\/td><td>$0.75<\/td><td>$6.00<\/td><td>Hard reasoning and long documents<\/td><\/tr><tr><td>claude-3-5-sonnet-20241022<\/td><td>$0.90<\/td><td>$4.50<\/td><td>Complex code and long-form writing<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The practical takeaway: Flash beats Haiku on price for routine work ($0.12 vs $0.15 input), and both are far cheaper than Sonnet or GPT-5. But if your task needs Claude&#8217;s writing style or GPT&#8217;s tool behaviour, the cheapest model that fails the task is the most expensive one \u2014 you pay twice, once for the failure and once for the retry. Test Flash on your real inputs first. For a direct gateway comparison, see <a href=\"https:\/\/qoraapi.com\/blog\/openrouter-vs-qora-api\/\">OpenRouter vs Qora API: Which Cheap AI API Gateway Is Better in 2026?<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Three Mistakes That Waste Money on Gemini<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The first mistake is the model name. <code>gemini-2.5-pro<\/code> does not exist on the Model Square, and neither does <code>gemini-pro<\/code> or <code>gemini-flash<\/code> on its own. The working names are <code>gemini-2.5-flash<\/code> and <code>gemini-2.5-pro-preview-06-05<\/code> (or another dated preview). A 404 error almost always means the name is wrong.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The second mistake is the base URL. It must be exactly <code>https:\/\/qoraapi.com\/v1<\/code>, with no trailing slash and no <code>\/chat\/completions<\/code> path. Clients add the rest of the path themselves. If you paste <code>https:\/\/qoraapi.com\/v1\/chat\/completions<\/code> as the base URL, the client builds a doubled path and every request fails.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The third mistake is running Pro as the default. It is tempting to set Pro everywhere &#8220;to be safe&#8221;. On the 06-05 snapshot, 1 million input tokens cost $0.75 on Pro against $0.12 on Flash, and output costs $6.00 against $0.48. A feature that sends 10 million input tokens a day costs $7.50 a day on Pro and $1.20 a day on Flash. Default to Flash, escalate to Pro only where Flash fails.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What is the cheapest Gemini API?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">On Qora, <code>gemini-2.5-flash<\/code> is the cheapest Gemini model in this guide: $0.12 input and $0.48 output per 1 million tokens, checked on the Model Square on October 27, 2026. For harder tasks, <code>gemini-2.5-pro-preview-03-25<\/code> costs $0.375 input and $3.00 output \u2014 half the price of the newer Pro preview.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How much does Gemini 2.5 Pro cost per 1M tokens?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">On Qora, <code>gemini-2.5-pro-preview-06-05<\/code> costs $0.75 input and $6.00 output per 1 million tokens. The older snapshot <code>gemini-2.5-pro-preview-03-25<\/code> costs $0.375 input and $3.00 output. There is no plain <code>gemini-2.5-pro<\/code> model ID on the Model Square \u2014 use the exact dated preview name.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Is Gemini 2.5 Flash good for coding?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Flash is good for routine coding tasks: small fixes, explanations, formatting, and simple generation. For complex refactoring or multi-file debugging, Pro is the better choice. Test Flash on your real tasks first and route only the hard cases to Pro.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I use Gemini with the OpenAI SDK?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Qora is OpenAI-compatible, so the OpenAI Python and Node.js SDKs work with Gemini models. Set <code>base_url<\/code> to <code>https:\/\/qoraapi.com\/v1<\/code>, use your Qora API key, and set the model name to <code>gemini-2.5-flash<\/code> or a Pro preview ID.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is the Gemini model name on Qora?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Copy it exactly from the Model Square. The working names in this guide are <code>gemini-2.5-flash<\/code> and <code>gemini-2.5-pro-preview-06-05<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Try It<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Get $5 free trial credit on request \u2014 contact us at support@qoraapi.com and we&#8217;ll add $5 to your account. Sign up at <a href=\"https:\/\/qoraapi.com\/\">https:\/\/qoraapi.com\/<\/a>, create one API key, and try the same prompt on <code>gemini-2.5-flash<\/code> and <code>gemini-2.5-pro-preview-06-05<\/code> to see the price and quality difference for yourself. The full client setup is in the docs at <a href=\"https:\/\/qoraapi.com\/docs\/\">https:\/\/qoraapi.com\/docs\/<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Looking for a cheap Gemini API? The cheapest way to call Gemini on Qora is gemini-2.5-flash at $0.12 input and $0.48 output per 1 million tokens. The stronger model, gemini-2.5-pro-preview-06-05, costs $0.75 input and $6.00 output per 1 million tokens. Both work through one OpenAI-compatible API key at https:\/\/qoraapi.com\/v1 \u2014 no Google Cloud account, no [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-401","post","type-post","status-publish","format-standard","hentry","category-ai-api"],"_links":{"self":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/comments?post=401"}],"version-history":[{"count":3,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/401\/revisions"}],"predecessor-version":[{"id":409,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/posts\/401\/revisions\/409"}],"wp:attachment":[{"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/media?parent=401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/categories?post=401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qoraapi.com\/blog\/wp-json\/wp\/v2\/tags?post=401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}