コード先行
Python、Node、curl の例は同じ OpenAI 互換エンドポイントを使います。
クイックスタートで何が変わる?
NextModel への接続では通常、SDK の接続先、API キー、モデル識別子の3つだけを変更します。リクエスト形式は OpenAI 互換のままなので、アプリケーションコードを大きく変える前に、モデルのコスト、品質、提供元との適合性を比較できます。
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."}]}'# 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)// 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);ドキュメント索引
主要な接続ページをひとまとめに。
クイックスタート
既存の OpenAI SDK を NextModel に3分で接続し、トラフィックを流す前にプロバイダーとコストを比較できます。
認証
Bearer トークン、プロジェクト単位のキー、予算を意識したキー管理で AI API を呼び出します。
チャット補完
OpenAI 互換の1つのリクエスト形式でチャットモデルを呼び出します。
ストリーミング
本番で使う前に、モデルのストリーミング対応を確認しましょう。
モデル
モデル価格、能力、ソースラベル、コンテキスト長、推奨ユースケースを取得します。
エラー
ゲートウェイとプロバイダーのトラブルシュートでよくある HTTP エラー分類。
請求
モデルのコストを見積もり、プロジェクトとキー単位で使用量を突き合わせます。
OpenAI 互換移行
最小限の変更で既存の OpenAI SDK を NextModel に移行します。
CacheSafety Bench
本番キャッシュを有効にする前に、安全な LLM 応答再利用をどう測るかを確認します。
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.