API ที่ทรงพลังสำหรับนักพัฒนา

เข้าถึงโมเดล AI ล้ำสมัยผ่าน API ที่เรียบง่ายและเชื่อถือได้ รับ API Key และเริ่มสร้างแอปพลิเคชันอัจฉริยะได้ทันที แบบ Pay-As-You-Go

ปลอดภัยสูงสุด

ระบบเข้ารหัสระดับองค์กรปกป้อง API Key ของคุณอย่างสมบูรณ์แบบ

แดชบอร์ดแบบเรียลไทม์

วิเคราะห์การใช้งานและประสิทธิภาพ API ได้ทุกขณะ

ประสิทธิภาพสูงสุด

โครงสร้างพื้นฐานระดับโลกรองรับหลายล้านคำขอต่อวินาที

เริ่มต้นใช้งานได้ในไม่กี่บรรทัด

// อัพโหลดไฟล์วิดีโอ
const formData = new FormData();
formData.append('file', videoFile);

const upload = await fetch('https://api.phaya.io/api/v1/media/upload', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer phaya_live_xxxxxxxxxxxx'
  },
  body: formData
});

const { id } = await upload.json();

// แปลงไฟล์วิดีโอ
const transcode = await fetch('https://api.phaya.io/api/v1/media/transcode', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer phaya_live_xxxxxxxxxxxx',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    input_file_id: id,
    output_format: 'mp4',
    video_codec: 'h264',
    quality: 'high'
  })
});

const job = await transcode.json();
console.log('Job ID:', job.id);