Apigator by MixerBox

ドキュメント

APIリファレンス

ApigatorはOpenAI互換です。任意のOpenAI SDKを base URL に向け、Apigatorキーを渡すだけで、チャット・画像・音声・埋め込み・判断など数百のモデルをひとつのエンドポイントから呼び出せます。

タスクのレシピやツール連携(LangChain、Vercel AI SDK、Cursor、Cline)をお探しですか?Cookbookをご覧ください。

無料クイックスタート

カード不要——作成したてのキーで無料モデルが動きます。

ダッシュボードでキーを取得し、すぐに無料モデルで最初の呼び出しを行えます——課金は $0 なので、チャージは不要です。さらに新規アカウントには $0.042 のクレジット(Jev 判断モデル約 100 万トークン分)が付与されます。残高を追加すれば有料モデルが解放されます。

curl https://api.apigator.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"free/nemotron-nano-30b","messages":[{"role":"user","content":"Hello from Apigator!"}]}'
from openai import OpenAI

client = OpenAI(base_url="https://api.apigator.ai/v1", api_key="sk-YOUR_KEY")

resp = client.chat.completions.create(
    model="free/nemotron-nano-30b",  # free — no balance needed
    messages=[{"role": "user", "content": "Hello from Apigator!"}],
)
print(resp.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.apigator.ai/v1", apiKey: "sk-YOUR_KEY" });

const r = await client.chat.completions.create({
  model: "free/nemotron-nano-30b", // free — no balance needed
  messages: [{ role: "user", content: "Hello from Apigator!" }],
});
console.log(r.choices[0].message.content);
free/nemotron-nano-30bfree/nemotron-super-120bfree/gemma-4-31b

クイックスタート

base URLを差し替えるだけ——連携はこれで完了です。言語を選んでください:

curl https://api.apigator.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hello!"}]}'
from openai import OpenAI

client = OpenAI(base_url="https://api.apigator.ai/v1", api_key="sk-...")

resp = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.apigator.ai/v1", apiKey: "sk-..." });

const r = await client.chat.completions.create({
  model: "gpt-4o",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(r.choices[0].message.content);

Base URL https://api.apigator.ai/v1 · 認証 Authorization: Bearer sk-YOUR_KEY (ダッシュボードでキーを取得)。

モダリティ別エンドポイント

すべてがチャットではありません。/models の各モデルには、使用するエンドポイントが記載されています——適切なものを選んでください。base URLもキーも同じです。

モダリティ エンドポイント モデルIDの例
チャット POST /v1/chat/completions gpt-4o
画像生成 POST /v1/images/generations openai/gpt-image-1, fal_ai/fal-ai/flux/schnell
音声合成(TTS) POST /v1/audio/speech elevenlabs-tts
音声認識(STT) POST /v1/audio/transcriptions groq/whisper-large-v3
埋め込み POST /v1/embeddings openai/text-embedding-3-small
動画生成(非同期) POST /v1/videos gemini/veo-3.1-fast-generate-preview
判断モデル(Jev) POST /v1/decisions typesafe/jev-latest

サンプル

Pythonのサンプルは、クイックスタートの client を前提としています。

画像生成

curl https://api.apigator.ai/v1/images/generations \
  -H "Authorization: Bearer sk-..." \
  -d '{"model":"openai/gpt-image-1","prompt":"a red crocodile mascot","n":1}'
client.images.generate(model="openai/gpt-image-1", prompt="a red crocodile mascot", n=1)
const img = await client.images.generate({
  model: "openai/gpt-image-1",
  prompt: "a red crocodile mascot",
  n: 1,
});

埋め込み

curl https://api.apigator.ai/v1/embeddings \
  -H "Authorization: Bearer sk-..." \
  -d '{"model":"openai/text-embedding-3-small","input":"hello world"}'
client.embeddings.create(model="openai/text-embedding-3-small", input="hello world")
const e = await client.embeddings.create({
  model: "openai/text-embedding-3-small",
  input: "hello world",
});

音声合成(TTS)

curl https://api.apigator.ai/v1/audio/speech \
  -H "Authorization: Bearer sk-..." \
  -d '{"model":"elevenlabs-tts","input":"Hello","voice":"21m00Tcm4TlvDq8ikWAM"}' \
  --output speech.mp3
with client.audio.speech.with_streaming_response.create(
    model="elevenlabs-tts", voice="21m00Tcm4TlvDq8ikWAM", input="Hello",
) as r:
    r.stream_to_file("speech.mp3")
import fs from "fs";
const mp3 = await client.audio.speech.create({
  model: "elevenlabs-tts", voice: "21m00Tcm4TlvDq8ikWAM", input: "Hello",
});
fs.writeFileSync("speech.mp3", Buffer.from(await mp3.arrayBuffer()));

voice はElevenLabsのvoice id(名前ではありません)を指定してください。音声の詳しいガイド: /audio.md。

判断モデル(TypeSafe Jev)

curl https://api.apigator.ai/v1/decisions \
  -H "Authorization: Bearer sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"typesafe/jev-latest","input":"Help! My payouts have been failing for 3 days.",
       "questions":[{"name":"is_urgent","type":"predicate","instructions":"Does this convey urgency?"},
                    {"name":"department","type":"choice","instructions":"Which team should handle this?",
                     "choices":[{"value":"billing"},{"value":"technical"},{"value":"sales"}]}]}'
# -> {"answers":[{"type":"predicate","name":"is_urgent","probability":0.95},
#     {"type":"choice","name":"department","choice":"billing","probabilities":[...],"confidence":0.8}], ...}
import requests

r = requests.post(
    "https://api.apigator.ai/v1/decisions",
    headers={"Authorization": "Bearer sk-..."},
    json={"model": "typesafe/jev-latest",
          "input": "Help! My payouts have been failing for 3 days.",
          "questions": [{"name": "is_urgent", "type": "predicate",
                         "instructions": "Does this convey urgency?"}]},
)
print(r.json()["answers"][0]["probability"])  # 0.95 = P(yes)
const r = await fetch("https://api.apigator.ai/v1/decisions", {
  method: "POST",
  headers: { Authorization: "Bearer sk-...", "Content-Type": "application/json" },
  body: JSON.stringify({
    model: "typesafe/jev-latest",
    input: "Help! My payouts have been failing for 3 days.",
    questions: [{ name: "is_urgent", type: "predicate", instructions: "Does this convey urgency?" }],
  }),
});
console.log((await r.json()).answers[0].probability); // 0.95 = P(yes)

OpenAI 互換パラメータ

OpenAI Chat Completions 仕様に準拠しています。GPT-5 系列での検証結果(2026 年 9 月):

すべてのモデルは POST https://api.apigator.ai/v1/responses でも OpenAI Responses 形式で呼び出せます。GPT-5 / GPT-6 系列は chat/completions にそのまま function tools を渡せます(ゲートウェイが Responses API に変換します)。chat/completions で tools が拒否されるモデルがあれば、同じ tools を /v1/responses に送ってください。

モデルとClaude

apigator.ai/models で呼び出し可能な全モデル(料金と各モデルが使用するエンドポイント付き)を閲覧できます。または GET https://api.apigator.ai/v1/models を呼び出してください。Claude以外はすべて、既定で各キーに開放されています。Claudeは許可リスト制で、専用のAnthropic互換エンドポイントで動作します——Claude Code CLI をご覧ください。

AIエージェント向け

ユーザー向けにクライアントを実装していますか?これらの生のmarkdownファイルを取得し、そのとおりに実行してください。

エラー