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

gemini-3.1-pro-preview-thinking API

Use Google’s Gemini preview model for text generation and reasoning through APISea’s OpenAI-compatible API.

استدلالالمحادثة والنصمتزامنالتخزين المؤقت للمطالبات
معرّف النموذج
gemini-3.1-pro-preview-thinking

تسعير API لنموذج gemini-3.1-pro-preview-thinking

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

نوع الـ tokenAPISeaرسميوفّر
الإدخال لكل 1M رمز$1.76$2.00−12%
الإدخال المخزّن مؤقتًا لكل 1M رمز$0.176$0.20−12%
الإخراج لكل 1M رمز$10.56$12.00−12%

التسعير حسب طول المطالبة

نوع الـ tokenحتى 200,000 tokenأكثر من الشريحة السابقة
الإدخال$1.76$2.00$3.52$4.00
الإدخال المخزّن مؤقتًا$0.176$0.20$0.352$0.40
الإخراج$10.56$12.00$15.84$18.00

ما هو gemini-3.1-pro-preview-thinking؟

Google’s gemini-3.1-pro-preview-thinking is a Gemini chat and reasoning model available through APISea. Its pro and thinking naming positions it as a higher-capability option for tasks that call for extended reasoning, while preview signals that behavior may change. It is suited to document-heavy analysis, multi-step questions, and conversational workflows. Send conversation messages with role and content fields and receive generated text, with support for streaming or complete responses. The model accepts up to 1,048,576 input tokens and generates up to 65,536 output tokens.

Use one APISea key and the OpenAI-compatible base URL https://api.apisea.ai/v1. Billing is pay-as-you-go, only for successful requests. Up to 200,000 input tokens, input costs $1.76 per 1M tokens and output costs $10.56 per 1M tokens. Prompt-cache reads are supported; larger inputs use a higher pricing tier. The default configuration is about 12% below provider list price.

أبرز مزايا gemini-3.1-pro-preview-thinking

Large Input Capacity

Accepts up to 1,048,576 input tokens, allowing substantial text context in a single request.

Extended Output Budget

Supports up to 65,536 output tokens. Use max_tokens to set a generation cap for your workflow.

Prompt Cache Reads

Supports cached-input reads at $0.176 per 1M tokens, compared with the provider list price of $0.2 per 1M tokens.

OpenAI-Compatible Chat Interface

Call through POST /v1/chat/completions with model and messages fields. Choose streaming responses or a complete response using the stream parameter.

كيفية استدعاء API الخاص بـ gemini-3.1-pro-preview-thinking في 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-3.1-pro-preview-thinking" والمعلمات أدناه.

  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-3.1-pro-preview-thinking",
    "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-3.1-pro-preview-thinking

Document Analysis Assistants

Provide lengthy source material and ask for summaries, comparisons, or answers grounded in the supplied text.

Multi-Step Decision Support

Build workflows that ask the model to evaluate constraints, compare alternatives, and explain a recommendation for human review.

Context-Rich Chat

Include user, assistant, and system messages to build conversations with prior exchanges and application instructions.

Long-Form Drafting

Generate structured reports or detailed explanations from supplied context, with an explicit output budget and requested format.

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

  • 01

    Budget for Input Tiers

    Requests above 200,000 input tokens use input pricing of $3.52 per 1M tokens and output pricing of $15.84 per 1M tokens. Account for the tier change before sending large contexts.

  • 02

    Plan for Cache Reads

    For workflows with recurring context, review prompt-cache usage in the documentation. Supported cache reads cost $0.176 per 1M tokens; do not assume every repeated prompt is a cache hit.

  • 03

    Set an Output Cap

    Use max_tokens to bound generated output within the 65,536-token maximum. Ask for a specific structure and level of detail to keep responses focused.

  • 04

    Choose Response Delivery

    Set stream to true for SSE streaming or false to receive the complete response at once. Set it explicitly rather than relying on endpoint defaults.

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

  • Maximum input is 1,048,576 tokens, and maximum output is 65,536 tokens.

  • Inputs above 200,000 tokens use the higher input and output pricing tier.

  • This is a preview model, so behavior may change.

الأسئلة الشائعة حول API الخاص بـ gemini-3.1-pro-preview-thinking

What does gemini-3.1-pro-preview-thinking cost on APISea?

Up to 200,000 input tokens, input is $1.76 per 1M tokens and output is $10.56 per 1M tokens; above that tier, input is $3.52 per 1M tokens and output is $15.84 per 1M tokens. Cache reads cost $0.176 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 this model through APISea?

Use https://api.apisea.ai/v1 as your OpenAI-compatible base URL and send a chat completions request with Bearer Token authentication. Set model to gemini-3.1-pro-preview-thinking and supply a messages array with role and content fields.

Which generation controls are documented?

The unified chat interface documents temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. Use stream to choose streaming or complete responses, and consult the model documentation for model-specific parameter behavior.

What are the input and output token limits?

The maximum input is 1,048,576 tokens, and the maximum output is 65,536 tokens. Pricing changes when input exceeds 200,000 tokens.

Can I use this model commercially?

Commercial use is subject to the provider’s terms. Review Google’s applicable terms and APISea’s terms before deploying a commercial application.

How does it relate to gemini-3.1-pro-preview?

The facts list gemini-3.1-pro-preview as another callable name for this model. The thinking suffix positions it for extended reasoning, but the supplied facts do not establish a separate performance difference between the two names.

نماذج ذات صلة

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

ابدأ التطوير باستخدام gemini-3.1-pro-preview-thinking

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