NinjaChat
ModelsAPIMCPPricingDocs
Create free key
ModelsAPIMCPPricingDocs

NinjaChat API

Build with AI.
Ship more than text.

Text, images, video, search and agent tools. One API key, one balance.

Create API keyExplore models →
models
220
providers
44
free to start
$0.50
GPT Image 2
Cobalt running shoe campaign generated with GPT Image 2 through NinjaChat
Python · request
image = client.images.generate(
    model="gpt-image-2",
    prompt="Cobalt running shoe campaign, warm concrete",
)

面向开发者

汇聚所有模型。
只需一个 API。

/v1一次连接
文档
chat.py兼容 OpenAI SDK
1 import os
2 from openai import OpenAI
3
4client = OpenAI(api_key=os.environ["NINJACHAT_API_KEY"],
5 base_url="https://www.ninjachat.ai/api/v1")
6
7response = client.chat.completions.create(
8 model="claude-opus-5",
9 messages=[{"role": "user",
10 "content": "Make a clear plan for my next big idea"}],
11 extra_body={"routing": {"strategy": "balanced",
12 "allow_fallbacks": True}},
13)
14 print(response.choices[0].message.content)
响应预览

发起你的第一次调用。

全模态支持

聊天。图像。视频。搜索。

路由,随心配置

自动路由。备用方案。服务商策略。

route
provider
stream

洞察每一次请求

追踪记录。Token 用量。实际费用。

Pricing

One balance.
Published prices.

Pay per request from one prepaid balance. Top up from $5.

Rates

Text
from $0.01/M input
Image
$0.0002–$0.128 / image
Video
$0.422–$3.64 / output
Search
$0.05 / query
MCP
model price + 8%
See every model price →
req_8f31 · exampleSettled
Model usage
$0.032
Service fee · 8%
$0.0026
Total
$0.035

Example charge. Every request settles against your balance at the published rate.

Make your first request.

Create free API keyView API docs →
NinjaChat

所有 AI。 一个应用。

在 App Store 上下载

产品

  • 控制台
  • ninja
  • 定价
  • Enterprise
  • 免费 AI 工具
  • Cinema
  • 推广合作
  • iOS 应用

开发者

  • API
  • API 模型
  • Router
  • MCP / Agents
  • Search API
  • API Pricing
  • Migration Guides
  • API 文档

模型

  • Model Council
  • Seed 1.8
  • Gemini 2.5 Flash
  • Gemini 2.5 Pro
  • Gemini 3 Flash Preview
  • 查看全部模型

公司

  • 博客
  • 社区
  • 加入我们
  • 客服支持
  • 隐私政策
  • 服务条款
  • Safety Protocol
  • Do Not Sell or Share My Personal Information

版权所有 © 2026 NinjaChat AI。 旗下产品 Bloon 保留所有权利。