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",
)

For developers

Every model.
One API.

chat.pyOpenAI SDK compatible
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ["NINJACHAT_API_KEY"],
base_url="https://www.ninjachat.ai/api/v1")
response = client.chat.completions.create(
model="claude-opus-5",
messages=[{"role": "user",
"content": "Make a clear plan for my next big idea"}],
extra_body={"routing": {"strategy": "balanced",
"allow_fallbacks": True}},
)
print(response.choices[0].message.content)
Response preview

Make your first call.

Every modality

Chat. Image. Video. Search.

Routing, your way

Auto. Fallbacks. Provider policies.

See every request

Traces. Tokens. Actual cost.

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 →