gemini-4-neon API
Use gemini-4-neon on APISea for text generation and chat with up to 1,048,576 input tokens.
gemini-4-neonتسعير API لنموذج gemini-4-neon
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| نوع الـ token | APISea | رسمي | وفّر |
|---|---|---|---|
| الإدخال لكل 1M رمز | $2.64 | $3.00 | −12% |
| الإدخال المخزّن مؤقتًا لكل 1M رمز | $0.132 | $0.15 | −12% |
| الإخراج لكل 1M رمز | $13.20 | $15.00 | −12% |
ما هو gemini-4-neon؟
gemini-4-neon is a Google Gemini chat model available through APISea for text generation and conversational applications. Its maximum input of 1,048,576 tokens gives developers room to supply substantial reference material or conversation history, while its maximum output is 65,536 tokens. The unified Chat Completions interface accepts messages with role and content fields, including system instructions, user requests, and previous assistant responses. Controls include temperature, top_p, max_tokens, and stop sequences, with streaming or complete-response delivery.
Call gemini-4-neon using one APISea API key and the OpenAI-compatible base URL https://api.apisea.ai/v1. APISea uses pay-as-you-go pricing and bills only successful requests. Input costs $2.64 per 1M tokens, cached input reads cost $0.132 per 1M tokens, and output costs $13.20 per 1M tokens. The default configuration is about 12% below the provider list price, and the model supports prompt-cache reads.
أبرز مزايا gemini-4-neon
Large Input Capacity
Supply up to 1,048,576 input tokens for reference-heavy prompts or conversation history.
Substantial Output Allowance
Generate up to 65,536 output tokens. Use max_tokens to set a smaller generation budget for individual requests.
Prompt Cache Reads
The model supports prompt-cache reads, priced at $0.132 per 1M tokens on APISea.
Familiar Chat Controls
Use the OpenAI-compatible Chat Completions format with role-based messages. Configure streaming, temperature, top_p, and stop sequences through the unified API.
كيفية استدعاء API الخاص بـ gemini-4-neon في 4 خطوات
- 01
احصل على API key
سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.
- 02
اضبط عنوان URL الأساسي
استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.
- 03
أرسل الطلب
استدعِ POST /v1/chat/completions مع "model": "gemini-4-neon" والمعلمات أدناه.
- 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-4-neon",
"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-4-neon
Document-Based Assistants
Build a chat interface that supplies reference documents alongside user questions, using the input allowance to accommodate substantial source material.
Multi-Turn Support Chat
Include previous user and assistant messages to provide conversational context, with a system message defining the assistant's role.
Long-Form Drafting
Request reports, guides, or other extended text drafts, setting max_tokens to match the desired output budget.
Reference Summaries
Provide lengthy source text and ask for a summary organized around specified topics or sections.
نصائح للحصول على نتائج أفضل
- 01
Set an Output Budget
Set max_tokens explicitly rather than treating the 65,536-token maximum as a target. Output costs $13.20 per 1M tokens.
- 02
Choose One Sampling Control
Start with either temperature or top_p, as the documentation recommends. Lower temperature values make output more deterministic.
- 03
Review Cache Read Usage
For workflows with reusable prompt material, review prompt-cache read behavior and token usage. Cached input reads cost $0.132 per 1M tokens; regular input costs $2.64 per 1M tokens.
- 04
Specify Response Delivery
Set stream to true for SSE streaming or false for a complete response. Specify it explicitly so your client does not depend on endpoint defaults.
القيود ومعلومات مهمة
Maximum input is 1,048,576 tokens per request.
Maximum output is 65,536 tokens; max_tokens can impose a lower cap.
The supplied model facts do not establish multimodal input or tool-calling support.
الأسئلة الشائعة حول API الخاص بـ gemini-4-neon
How much does gemini-4-neon cost on APISea?
Input costs $2.64 per 1M tokens, cached input reads cost $0.132 per 1M tokens, and output costs $13.20 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-4-neon through the API?
Use the OpenAI-compatible base URL https://api.apisea.ai/v1 and send a POST request to /v1/chat/completions with model set to gemini-4-neon and a messages array. Authenticate with your APISea API key using Bearer Token authentication.
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 set a lower output limit for your request.
Which generation parameters can I configure?
The unified chat API documents temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. Temperature ranges from 0–2, top_p from 0–1, and stop accepts up to four sequences.
Does gemini-4-neon support streaming and prompt caching?
The unified Chat Completions API supports SSE streaming when stream is true and complete responses when it is false. gemini-4-neon supports prompt-cache reads, priced at $0.132 per 1M tokens.
Can I use gemini-4-neon commercially?
Commercial use is subject to the provider's terms and applicable APISea terms. The supplied facts do not specify a model-specific commercial license.
نماذج ذات صلة
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-4-neon
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.