/ docs

त्वरित शुरुआत

मौजूदा OpenAI SDK से NextModel पर सिर्फ तीन बदलावों में जाएँ: SDK का बेस पता, API कुंजी और मॉडल पहचानकर्ता.

कोड पहले

Python, Node, और curl के उदाहरण एक ही OpenAI-संगत endpoint का इस्तेमाल करते हैं।

त्वरित शुरुआत में क्या बदलता है?

NextModel पर migration में आमतौर पर सिर्फ तीन मान बदलते हैं: SDK का बेस पता, API कुंजी और मॉडल पहचानकर्ता। अनुरोध का ढांचा OpenAI-संगत रहता है, इसलिए टीमें application code को गहराई से बदले बिना मॉडल लागत, गुणवत्ता और प्रदाता की उपयुक्तता की तुलना कर सकती हैं।

curl
curl https://api.nextmodel.app/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $NEXTMODEL_API_KEY" \
  -d '{"model":"qwen/qwen3.7-max","messages":[{"role":"user","content":"Reply with OK."}]}'
Python
# pip install openai
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["NEXTMODEL_API_KEY"],
    base_url="https://api.nextmodel.app/v1",
)

resp = client.chat.completions.create(
    model="qwen/qwen3.7-max",
    messages=[{"role": "user", "content":"Reply with OK."}],
)
print(resp.choices[0].message.content)
Node.js
// npm install openai
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.NEXTMODEL_API_KEY,
  baseURL: "https://api.nextmodel.app/v1",
});

const resp = await client.chat.completions.create({
  model: "qwen/qwen3.7-max",
  messages: [{ role: "user", "content":"Reply with OK." }],
});
console.log(resp.choices[0].message.content);

दस्तावेज़ index

सभी मुख्य integration पेज एक जगह।

त्वरित शुरुआत

मौजूदा OpenAI SDK को तीन मिनट में NextModel से जोड़ें, फिर प्रदाताओं की तुलना करें और उत्पादन ट्रैफ़िक रूट करने से पहले खर्च साफ रखें।

प्रमाणीकरण

AI API calls के लिए Bearer token, project-scoped keys, और बजट-सचेत कुंजी प्रबंधन इस्तेमाल करें।

चैट समापन

एक ही OpenAI-संगत अनुरोध-फ़ॉर्मेट से चैट मॉडल call करें।

स्ट्रीमिंग

उत्पादन में मॉडल इस्तेमाल करने से पहले स्ट्रीमिंग क्षमता लेबल समझें।

मॉडल

मॉडल की कीमत, क्षमताएँ, स्रोत लेबल, context length, और सुझाए गए उपयोग के मामले प्राप्त करें।

त्रुटियाँ

Gateway और प्रदाता की troubleshooting के लिए सामान्य HTTP त्रुटि श्रेणियाँ।

बिलिंग

Model cost का अनुमान लगाएँ और project तथा key के हिसाब से उपयोग reconcile करें।

OpenAI से माइग्रेशन

मौजूदा OpenAI SDK integration को कम से कम बदलाव के साथ NextModel पर ले जाएँ।

CacheSafety Bench

लाइव कैशिंग चालू करने से पहले सुरक्षित LLM response पुनः-उपयोग को कैसे मापें, यह समझें।

Chat

The OpenAI-compatible chat surface: same SDK, same shapes, streaming and tools included.

Video

Submit a video job, poll it, and pass reference images as URLs or inline data URIs.

Audio

Audio SKUs today, and why this page ships no audio snippet yet.

Models

The catalog is the reference: every model page carries copy-paste snippets built from live metadata.

Claude Code

Claude Code talks the Anthropic protocol natively — point it at the gateway host, no path suffix.

Cursor

Add NextModel as an OpenAI-compatible provider in Cursor.

Any client

The three-edit migration, restated for agents and plain HTTP clients.

Codex CLI

Register NextModel as a custom OpenAI-compatible model provider in Codex CLI.

OpenCode

Add NextModel as an OpenAI-compatible provider in opencode.json.

Crush

Point the Charm Crush agent at NextModel via crush.json.

Cherry Studio

Add NextModel as an OpenAI-compatible provider in Cherry Studio.

Cline

Use NextModel as the OpenAI-compatible provider in the Cline VS Code extension.

Model IDs

How catalog ids are shaped, why they contain slashes, and which id to send where.

Usage

Query balance and usage over the API, and read the per-request billing headers.

FAQ

Migration, billing boundaries, limits, and the questions support answers most.

API Reference

Every live gateway endpoint, grouped by protocol, with auth conventions and rate-limit headers.

Verify Responses

From per-request billing headers to cryptographic receipts anchored on Base — how to prove what happened, not take it on faith.