gemini-3-flash-preview API
Use Google's Gemini Flash preview model on APISea for text generation and long-input chat workflows.
gemini-3-flash-previewتسعير API لنموذج gemini-3-flash-preview
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| نوع الـ token | APISea | رسمي | وفّر |
|---|---|---|---|
| الإدخال لكل 1M رمز | $0.44 | $0.50 | −12% |
| الإدخال المخزّن مؤقتًا لكل 1M رمز | $0.044 | $0.05 | −12% |
| الإخراج لكل 1M رمز | $2.64 | $3.00 | −12% |
ما هو gemini-3-flash-preview؟
Google's gemini-3-flash-preview is a Gemini chat model available through APISea. Its Flash naming positions it as a lighter, faster tier, suited to evaluating interactive assistants, summarization, and other text-generation workflows. It accepts conversation messages with role and content fields and returns generated text. The listed limits are 1,048,576 input tokens and 65,536 output tokens, with support for prompt-cache reads. As a preview model, it may change.
Call it through APISea's OpenAI-compatible Chat Completions interface using one API key and the base URL https://api.apisea.ai/v1. The interface offers streaming, output-length limits, and sampling controls. Pay-as-you-go rates are $0.44 per 1M tokens for input, $0.044 per 1M tokens for cached input, and $2.64 per 1M tokens for output. The default configuration is about 12% below provider list price, and APISea bills only successful requests.
أبرز مزايا gemini-3-flash-preview
Large Input Capacity
Accepts up to 1,048,576 input tokens, giving developers room to supply substantial text context in a request.
Prompt-Cache Reads
Supports prompt-cache reads at $0.044 per 1M tokens for cached input, compared with $0.44 per 1M tokens for regular input.
Flexible Response Delivery
The Chat Completions interface supports streaming responses or a complete response at once through the stream parameter.
Generation Length Controls
Set max_tokens to cap generated output within the listed maximum of 65,536 tokens. The interface also provides temperature and top_p sampling controls.
كيفية استدعاء API الخاص بـ gemini-3-flash-preview في 4 خطوات
- 01
احصل على API key
سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.
- 02
اضبط عنوان URL الأساسي
استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.
- 03
أرسل الطلب
استدعِ POST /v1/chat/completions مع "model": "gemini-3-flash-preview" والمعلمات أدناه.
- 04
تعامل مع الاستجابة
اقرأ الاستجابة (أو استقبل الـ tokens بالتدفق باستخدام stream: true). يظهر الاستخدام والتكلفة في وحدة التحكم.
أمثلة على الطلبات
الوثائق: General Chat API (Default Streaming)curl https://api.apisea.ai/v1/chat/completions \
-H "Authorization: Bearer $APISEA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3-flash-preview",
"messages": [
{"role": "system", "content": "You are a concise assistant."},
{"role": "user", "content": "Explain what an AI API gateway does in two sentences."}
],
"stream": false
}'المعلمات
| المعلمة | النوع | مطلوب | افتراضي | الوصف |
|---|---|---|---|---|
model | string | مطلوب | gpt-5 | Model name |
messages | array | مطلوب | — | List of conversation messages |
role | string | مطلوب | user | Role type |
content | string | مطلوب | — | Message content |
temperature | number | اختياري | — | Controls output randomness, range 0-2 |
max_tokens | integer | اختياري | — | Maximum number of tokens to generate |
stream | boolean | اختياري | — | Whether to use streaming output |
top_p | number | اختياري | — | Nucleus sampling parameter, range 0-1 |
frequency_penalty | number | اختياري | — | Frequency penalty, range -2.0 to 2.0 |
presence_penalty | number | اختياري | — | Presence penalty, range -2.0 to 2.0 |
stop | string or array | اختياري | — | Stop sequences |
n | integer | اختياري | — | Number of completions to generate |
ما الذي يمكنك إنشاؤه باستخدام gemini-3-flash-preview
Document Summaries
Build workflows that supply lengthy text documents and ask for concise summaries, key points, or answers grounded in the supplied material.
Conversational Assistants
Create text assistants using system instructions, user messages, and previous assistant replies as conversation context.
Drafting Workflows
Generate drafts from supplied briefs and style instructions, with output-length caps to keep responses within your application's needs.
Preview Model Evaluation
Evaluate this Flash-positioned model on representative chat tasks before choosing it for a production workflow.
نصائح للحصول على نتائج أفضل
- 01
Set an Output Budget
Use max_tokens to limit response length rather than requesting the maximum by default. Output is billed at $2.64 per 1M tokens.
- 02
Tune One Sampling Control
Start with either temperature or top_p rather than adjusting both. The documentation describes lower temperature values as producing more deterministic output.
- 03
Check Cache Usage
For workflows with repeated prompt context, review prompt-cache read behavior in the documentation. The cached-input rate applies to cache reads, not all input tokens.
- 04
Choose Streaming Explicitly
Set stream to true for SSE output or false for a complete response at once. Explicitly setting it avoids relying on endpoint defaults.
القيود ومعلومات مهمة
Input is limited to 1,048,576 tokens, and output is limited to 65,536 tokens.
The preview designation means model behavior may change.
The listed cached-input price applies to prompt-cache reads.
الأسئلة الشائعة حول API الخاص بـ gemini-3-flash-preview
How much does gemini-3-flash-preview cost on APISea?
Input costs $0.44 per 1M tokens, cached input costs $0.044 per 1M tokens, and output costs $2.64 per 1M tokens. The default configuration is about 12% below provider list price, with pay-as-you-go billing only for successful requests.
How do I call gemini-3-flash-preview?
Use the OpenAI-compatible base URL https://api.apisea.ai/v1 and send a POST request to /chat/completions with model set to gemini-3-flash-preview and a messages array. Authenticate with your APISea key in the Authorization header as a Bearer token.
What parameters can I use?
The documented Chat Completions interface includes temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. Each conversation message contains role and content fields.
What are the input and output token limits?
The listed maximum input is 1,048,576 tokens, and the maximum output is 65,536 tokens. Use max_tokens to request a smaller output budget.
Can I use this model commercially?
Commercial use is subject to the provider's terms. Review the applicable Google and APISea terms for your intended application.
How do the thinking and nothinking names differ?
The model is also callable as gemini-3-flash-preview-thinking and gemini-3-flash-preview-nothinking. Their names suggest reasoning-oriented and non-thinking configurations, respectively, but the supplied facts do not specify behavioral differences or separate prices.
نماذج ذات صلة
gemini-3-flash-preview-nothinking
gemini-3-flash-preview-thinking
gemini-3-pro-preview
gemini-3-pro-preview-thinking
gemini-3.1-flash-lite-preview
gemini-3.1-pro-preview
gemini-3.1-pro-preview-thinking
gemini-3.5-flash
ابدأ التطوير باستخدام gemini-3-flash-preview
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.