Skip to content
هذه الصفحة غير متاحة بلغتك بعد، لذا تُعرض باللغة الإنجليزية.
Google · Gemini

gemini-4-hydrogen API

Use gemini-4-hydrogen on APISea for text chat with large inputs, streaming responses, and prompt-cache reads.

محادثةالمحادثة والنصمتزامنالتخزين المؤقت للمطالبات
معرّف النموذج
gemini-4-hydrogen

تسعير API لنموذج gemini-4-hydrogen

جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.

نوع الـ tokenAPISeaرسميوفّر
الإدخال لكل 1M رمز$1.32$1.50−12%
الإدخال المخزّن مؤقتًا لكل 1M رمز$0.066$0.075−12%
الإخراج لكل 1M رمز$6.60$7.50−12%

ما هو gemini-4-hydrogen؟

gemini-4-hydrogen is a Google Gemini chat model available through APISea for text-generation workflows. Its maximum input of 1,048,576 tokens makes it an option for applications that need to supply substantial reference material or conversation history. It supports up to 65,536 output tokens and prompt-cache reads. Use role-based messages to provide instructions, user requests, and previous assistant responses through the OpenAI-compatible Chat Completions interface.

Call gemini-4-hydrogen using your APISea API key and the base URL https://api.apisea.ai/v1. The chat interface offers streaming or complete responses, with controls such as temperature, top_p, max_tokens, and stop sequences. APISea bills only successful requests on a pay-as-you-go basis: $1.32 per 1M tokens for input, $0.066 per 1M tokens for cached input reads, and $6.60 per 1M tokens for output. The default configuration is about 12% below the provider list price.

أبرز مزايا gemini-4-hydrogen

Large Input Limit

Supply up to 1,048,576 input tokens for text-generation requests with extensive reference material or conversation context.

Long Output Allowance

The model supports a maximum output of 65,536 tokens. Use max_tokens to set a smaller generation budget for each request.

Prompt Cache Reads

Prompt-cache reads are supported and billed at $0.066 per 1M tokens on APISea.

Compatible Chat Interface

Use the OpenAI-compatible Chat Completions format with role-based messages. Choose streaming SSE output or a complete response.

كيفية استدعاء API الخاص بـ gemini-4-hydrogen في 4 خطوات

  1. 01

    احصل على API key

    سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.

  2. 02

    اضبط عنوان URL الأساسي

    استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.

  3. 03

    أرسل الطلب

    استدعِ POST /v1/chat/completions مع "model": "gemini-4-hydrogen" والمعلمات أدناه.

  4. 04

    تعامل مع الاستجابة

    اقرأ الاستجابة (أو استقبل الـ tokens بالتدفق باستخدام stream: true). يظهر الاستخدام والتكلفة في وحدة التحكم.

curl https://api.apisea.ai/v1/chat/completions \
  -H "Authorization: Bearer $APISEA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-4-hydrogen",
    "messages": [
      {"role": "system", "content": "You are a concise assistant."},
      {"role": "user", "content": "Explain what an AI API gateway does in two sentences."}
    ],
    "stream": false
  }'

المعلمات

المعلمةالنوعمطلوبافتراضيالوصف
modelstringمطلوبgpt-5Model name
messagesarrayمطلوب—List of conversation messages
rolestringمطلوبuserRole type
contentstringمطلوب—Message content
temperaturenumberاختياري—Controls output randomness, range 0-2
max_tokensintegerاختياري—Maximum number of tokens to generate
streambooleanاختياري—Whether to use streaming output
top_pnumberاختياري—Nucleus sampling parameter, range 0-1
frequency_penaltynumberاختياري—Frequency penalty, range -2.0 to 2.0
presence_penaltynumberاختياري—Presence penalty, range -2.0 to 2.0
stopstring or arrayاختياري—Stop sequences
nintegerاختياري—Number of completions to generate

ما الذي يمكنك إنشاؤه باستخدام gemini-4-hydrogen

Reference-Based Assistants

Build text assistants that receive substantial documentation alongside a user's question. Use a system message to define how the assistant should use the supplied references.

Multi-Turn Chat

Include prior user and assistant messages to build conversational applications that retain supplied conversation context.

Document Summaries

Submit long text documents for summaries, with instructions specifying the desired structure and max_tokens bounding the response length.

Extended Draft Generation

Generate reports or other long-form text from supplied source material and instructions, within the model's output limit.

نصائح للحصول على نتائج أفضل

  • 01

    Set an Output Budget

    Choose max_tokens based on the response your application needs rather than always requesting the 65,536-token maximum. Output is billed at $6.60 per 1M tokens.

  • 02

    Tune One Sampling Control

    Use temperature for randomness or top_p for nucleus sampling. The chat documentation recommends choosing one rather than adjusting both.

  • 03

    Plan for Cache Reads

    For workflows that reuse prompt material, account for supported prompt-cache reads at $0.066 per 1M tokens. Check the documentation for cache setup before assuming a request receives cached-input pricing.

  • 04

    Choose Streaming Explicitly

    Set stream to true for SSE responses or false to receive the complete response at once. Make the choice explicit rather than relying on endpoint defaults.

القيود ومعلومات مهمة

  • Maximum input is 1,048,576 tokens per request.

  • Maximum output is 65,536 tokens; set max_tokens within that limit.

  • The supplied model facts establish text chat support, not model-specific image, video, or audio capabilities.

الأسئلة الشائعة حول API الخاص بـ gemini-4-hydrogen

How much does gemini-4-hydrogen cost on APISea?

APISea charges $1.32 per 1M tokens for input, $0.066 per 1M tokens for cached input reads, and $6.60 per 1M tokens for output. The default configuration is about 12% below the provider list price, with billing only for successful requests.

How do I call gemini-4-hydrogen through the API?

Use the base URL https://api.apisea.ai/v1 and send a POST request to /v1/chat/completions with model set to gemini-4-hydrogen and a messages array. Authenticate with your APISea 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 request a lower output limit.

Does gemini-4-hydrogen support streaming and generation controls?

The unified chat interface supports streaming through stream and generation controls including temperature, top_p, max_tokens, and stop sequences. Set stream to false if your application needs a complete response at once.

Can I use gemini-4-hydrogen commercially?

Commercial use is subject to the provider's terms and applicable APISea terms. Review those terms for your intended application before deployment.

How does gemini-4-hydrogen compare with other Gemini models?

The supplied facts establish its token limits, prompt-cache read support, and pricing, but do not provide comparative benchmarks. Its name alone does not establish a speed, reasoning, or capability tier relative to Gemini siblings.

نماذج ذات صلة

العمق: أكثر من 250 نموذجًا · الحد الأدنى لشحن الرصيد $50

ابدأ التطوير باستخدام gemini-4-hydrogen

مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.