gemini-3.5-flash API
Use Google's gemini-3.5-flash on APISea for long-input chat and text generation with prompt-cache reads.
gemini-3.5-flashgemini-3.5-flash API-ის ფასები
ყველა ფასი USD-შია. APISea-ის ტარიფები შედარებულია იმავე ერთეულისთვის დადგენილ ოფიციალურ ფასებთან.
| Token-ის ტიპი | APISea | ოფიციალური | დაზოგვა |
|---|---|---|---|
| შეყვანა 1M token-ზე | $1.32 | $1.50 | −12% |
| ქეშირებული შეყვანა 1M token-ზე | $0.132 | $0.15 | −12% |
| გამოტანა 1M token-ზე | $7.92 | $9.00 | −12% |
რა არის gemini-3.5-flash?
Google's Gemini model, gemini-3.5-flash, provides chat and text generation through APISea. Its Flash naming positions it as a lighter, faster tier, suited to conversational applications and workflows that need substantial input context. It accepts up to 1,048,576 input tokens and generates up to 65,536 output tokens. The OpenAI-compatible chat interface accepts role-based messages and offers streaming or complete responses, with controls including temperature, top_p, max_tokens, and stop sequences. A Gemini-native interface is also documented, with text parts and inline or file-based multimodal input fields.
Access the model with one APISea key through the OpenAI-compatible base URL https://api.apisea.ai/v1. Billing is pay-as-you-go and applies only to successful requests: $1.32 per 1M tokens for input, $0.132 per 1M tokens for cached input reads, and $7.92 per 1M tokens for output. The default configuration is about 12% below the provider list price.
gemini-3.5-flash-ის მთავარი მახასიათებლები
Large Input Capacity
Accepts up to 1,048,576 input tokens, giving developers room to include substantial source material and conversation context.
Prompt Cache Reads
Supports prompt-cache reads, billed at $0.132 per 1M tokens for cached input.
Flexible Response Delivery
The chat API supports streaming responses in SSE format or a complete response returned at once. Set stream explicitly to choose your delivery mode.
Generation Controls
Control randomness with temperature or top_p, cap generation with max_tokens, and define up to four stop sequences in the chat API.
როგორ გამოვიძახოთ gemini-3.5-flash API 4 ნაბიჯში
- 01
მიიღეთ API გასაღები
შედით APISea-ში, შეავსეთ ბალანსი $50-დან და კონსოლში შექმენით sk-sea გასაღები.
- 02
დააყენეთ საბაზისო URL
თქვენს SDK-ში ან HTTP კლიენტში საბაზისო URL-ად გამოიყენეთ https://api.apisea.ai/v1.
- 03
გაგზავნეთ მოთხოვნა
გამოიძახეთ POST /v1/chat/completions პარამეტრებით "model": "gemini-3.5-flash" და ქვემოთ ჩამოთვლილი პარამეტრებით.
- 04
დაამუშავეთ პასუხი
წაიკითხეთ პასუხი (ან მიიღეთ token-ები ნაკადურად 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.5-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.5-flash-ით
Document Q&A
Include source documents in the input and ask for answers grounded in that material. The large input allowance suits workflows with extensive reference text.
Conversational Assistants
Build multi-turn chat using user, assistant, and system messages. Stream generated text when your interface needs incremental responses.
Long-Form Drafting
Generate reports, explanations, or draft content from detailed briefs. Set an output budget appropriate to the job rather than always requesting the maximum.
Repeated Reference Workflows
Build workflows that repeatedly use shared reference material, and account for the lower cached-input rate when prompt-cache reads apply.
რჩევები უკეთესი შედეგებისთვის
- 01
Set the Model Explicitly
Pass
gemini-3.5-flashin the model field when calling the chat API; the documented default is a different model. Authenticate with your APISea key using a Bearer token. - 02
Budget Output Tokens
Use max_tokens in the chat API or maxOutputTokens in the Gemini-native interface to bound generation. Keep the requested output within 65,536 tokens.
- 03
Tune One Sampling Control
Start with temperature or top_p rather than adjusting both together, as the chat documentation recommends. Lower temperature values make output more deterministic.
- 04
Track Cache Billing
Distinguish ordinary input from cache reads when estimating costs. Cached input is $0.132 per 1M tokens, while ordinary input is $1.32 per 1M tokens.
შეზღუდვები და გასათვალისწინებელი საკითხები
Maximum input is 1,048,576 tokens.
Maximum output is 65,536 tokens.
Gemini-native multimodal fields are documented separately from the chat API's string content field.
gemini-3.5-flash API-ის ხშირად დასმული კითხვები
How much does gemini-3.5-flash cost on APISea?
Input costs $1.32 per 1M tokens, cached input reads cost $0.132 per 1M tokens, and output costs $7.92 per 1M tokens. The default configuration is about 12% below the provider list price, with pay-as-you-go billing only for successful requests.
How do I call gemini-3.5-flash through APISea?
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.5-flash and a messages array. Supply your APISea key as a Bearer token in the Authorization header.
Which generation parameters can I use?
The chat documentation lists temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. The Gemini-native interface documents generationConfig options including temperature, maxOutputTokens, topP, topK, and stopSequences.
What are the input and output token limits?
The model accepts up to 1,048,576 input tokens and supports up to 65,536 output tokens. It also supports prompt-cache reads.
Can I use gemini-3.5-flash commercially?
Commercial use is subject to the provider's terms. Review those terms and any applicable APISea requirements before deploying your application.
How does gemini-3.5-flash compare with Gemini Pro models?
By naming convention, Flash is positioned as a lighter, faster tier, while Pro denotes a higher-capability tier. The supplied facts do not establish comparative benchmarks or measured latency, so evaluate models on your own workload.
მსგავსი მოდელები
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.5-flash-ით შექმნა
ერთი გასაღები, გამოყენების მიხედვით გადახდა $50-დან; თანხა ჩამოგეჭრებათ მხოლოდ წარმატებული მოთხოვნებისთვის.