世界最高水準のAI modelへの統一アクセス。OpenAI-compatible API — すべてのmodelに1つのキーで対応します。
https://tokenhub.store/api/v1すべてのAPIリクエストはこのBase URLを使用します。OpenAI SDKsと完全互換です。
プロバイダーをクリックすると、利用可能なmodelとコード例を表示できます。
GPTシリーズを生み出した、先進的なAI研究企業です。最先端の言語modelと、優れた推論・コーディング能力で知られています。
Claudeモデルで知られるAI安全性企業です。強力な安全機能を備え、ニュアンスのある会話、コード、複雑な推論に優れています。
GoogleのGeminiファミリーは、最先端のマルチモーダル機能と、最大2M tokensの業界最高水準のコンテキストウィンドウを提供します。
Elon MuskのAI企業です。Grokモデルは、リアルタイムの知識、機知に富んだ応答、優れたコーディング支援で知られています。
AlibabaのQwenシリーズは、英語と中国語のタスクの両方で高い性能を発揮する強力な多言語モデルを提供します。
Zhipu AIのGLMシリーズ。最大200Kコンテキストウィンドウを備えた高度な中国語・英語バイリンガルモデルです。
MiniMaxのM2シリーズ。強力な多言語機能を備えた205Kの超長コンテキストです。
XiaomiのMiMo V2モデル。最大1M Tokensまで対応する大規模コンテキストウィンドウです。
AlibabaのQwen3シリーズ。Vision-Languageとコーディングに特化した大規模なMoEモデルです。
Moonshot AIのKimi K2シリーズ。拡張コンテキストウィンドウと強力な推論能力を備えています。
DeepSeekの最新モデル。強力な推論とコーディング性能を備え、非常にコスト効率に優れています。
ByteDanceのSeedance動画生成モデル。音声対応の、映画品質のtext-to-video、image-to-video、マルチモーダル動画編集を提供します。
ByteDanceのSeedream画像生成モデル。写実的なスタイルと芸術的なスタイルに対応した高品質なtext-to-imageです。
KwaivgiのKling動画生成モデル。std/proモードに対応した高品質なtext-to-videoとimage-to-videoです。再生時間は3〜15秒。std: $0.168/s、pro: $0.224/s(音声なし)。
ストリーミング対応のチャット完了を作成
Authorization: Bearer th-your-api-key Content-Type: application/json
{
"model": "openai/gpt-4.1",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello!"}
],
"temperature": 0.7,
"max_tokens": 1000,
"stream": false
}テキストまたは画像プロンプトから動画を生成します(Seedance & Wan 2.2 models)
Authorization: Bearer th-your-api-key Content-Type: application/json
{
"model": "bytedance/doubao-seedance-2.0",
"prompt": "A golden retriever running on a sunny beach",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}{
"model": "bytedance/doubao-seedance-2.0",
"prompt": "Hand picks a fresh apple from the tree, the scene smoothly transitions to a hand holding an apple smoothie drink, cinematic lighting in an orchard",
"content": [
{
"type": "image_url",
"image_url": { "url": "https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic1.jpg" },
"role": "first_frame"
},
{
"type": "image_url",
"image_url": { "url": "https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic2.jpg" },
"role": "last_frame"
}
],
"duration": 5,
"resolution": "720p"
}content(任意):メディアアセットの配列。各項目には以下を含みます:
type: "image_url"image_url.url: 画像のURLrole: <firstFrame/>(最大1)、<lastFrame/>(最大1)、<refImage/>、<refVideo/>、<refAudio/>動画生成タスクのステータスをポーリングします
Authorization: Bearer th-your-api-key
{
"id": "tsk-xxx",
"object": "video.generation.task",
"model": "bytedance/doubao-seedance-2.0",
"status": "succeeded", // "queued" | "running" | "succeeded" | "failed"
"data": [
{
"video_url": "https://..."
}
]
}テキストプロンプトから画像を生成します(Seedream models)
Authorization: Bearer th-your-api-key Content-Type: application/json
{
"model": "bytedance/doubao-seedream-5.0",
"prompt": "A serene mountain landscape at sunset",
"n": 1,
"size": "2048x2048"
}利用可能なすべての model を一覧表示します
curl https://tokenhub.store/api/v1/chat/completions \
-H "Authorization: Bearer th-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-4.1",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(
api_key="th-your-api-key",
base_url="https://tokenhub.store/api/v1"
)
# Use any supported model
response = client.chat.completions.create(
model="openai/gpt-5.4", # Or any other model
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({
apiKey: 'th-your-api-key',
baseURL: 'https://tokenhub.store/api/v1',
});
// Use any supported model
const response = await client.chat.completions.create({
model: 'anthropic/claude-sonnet-4-6',
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(response.choices[0].message.content);from openai import OpenAI
client = OpenAI(
api_key="th-your-api-key",
base_url="https://tokenhub.store/api/v1"
)
stream = client.chat.completions.create(
model="google/gemini-2.5-pro",
messages=[{"role": "user", "content": "Write a short story."}],
stream=True
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")お問い合わせ: support@tokenhub.store