Akses terpadu ke model AI kelas dunia. API kompatibel dengan OpenAI — satu API Key untuk semua model.
https://tokenhub.store/api/v1Semua permintaan API menggunakan URL dasar ini. Sepenuhnya kompatibel dengan SDK OpenAI.
Klik provider untuk melihat model yang tersedia dan contoh kode.
Perusahaan riset AI terkemuka, pembuat seri GPT. Dikenal dengan model bahasa mutakhir yang memiliki kemampuan penalaran dan coding yang luar biasa.
Perusahaan keselamatan AI yang dikenal dengan model Claude. Unggul dalam percakapan bernuansa, coding, dan penalaran kompleks dengan fitur keamanan yang kuat.
Keluarga Gemini dari Google menawarkan kemampuan multimodal mutakhir dengan jendela konteks terdepan di industri hingga 2M tokens.
Perusahaan AI milik Elon Musk. model Grok dikenal dengan pengetahuan real-time, respons jenaka, dan bantuan coding yang sangat baik.
Seri Qwen dari Alibaba menawarkan model multibahasa yang kuat dengan performa tinggi untuk tugas bahasa Inggris dan Mandarin.
Seri GLM dari Zhipu AI. Model bilingual Mandarin-Inggris canggih dengan context window hingga 200K.
Seri M2 dari MiniMax. Context ultra-panjang 205K dengan kemampuan multibahasa yang kuat.
Model MiMo V2 dari Xiaomi. Context window besar hingga 1M Tokens.
Seri Qwen3 dari Alibaba. Model MoE masif dengan spesialisasi vision-language dan coding.
Seri Kimi K2 dari Moonshot AI. Penalaran kuat dengan context window yang diperluas.
Model terbaru DeepSeek. Sangat hemat biaya dengan kemampuan penalaran dan coding yang kuat.
Model generasi video Seedance dari ByteDance. Text-to-video berkualitas sinema, image-to-video, dan pengeditan video multimodal dengan dukungan audio.
Model generasi gambar Seedream dari ByteDance. Text-to-image berkualitas tinggi dengan gaya fotorealistik dan artistik.
Model generasi video Kling dari Kwaivgi. Text-to-video dan image-to-video berkualitas tinggi dengan mode std/pro. Durasi 3–15 detik. std: $0.168/s, pro: $0.224/s (tanpa audio).
Buat chat completion dengan dukungan streaming
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
}Hasilkan video dari prompt teks atau gambar (model Seedance & Wan 2.2)
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 (opsional): Array aset media. Setiap item memiliki:
type: "image_url"image_url.url: URL gambarrole: <firstFrame/> (maks 1), <lastFrame/> (maks 1), <refImage/>, <refVideo/>, <refAudio/>Memantau status tugas pembuatan video
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://..."
}
]
}Membuat gambar dari prompt teks (model Seedream)
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"
}Daftar semua model yang tersedia
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="")Hubungi kami: support@tokenhub.store