gemini-3.6-flash API
Use Google's Gemini chat model on APISea for text generation with large inputs and prompt-cache reads.
gemini-3.6-flashتسعير API لنموذج gemini-3.6-flash
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| نوع الـ token | APISea | رسمي | وفّر |
|---|---|---|---|
| الإدخال لكل 1M رمز | $0.66 | $0.75 | −12% |
| الإدخال المخزّن مؤقتًا لكل 1M رمز | $0.066 | $0.075 | −12% |
| الإخراج لكل 1M رمز | $3.30 | $3.75 | −12% |
ما هو gemini-3.6-flash؟
Google's gemini-3.6-flash is a Gemini-family chat model for text generation and multi-turn conversations. Its Flash name positions it as a lighter, faster tier, making it a candidate for interactive assistants and recurring text workflows. It accepts conversation messages with system, user, and assistant roles, with a maximum input of 1,048,576 tokens and a maximum output of 65,536 tokens. The unified chat interface offers streaming or complete responses and controls for output length and randomness.
Call it through APISea's OpenAI-compatible base URL, https://api.apisea.ai/v1, using one API key and the exact model ID. APISea charges pay-as-you-go rates of $0.66 per 1M input tokens, $0.066 per 1M cached input tokens, and $3.30 per 1M output tokens, billing only successful requests. The default configuration is about 12% below the provider list price, and prompt-cache reads are supported.
أبرز مزايا gemini-3.6-flash
Large Input Capacity
Provide up to 1,048,576 input tokens for conversations or substantial reference material.
Extended Output Allowance
Generate up to 65,536 output tokens. Set max_tokens to keep individual responses within your application's budget.
Prompt Cache Reads
The model supports prompt-cache reads at $0.066 per 1M tokens, compared with $0.66 per 1M uncached input tokens.
Compatible Chat Interface
Use the OpenAI Chat Completions format through APISea. Choose streaming responses or receive the completed response at once.
كيفية استدعاء API الخاص بـ gemini-3.6-flash في 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.6-flash" والمعلمات أدناه.
- 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.6-flash",
"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.6-flash
Document-Based Assistants
Supply reference text alongside user questions to build assistants that respond using provided material. The large input allowance accommodates substantial document collections.
Multi-Turn Support Chat
Include prior user and assistant messages to maintain conversation context. Use a system message to define the assistant's scope and response style.
Long-Form Drafting
Build workflows for drafting reports, guides, or other extended text from supplied instructions and source material. Set an explicit output budget for each draft.
Recurring Text Workflows
Use the model for repeated summarization or rewriting jobs with shared instructions. Where prompt-cache reads apply, cached input is billed at the lower cache-read rate.
نصائح للحصول على نتائج أفضل
- 01
Set an Output Budget
Choose max_tokens based on the response length your application needs rather than always allowing the maximum. Output costs $3.30 per 1M tokens.
- 02
Tune One Sampling Control
Use temperature to adjust randomness or top_p to adjust sampling diversity. The documentation recommends using one or the other rather than tuning both.
- 03
Choose Streaming Explicitly
Set stream to true for SSE output or false for a complete response. Explicit selection avoids relying on the endpoint's default behavior.
- 04
Check Cache Usage
For workflows with repeated prompt material, check the documentation for applicable cache behavior. Supported cache reads cost $0.066 per 1M tokens; do not assume every repeated input is cached.
القيود ومعلومات مهمة
Maximum input is 1,048,576 tokens per request.
Maximum output is 65,536 tokens, with max_tokens controlling the requested generation budget.
The supplied model facts do not confirm model-specific multimodal or tool-calling support.
الأسئلة الشائعة حول API الخاص بـ gemini-3.6-flash
How much does gemini-3.6-flash cost on APISea?
APISea charges $0.66 per 1M input tokens, $0.066 per 1M cached input tokens, and $3.30 per 1M output tokens. The default configuration is about 12% below the provider list price, and only successful requests are billed.
How do I call gemini-3.6-flash through the API?
Use https://api.apisea.ai/v1 as your OpenAI-compatible base URL and send a POST request to /chat/completions with model set to gemini-3.6-flash and a messages array. Authenticate with your APISea key using Bearer Token authentication.
Which generation parameters can I use?
The unified chat documentation lists temperature, max_tokens, stream, top_p, frequency_penalty, presence_penalty, stop, and n. Check the model documentation for model-specific applicability before relying on a particular option.
What are the input and output token limits?
The maximum input is 1,048,576 tokens, and the maximum output is 65,536 tokens. Use max_tokens to request a smaller output allowance when appropriate.
Can I use gemini-3.6-flash commercially?
Commercial use is subject to the provider's terms. Review the applicable Google and APISea terms for your intended deployment.
How does Flash compare with Gemini Pro models?
By naming convention, Flash is positioned as a lighter, faster tier, while Pro indicates a higher-capability tier. The supplied facts do not establish comparative benchmark results or latency measurements.
نماذج ذات صلة
gemini-3-flash-preview
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.6-flash
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.