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

gemini-4-carbon API

Use Google's gemini-4-carbon on APISea for text generation and chat with large inputs and prompt-cache reads.

ჩატიჩატი და ტექსტისინქრონულიპრომპტების ქეშირება
მოდელის ID
gemini-4-carbon

gemini-4-carbon API-ის ფასები

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

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

რა არის gemini-4-carbon?

gemini-4-carbon is a Google Gemini chat model available through APISea for text generation and conversational applications. Its maximum input of 1,048,576 tokens makes it a candidate for workflows that supply substantial reference text or conversation history. Requests use messages with role and content fields, and generated responses contain assistant text. The unified chat interface offers streaming or complete responses, plus controls for randomness, output length, and stop sequences.

Call gemini-4-carbon through APISea's OpenAI-compatible base URL, https://api.apisea.ai/v1, using one API key. Pricing is pay-as-you-go: $1.76 per 1M tokens for input, $0.088 per 1M tokens for cached input reads, and $8.80 per 1M tokens for output. The default configuration is about 12% below the provider list price, and APISea bills only for successful requests. Prompt-cache reads are supported, and output is capped at 65,536 tokens.

gemini-4-carbon-ის მთავარი მახასიათებლები

Large input capacity

Supply up to 1,048,576 input tokens for text-heavy chat and generation workflows.

Extended output allowance

Generate up to 65,536 output tokens. Use the max_tokens parameter to set a smaller response budget.

Prompt-cache reads

The model supports prompt-cache reads at $0.088 per 1M tokens for cached input.

Flexible response delivery

The unified chat API supports streaming responses in SSE format or a complete response returned at once. Set the stream parameter explicitly to choose.

როგორ გამოვიძახოთ gemini-4-carbon 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-4-carbon" და ქვემოთ ჩამოთვლილი პარამეტრებით.

  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-4-carbon",
    "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-carbon-ით

Reference-based assistants

Provide reference text alongside a user's question to build an assistant that responds using supplied material.

Document summaries

Submit lengthy text and request summaries organized by topic, audience, or desired level of detail.

Multi-turn chat applications

Include previous user and assistant messages to maintain conversation context in a text-based application.

Long-form drafting

Generate reports, guides, or other text drafts from a detailed brief, with an explicit output budget and structure.

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

  • 01

    Set an output budget

    Choose max_tokens to match the task rather than always requesting the maximum. Output is billed at $8.80 per 1M tokens.

  • 02

    Control response randomness

    Use a lower temperature, such as 0.2, for more deterministic output. The documented interface recommends adjusting either temperature or top_p.

  • 03

    Plan for cache reads

    For workflows with repeated reference text, check the caching requirements before relying on the cached-input rate. Prompt-cache reads cost $0.088 per 1M tokens.

  • 04

    Specify streaming explicitly

    Set stream to true for SSE output or false for a complete response. This avoids relying on endpoint-specific defaults.

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

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

  • Maximum output is 65,536 tokens; a lower max_tokens setting further restricts generation.

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

gemini-4-carbon API-ის ხშირად დასმული კითხვები

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

Input costs $1.76 per 1M tokens, cached input reads cost $0.088 per 1M tokens, and output costs $8.80 per 1M tokens. The default configuration is about 12% below the provider list price, with billing only for successful requests.

How do I call gemini-4-carbon 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-carbon and a messages array. Authenticate with your APISea key using Bearer Token authentication.

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. Set max_tokens to control the requested output budget.

Which generation parameters can I use?

The unified chat API documents temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. It accepts messages with system, user, and assistant roles.

Does gemini-4-carbon support streaming and prompt caching?

The unified chat interface supports streaming through stream set to true and complete responses through stream set to false. The model supports prompt-cache reads; consult the caching documentation for setup requirements.

Can I use gemini-4-carbon commercially?

Commercial use is subject to the provider's terms. Review Google's applicable terms and APISea's terms before deploying your application.

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

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

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

gemini-3.1-pro-preview-thinking

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

დაიწყეთ gemini-4-carbon-ით შექმნა

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