Skip to content
ეს გვერდი ჯერ თქვენს ენაზე ხელმისაწვდომი არ არის და ინგლისურად არის ნაჩვენები.
Google · Gemini

gemini-3.1-pro-preview API

Run Google's Gemini chat and reasoning model on APISea with long-input support and pay-as-you-go pricing.

მსჯელობაჩატი და ტექსტისინქრონულიპრომპტების ქეშირება
მოდელის ID
gemini-3.1-pro-preview

gemini-3.1-pro-preview API-ის ფასები

ყველა ფასი USD-შია. APISea-ის ტარიფები შედარებულია იმავე ერთეულისთვის დადგენილ ოფიციალურ ფასებთან.

Token-ის ტიპიAPISeaოფიციალურიდაზოგვა
შეყვანა 1M token-ზე$1.76$2.00−12%
ქეშირებული შეყვანა 1M token-ზე$0.176$0.20−12%
გამოტანა 1M token-ზე$10.56$12.00−12%

ფასები prompt-ის სიგრძის მიხედვით

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?

Google's gemini-3.1-pro-preview is a Gemini chat and reasoning model, positioned as a higher-capability tier by its Pro name. It is suited to applications that work through substantial text inputs, answer questions over supplied material, or produce detailed responses. The model accepts up to 1,048,576 input tokens and generates up to 65,536 output tokens. APISea supports OpenAI-compatible chat requests with conversation messages, streaming, and controls such as temperature and max_tokens, plus Google's native Gemini format.

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

gemini-3.1-pro-preview-ის მთავარი მახასიათებლები

Large Input Capacity

Supply up to 1,048,576 input tokens for text-heavy conversations and analysis. Generate up to 65,536 output tokens.

Prompt Cache Reads

The model supports prompt-cache reads, priced at $0.176 per 1M tokens on APISea.

Two API Formats

Use the OpenAI-compatible Chat Completions format or Google's native Gemini format. The model is also callable as gemini-3.1-pro-preview-thinking.

Response Generation Controls

Set temperature, top_p, max_tokens, and stop sequences through the chat interface. Choose streamed output or a complete response.

როგორ გამოვიძახოთ gemini-3.1-pro-preview API 4 ნაბიჯში

  1. 01

    მიიღეთ API გასაღები

    შედით APISea-ში, შეავსეთ ბალანსი $50-დან და კონსოლში შექმენით sk-sea გასაღები.

  2. 02

    დააყენეთ საბაზისო URL

    თქვენს SDK-ში ან HTTP კლიენტში საბაზისო URL-ად გამოიყენეთ https://api.apisea.ai/v1.

  3. 03

    გაგზავნეთ მოთხოვნა

    გამოიძახეთ POST /v1/chat/completions პარამეტრებით "model": "gemini-3.1-pro-preview" და ქვემოთ ჩამოთვლილი პარამეტრებით.

  4. 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.1-pro-preview",
    "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-ით

Document question answering

Build assistants that answer questions using lengthy text supplied in the conversation. Ask for references to specific passages so users can verify the response.

Multi-document synthesis

Provide multiple documents as text and request a structured summary of agreements, differences, and open questions.

Reasoning assistants

Use this chat and reasoning model for applications that work through requirements, compare options, and explain recommendations.

Detailed report drafting

Turn supplied notes and source material into longer reports. Set an output budget with max_tokens and specify the desired sections in the prompt.

რჩევები უკეთესი შედეგებისთვის

  • 01

    Budget for input tiers

    For inputs up to 200,000 tokens, rates are $1.76 per 1M input tokens and $10.56 per 1M output tokens. Above that threshold, rates are $3.52 per 1M input tokens and $15.84 per 1M output tokens.

  • 02

    Check cache-read usage

    For workflows that reuse prompt material, check the documentation for cache-read handling. Supported cache reads cost $0.176 per 1M tokens; do not assume every repeated prompt is a cache hit.

  • 03

    Control response length

    Set max_tokens to match your application's response budget, within the 65,536-token output maximum. Specify the desired structure and level of detail in your message.

  • 04

    Set streaming explicitly

    Set stream to true for SSE output or false for a complete response. Use a lower temperature, such as 0.2, when you want less randomness, and tune either temperature or top_p rather than both.

შეზღუდვები და გასათვალისწინებელი საკითხები

  • Input is limited to 1,048,576 tokens, and output is limited to 65,536 tokens.

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

  • The preview name indicates that the model may change; validate behavior before relying on it in production.

gemini-3.1-pro-preview API-ის ხშირად დასმული კითხვები

How much does gemini-3.1-pro-preview cost on APISea?

For inputs up to 200,000 tokens, input costs $1.76 per 1M tokens and output costs $10.56 per 1M tokens; above that threshold, input costs $3.52 per 1M tokens and output costs $15.84 per 1M tokens. Cache reads cost $0.176 per 1M tokens, and the default configuration is about 12% below provider list price.

How do I call gemini-3.1-pro-preview through APISea?

Use the base URL https://api.apisea.ai/v1 and send a Chat Completions request with model set to gemini-3.1-pro-preview and a messages array. Authenticate with your APISea key using Bearer Token authentication; gemini-3.1-pro-preview-thinking is also a supported callable name.

Which generation parameters can I use?

The chat interface documents temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. Google's native Gemini format is also available, with generationConfig controls including temperature, maxOutputTokens, topP, topK, and stopSequences.

What are the input and output token limits?

The maximum input is 1,048,576 tokens, and the maximum output is 65,536 tokens. Requests with inputs above 200,000 tokens use the higher pricing tier.

Can I use gemini-3.1-pro-preview commercially?

Commercial use is subject to the provider's terms. Review those terms and any applicable usage requirements before deploying your application.

How does Pro Preview compare with Gemini Flash models?

By naming convention, Pro is positioned as a higher-capability tier, while Flash is positioned as a lighter, faster, cheaper tier. Preview indicates that the model may change; these names do not establish measured performance differences.

მსგავსი მოდელები

Googleჩატი

gemini-3-flash-preview

ჩატი
$0.44 შეყვანა · $2.64 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Googleჩატი

gemini-3-flash-preview-nothinking

მსჯელობა
$0.44 შეყვანა · $2.64 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Googleჩატი

gemini-3-flash-preview-thinking

მსჯელობა
$0.44 შეყვანა · $2.64 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Googleჩატი

gemini-3-pro-preview

მსჯელობა
$1.76 შეყვანა · $10.56 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Googleჩატი

gemini-3-pro-preview-thinking

მსჯელობა
$1.76 შეყვანა · $10.56 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Googleჩატი

gemini-3.1-flash-lite-preview

ჩატი
$0.22 შეყვანა · $1.32 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Googleჩატი

gemini-3.1-pro-preview-thinking

მსჯელობა
$1.76 შეყვანა · $10.56 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
Googleჩატი

gemini-3.5-flash

ჩატი
$1.32 შეყვანა · $7.92 გამოტანა 1M token-ზე
ოფიციალურ ფასზე 12%-ით ნაკლები
არჩევანი: 250+ მოდელი · მინიმალური შევსება $50

დაიწყეთ gemini-3.1-pro-preview-ით შექმნა

ერთი გასაღები, გამოყენების მიხედვით გადახდა $50-დან; თანხა ჩამოგეჭრებათ მხოლოდ წარმატებული მოთხოვნებისთვის.