ReplicateNinjaChat

Run image, video, and language models through one API.

One key and balance for images, video, chat, search, and agent tools.

Create free API keyView migration guide
generate.pyNinjaChat SDK
from ninjachat import NinjaChatimport osclient = NinjaChat(api_key=os.environ["NINJACHAT_API_KEY"])image = client.images.generate(model="flux-2-pro",prompt="Editorial product photograph",)
Image readyoutput.url
169 text models39 image models12 video models21 MCP tools

One API for models, media, search, and tools.

NinjaChat API
GPT Image 2/v1/images/generations
A cobalt technical running shoe campaign image generated with GPT Image 2 through NinjaChat

See exactly where every request went.

Example tracesettled
Requested modelclaude-sonnet-4.6/v1/chat/completions
Attempt 01Anthropic429 rate limit
FallbackOpenAIgpt-5.4200 OK
Latency842 msUsage1,238 tokensCost$0.00142

Set the spending limit before anything runs.

Control spend by project, API key, and agent.

ProjectProduction
enforced
Spent$184.20
Remaining$315.80
Monthly limit$500
$184.20 spent$315.80 remaining$500 limit
server API keykey$86.40 / $300enforced
design agentagent$72.80 / $120enforced
research agentagent$25.00 / $80enforced

Give agents tools to finish the work.

Generate, edit, reuse, and save assets through NinjaChat MCP.

user request

Change the shoe upper to safety orange. Keep the sole, lighting, and framing unchanged. Save the final campaign image.

01Read sourcerunning

02Edit imagewaiting

03Check resultwaiting

04Write final assetwaiting

05Savedwaiting

The original cobalt running shoe before the controlled MCP edit
source
The final safety-orange running shoe after the controlled MCP edit
editing
/public/campaign/shoe-orange.webpworking

Choose the gateway that fits your stack.

NinjaChat

Best when you want:

  • One account should cover media and frontier LLMs.
  • You want a fixed price before each job.
  • Apps and agents should share one model catalog.
Replicate

Best when you want:

  • You need the largest community-model marketplace.
  • Experimental model versions are the core job.
  • Compute-time billing already fits your workflow.
Image models39 curated modelsThousands of community models
Video models12 curated modelsCommunity video catalog
Chat models169 production LLMsCommunity-hosted LLMs

Run your first media request.

Create free API keyView migration guide