🔥 Black Friday AI API deals are live· New drops every MondayEnds in--d --:--:--See deals →

Google Gemini 4 Carbon: AI 大语言模型

通过 API 运行 Google Gemini 4 Carbon:安全专用前沿推理,适用于代码审计和长周期编程。免费试用——按生成次数付费,无需订阅。 Gemini 4 Carbon is Google DeepMind's security-focused frontier model. It ranks first on the Artificial Analysis Intelligence Index and posts state-of-the-art results on vulnerability discovery (SEC-bench Pro), exploitation (ExploitGym), and patching (CWE-bench), while also improving secure code generation over Gemini 4 Argon. It accepts text plus an optional image and system prompt, with a reasoningeffort control (low, medium, high). For the general-purpose Gemini 4 tier, see Gemini 4 Argon; for faster, cheaper chat, see Gemini 3.8 Flash.

交互式模型控制

通过 API 运行 Google Gemini 4 Carbon:安全专用前沿推理,适用于代码审计和长周期编程。免费试用——按生成次数付费,无需订阅。

📝

概览

关于此模型

Gemini 4 Carbon is Google DeepMind's security-focused frontier model. It ranks first on the Artificial Analysis Intelligence Index and posts state-of-the-art results on vulnerability discovery (SEC-bench Pro), exploitation (ExploitGym), and patching (CWE-bench), while also improving secure code generation over Gemini 4 Argon. It accepts text plus an optional image and system prompt, with a reasoning_effort control (low, medium, high). For the general-purpose Gemini 4 tier, see Gemini 4 Argon; for faster, cheaper chat, see Gemini 3.8 Flash.

1安全代码审查:审计函数和拉取请求中的注入、内存安全及身份验证缺陷,然后起草补丁。
2漏洞分诊:按 CWE 对发现的问题分类,说明其可利用性,并确定修复优先级。
3长周期编程:凭借强大的推理能力规划并实施多步骤工程任务。
4智能体推理:将其用作多步骤智能体和[工作流](/workflows)中的规划模型。
5视觉问答:传入 image_url,即可针对截图、架构图或扫描文档提问。
💰

价格与价值

成本分析

muapiapp$4.00/M input, $20.00/M output

按 Token 计费,每次调用最低 $0.0004。

Fal.ai暂不可用

No dedicated Gemini 4 Carbon endpoint at this time.

Replicate暂不可用

No dedicated Gemini 4 Carbon endpoint at this time.

** 竞品价格根据相似模型架构和使用层级估算。

⚙️

技术详情

配置参数

提示词string

提供给模型的用户消息或指令。

默认值Audit this function for memory-safety and injection vulnerabilities, then propose a patch.
图像 URLstring

作为多模态输入的可选图像 URL。

默认值undefined
系统提示词string

可选的系统级指令,用于引导模型行为。

默认值You are a helpful assistant that responds concisely.
推理强度枚举(3 个选项)

How much reasoning the model applies before answering. Higher effort is slower and uses more output tokens.

默认值medium
📖

实施指南

开发者文档

如何使用 Gemini 4 Carbon

  1. 撰写提示词:将任务写入 prompt。还可添加 system_prompt 来设定角色、语气或输出格式。

  2. 选择推理力度:将 reasoning_effort 设为 low、medium(默认)或 high。较高的推理力度会延长推理时间,并消耗更多输出 token。

  3. 添加图像(可选):提供 image_url,即可在请求中包含图像。

  4. 提交并获取结果:POST 返回 request_id;轮询 /api/v1/predictions/{request_id}/result,或传入 webhook URL。

cURL 示例

curl -X POST "https://api.muapi.ai/api/v1/gemini-4-carbon" \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Audit this function for injection vulnerabilities and propose a patch.",
    "system_prompt": "You are a senior application security engineer. Be concise and specific.",
    "reasoning_effort": "high"
  }'
❓

常见问题

常见问答

什么是 Gemini 4 Carbon?

Gemini 4 Carbon 是 Google DeepMind 的安全专用前沿模型,在 Artificial Analysis Intelligence Index 中排名第一,擅长发现、利用和修复漏洞,也适用于通用编程与推理。

Gemini 4 Carbon 如何定价?

按 token 计费:输入 token 每百万 $4.00,输出 token 每百万 $20.00,每次调用最低收费 $0.0004。推理 token 计入输出。

Gemini 4 Carbon 支持图像吗?

支持。在提示词中传入 image_url,即可针对截图、图表或拍摄的文档提问。

reasoning_effort 有什么作用?

它用于设置模型回答前的推理力度:low、medium(默认)或 high。较高的推理力度能加深模型对难题的分析,但速度较慢且会消耗更多输出 token。

如何获取结果?

该端点为异步调用:你会立即收到 request_id,然后轮询 predictions 结果端点,或提供 webhook URL,以便在文本就绪时收到通知。

Gemini 4 Carbon 与 Gemini 4 Argon 有何不同?

Carbon 是较新的安全专用模型,在漏洞发现和安全代码生成方面表现更强;Argon 则是通用前沿推理层级。两者使用相同的 prompt、image_url 和 system_prompt 字段,Carbon 另提供 reasoning_effort。