01
把模型能力、成本、密钥、监控与故障切换收敛到统一网关,让团队用一套 OpenAI 兼容接口管理全部 AI 调用。
01
02
OpenAI 兼容
现有 SDK 一行迁移
统一计费
所有模型族共享积分余额
供应商路由
按健康状态跨供应商调度
专属支持
文档、充值与客服在同一流程
OpenAI · Anthropic · Google · ByteDance — 一个账户,一张账单
03
不只是接入。每次请求都会强化成本、路由与可见性。
llms.txt
复制一段提示词到 CodeX、Claude、Cursor 等任意 Agent,让它立刻读懂 APIMart 全部模型和接口,并向其提问。
请阅读以下 APIMart 的文档索引,并基于此回答我的问题:
https://docs.apimart.ai/llms.txt
关于 APIMart:统一的 AI API 网关,通过 OpenAI 兼容协议提供 500+ 模型 —— 聊天(GPT、Claude、Gemini)、图像(Nano Banana、GPT-Image-2、Imagen)、视频(Sora、Veo、Kling)、音频,按成功请求计费。
我的问题:如何用 Python 调用 Sora 2 生成一段 5 秒的视频?模型
精选各类目顶级模型,几分钟即可开始接入。
Gemini
图像
Nano Banana (gemini-2.5-flash-image-preview) is Google DeepMind's fast, conversational image generation and editing model. It delivers natural-language text-to-image, precise multi-turn edits, strong character consistency, and multi-image fusion at low latency.
$0.0125
ByteDance
图像
Seedream 5.0 Pro (seedream-5-0-pro) is quality-first text-to-image model. It produces cinematic 1K and 2K images with best-in-class text rendering, supports up to 10 reference images for style and character consistency, and unifies generation and editing in a single API call.
$0.036/1K
Midjourney
图像
Midjourney is a leading text-to-image AI model renowned for its painterly aesthetics, strong composition, and cinematic lighting. Generate high-quality images from text prompts or reference images, with fine-grained control over style, aspect ratio, and creative parameters — accessible programmatically through APIMart's unified API, no Discord required.
$0.045
alibaba
图像
wan‑2‑7‑image is an advanced image generation model in Alibaba’s Wan 2.7 series designed to create high‑quality visuals from text prompts. It excels at generating detailed, realistic images with accurate object representation and rich composition. The model supports multimodal input (e.g., combining text with reference images) to influence style and structure, and it’s well‑suited for creative workflows such as marketing assets, product visuals, social media graphics, and artistic content production. With strong semantic understanding and prompt adherence, wan‑2‑7‑image delivers both fidelity and expressive visual output.
$0.0216
OpenAI
图像
GPT Image 2 delivers next-gen AI image generation from text prompts with near-perfect text rendering, native 4K output, and deep world knowledge. As the latest in the GPT Image series, this GPT Image API supports model, prompt, and other parameters — ideal for production workflows.
$0.0085
OpenAI
图像
GPT-Image-1 is an AI generative model that integrates text and image understanding, specializing in high-quality image creation and editing.
$0.1069
OpenAI
图像
GPT-Image 1.5 is an upgraded version of GPT-Image 1, offering higher image quality and improved understanding, making it ideal for high-quality image generation and editing.
$0.0851
alibaba
图像
Z-Image-Turbo is a “fast, efficient, and cost-effective” AI image generation model, ideal for rapid image creation and batch processing.
$0.01
alibaba
图像
Qwen-Image-2.0 is an AI image model that combines “generation and editing” capabilities, supports extremely long descriptions, and delivers high-quality 2K output. It is particularly well-suited for image creation that requires clear text and professional design aesthetics.
$0.02/1K
apimart
图像
Grok Imagine 1.5 (grok-imagine-1.5) is xAI's latest text-to-image model built for photorealistic detail and strong prompt adherence. It renders vivid, coherent scenes fast, and pairs with Grok Imagine's edit and image-to-video variants for a full creative workflow.
$0.015/1K
几分钟内即可开始使用数百种 AI 模型
curl --request POST \
--url https://api.apimart.ai/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-4o",
"messages": [
{
"role": "system",
"content": "You are a professional AI assistant."
},
{
"role": "user",
"content": "Tell me about the history of artificial intelligence."
}
]
}'为什么选择 APIMart
统一平台、透明计价、真人支持,让你专注于产品本身。
聚合官方与认证渠道,链路清晰,告别层层转手。
按 token / 按次计费一目了然,方便做成本预测。
密钥、配额、用量在多模型间统一查看与管理。
兼容常见调用格式,示例代码改配置即可跑通。
多模型组合与用量阶梯,让规模使用更划算。
集成与账单问题有工程师跟进,不靠纯机器人。
常见问题
APIMart是一个统一的AI API平台,通过单一API提供对500+ AI模型的访问。访问聊天API(GPT-5、Claude Sonnet 4.5)、视频API(Sora 2、Veo 3)和图像API(Flux.1、Nano Banana),具有OpenAI兼容集成和比竞争对手更低的成本。
APIMart与Fal.ai、Replicate和直接提供商相比,提供高达70%的成本节省。按需付费定价,无最低月费或隐藏费用。批量折扣会根据用量自动应用。
简单的集成:1)注册并创建API密钥(无需信用卡),2)将您的base_url更新为APIMart的端点,3)开始使用OpenAI兼容格式。对于OpenAI用户,通过全面的文档和示例,只需更改一行代码。
使用APIMart,您只需管理一个账户和一张发票即可访问500+款AI模型。您无需再为Claude、OpenAI和Google分别维护复杂的API Key。此外,我们要比官方提供商拥有更具竞争力的价格优势。
您的密钥在数据库中经过加密存储。您可以在控制台随时生成新密钥或撤销旧密钥,以确保账户安全。
APIMart支持多种主流支付渠道:Antom(Visa、Mastercard、支付宝)、Crypto加密货币、PayPal,以及Creem。您可在控制台选择套餐后按地区可用渠道完成支付,所有充值记录均可在账单页面查询导出。如需正规电子发票或对公汇款,请联系我们的支持团队协助办理。
APIMart完全兼容OpenAI接口规范,因此官方OpenAI客户端(Python、Node.js、Go、Java、PHP、C#、Ruby等)只需替换base_url即可直接使用,无需引入额外依赖。同样兼容LangChain、LlamaIndex、Vercel AI等主流框架。
默认账户即提供较高的RPM/TPM配额,企业账户可申请独立配额与专属通道。我们承诺99.9%可用性,通过多区域多供应商自动路由与故障转移降低单点风险,并提供实时状态页和用量监控。
不会。APIMart仅将您的请求转发至所选模型供应商完成本次推理,不会留存或将您的输入输出用于任何模型训练。同时我们透传各供应商的零数据保留(ZDR)协议,企业账户可签署DPA,满足GDPR、SOC 2等合规需求。