API đang hoạt động Đang kết nối...

Giải Captcha TikTok
Tự Động Bằng AI

Công cụ giải puzzle TikTok tự động với độ chính xác cao. Hỗ trợ API tích hợp, xử lý nhanh chóng, hoàn toàn miễn phí.

🚀
Giải Puzzle Online
Upload ảnh captcha để xử lý
📷
Kéo thả ảnh vào đây
hoặc nhấp để chọn file (JPG, PNG, WebP)
Preview
image.png 0 KB
⚠️ Có lỗi xảy ra
✅ Thành công
Vị trí puzzle (pixel)
0 px
Result
🧩
Đang xử lý puzzle...
Vui lòng đợi trong giây lát
📚
API Documentation
Tích hợp vào ứng dụng của bạn
Endpoint
POST {host}/tiktok/puzzel
Request Body
{ "base64_image": "iVBORw0KGgoAAAANSUhEUgAA..." }
Response
{ "success": true, "result": 100, "base64ResultImage": "iVBORw0KGgo..." }
Host URL
https://raw.githubusercontent.com/dacohacotool/host_kk/refs/heads/main/url_serverkey.txt
import requests
import base64
from PIL import Image
from io import BytesIO

def get_api_host():
    """Lấy host API từ GitHub"""
    try:
        response = requests.get(
            "https://raw.githubusercontent.com/dacohacotool/host_kk/refs/heads/main/url_serverkey.txt"
        )
        if response.status_code == 200:
            return response.text.strip()
    except Exception as e:
        print(f"Lỗi: {e}")
    return None

def solve_tiktok_puzzle(image_path):
    """Giải puzzle TikTok"""
    
    # Lấy host API
    api_host = get_api_host()
    if not api_host:
        print("❌ Không thể lấy host API")
        return None
    
    api_url = f"{api_host}/tiktok/puzzel"
    
    # Đọc và encode ảnh
    with open(image_path, "rb") as f:
        base64_image = base64.b64encode(f.read()).decode()
    
    # Gửi request
    response = requests.post(
        api_url,
        json={"base64_image": base64_image},
        headers={"Content-Type": "application/json"}
    )
    
    if response.status_code == 200:
        result = response.json()
        if result.get("success"):
            print(f"✅ Result: {result.get('result')}")
            
            # Lưu ảnh kết quả
            if result.get("base64ResultImage"):
                img_data = base64.b64decode(result["base64ResultImage"])
                img = Image.open(BytesIO(img_data))
                img.save("result.png")
                print("💾 Saved: result.png")
            
            return result
    
    return None

# Sử dụng
if __name__ == "__main__":
    result = solve_tiktok_puzzle("captcha.png")