{"uid":"cap_QQvRsmfxtMJfl_iG1CwsD","slug":"gemini-3-5-flash-text-generation-xona-agent-3bda1a64","name":"Gemini 3.5 Flash Text Generation (xona-agent)","description":"Gemini 3.5 Flash text generation (Google). Dynamic pricing: estimated input tokens + output tier ceiling. Tiers: small (1K output tokens, ~$0.009), medium (4K, ~$0.037), large (8K, ~$0.074), plus input cost. Supports system prompt.","url":"https://api.xona-agent.com/llm/gemini-3.5-flash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"tier":{"type":"string","default":"small","description":"Output size tier: small (1024 tokens), medium (4096), large (8192). Default: small."},"prompt":{"type":"string","description":"The user prompt"},"max_tokens":{"type":"number","description":"Alternative to tier: numeric max output tokens (1-8192), bucketed into the smallest covering tier"},"system_prompt":{"type":"string","description":"Optional system prompt (counts toward input cost)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ngdPHU8mNB3ZuiOJF1a4n","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates text using Google's Gemini 3.5 Flash model with tiered output sizing and optional system prompt, billed per call via x402 micropayments.","exampleAgentPrompt":"Using Gemini 3.5 Flash, write me a detailed blog post outline about the future of autonomous AI agents — use the medium output tier so I get a thorough response, and set the system prompt to 'You are an expert technology writer.'","exampleUseCases":[{"title":"Automated customer FAQ drafting","prompt":"Use Gemini 3.5 Flash with the large output tier to generate a comprehensive FAQ document for my SaaS product — the system prompt should be 'You are a helpful technical writer', and the user prompt is: 'Write 20 detailed FAQ entries for a project management tool aimed at remote teams.'"},{"title":"Quick single-sentence AI reply","prompt":"Generate a short one-sentence reply to this customer message using Gemini 3.5 Flash on the small tier: 'When will my order arrive?' — keep the response friendly and concise."},{"title":"Story draft with creative system prompt","prompt":"Run this through Gemini 3.5 Flash on the large tier with the system prompt 'You are a bestselling science fiction author': write me the opening chapter of a story about the first human colony on Europa, around 2000 words."}],"resultDescription":"Returns LLM-generated text from Gemini 3.5 Flash, with length bounded by the selected output tier (small: ~1K tokens, medium: ~4K tokens, large: ~8K tokens). The response contains the model's completion of the supplied prompt, optionally conditioned on a system prompt.","failureModes":["Invalid tier value returns an error — must be 'small', 'medium', or 'large'","max_tokens out of range (>8192 or <1) triggers a validation error","Missing prompt field results in a bad request error","Payment failure via x402 protocol returns 402 Payment Required","Model unavailability or Google API outage returns a 503 or upstream error","Prompt too long for model context window causes truncation or rejection"],"whenToPreferThis":"Choose this endpoint when you need fast, cost-effective text generation from Google's Gemini 3.5 Flash model via a simple x402 micropayment API, especially when you want predictable tiered pricing, support for custom system prompts, and don't want to manage your own Google API credentials. Prefer this over OpenAI-based endpoints when Gemini's speed and pricing model is preferred.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:35:50.649Z","isFirstParty":false,"canonicalSlug":"gemini-3-5-flash-text-generation-xona-agent-3bda1a64"}