โปรโมชั่นพิเศษ!

สมัครวันนี้ รับสิทธิ์ใช้งานฟรี 2 วัน เพื่อทดสอบระบบ

ใช้งานฟรี 2 วัน
ไม่ต้องชำระค่าใช้จ่าย
ปลอดภัย 100%
สมัครสมาชิกฟรีเลย!

โปรโมชั่นจำกัดเวลา • สมัครเลยวันนี้ • สิ้นสุดเร็วๆ นี้

จำกัดเวลา
Ollama Pay API Gateway - ระบบจัดการ API Gateway สำหรับ Ollama LLM
สถิติโดยรวม

ข้อมูลโดยรวมของระบบทั้งหมด

...

ผู้ใช้งานทั้งหมด

...

API Tokens

...

คำขอต่อวัน

...

Tokens ใช้ไป
OpenAI-Compatible API

API นี้สนับสนุน OpenAI-compatible endpoints สำหรับการใช้งานกับ LLM

  • Base URL: http://localhost:3000/api/v1
  • Chat Completions: POST /api/v1/chat/completions
  • Models: GET /api/v1/models
วิธีใช้ Anthropic API

สำหรับผู้ที่ใช้งาน Anthropic SDK หรือ Claude Code สามารถเรียกใช้งานผ่าน Anthropic-compatible endpoint ได้

BASE URL
http://localhost:3000/api/anthropic
ตัวอย่างการใช้งาน (Python-SDK)
import anthropic

client = anthropic.Anthropic(
    base_url="http://localhost:3000/api/anthropic",
    api_key="sk-your-api-token"
)

message = client.messages.create(
    model="gpt-5-mini",
    max_tokens=1000,
    system="คุณคือผู้ช่วยที่มีประโยชน์",
    messages=[
        {"role": "user", "content": "สวัสดีครับ"}
    ]
)
print(message.content)
ตัวอย่างการใช้งาน (cURL)
curl http://localhost:3000/api/anthropic/messages \
-H "Authorization: Bearer sk-your-api-token" \
-H "Content-Type: application/json" \
-d '{ "model": "gpt-5-mini", "max_tokens": 1000, "system": "คุณคือผู้ช่วยที่มีประโยชน์", "messages": [{"role": "user", "content": "สวัสดีครับ"}] }'