9xAI
9xAI / Developers
For developers

Build AI applications on 9xAI.

Add industry-grade AI to your own product. One account, one key and one wallet of credits give you co-pilots, agents, knowledge, vision, documents and media generation.

// Start an Engineering co-pilot session
const res = await fetch("https://api.9xai.in/copilot/engineering/sessions", {
  method: "POST",
  headers: { Authorization: "Bearer YOUR_API_KEY" },
  body: JSON.stringify({ title: "New session" })
});
The APIs

Everything the platform does, as an API

Co-pilot APIs

Sessions and messages for all 14 industry co-pilots and 9x Chat, with streaming replies and file or image input.

Model Router

Send a task and let 9xAI choose the model by domain, language, cost and risk. Or pick a model yourself.

Agent APIs

Hand over a goal. Agents plan, use tools and, when the job spans fields, split it across several co-pilots.

RAG and Knowledge

Ground answers in your own documents and data, with the sources cited.

Vision and Document AI

Understand photos and digitise pages, with text and positions returned, in Indian languages too.

9x Code

An AI engineer for your own tooling, from the terminal, VS Code and the browser.

Studio API

Images, video and voice in your product

Create jobs, track them and receive a webhook when they finish. Same credit prices as 9x Studio.

  • Create a key in 9x Studio and send it as Authorization: Bearer sk_9x_...
  • Estimate cost first with POST /estimate
  • Safe retries with an Idempotency-Key header
  • Webhooks for finished jobs, with delivery history
  • Per-key monthly credit limits and rate limits
Open 9x Studio
# Create an image job
curl https://api.9xai.in/studio/v1/jobs \
  -H "Authorization: Bearer sk_9x_..." \
  -H "Idempotency-Key: order-1042" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-image-25",
       "params":{"prompt":"A Diwali greeting card"}}'

# Then poll, or wait for your webhook
curl https://api.9xai.in/studio/v1/jobs/JOB_ID \
  -H "Authorization: Bearer sk_9x_..."
Getting started

From sign-up to first call in minutes

Create an accountSign in once with Google, phone or email.
Add creditsChoose a plan or top up. The API runs on purchased credits.
Create a key and call the APIKeys can have their own monthly limit, so one project can never spend everything.

Ready to put 9xAI to work?

Full reference and examples are in the documentation.