กลับข้อความ
กลับลำดับอักขระที่มองเห็น รวมทั้งช่องว่างและการขึ้นบรรทัดใหม่
URL ฐาน: https://happytails.ai · ยังไม่ได้เชื่อมต่อ API สาธารณะ
การประมวลผล
เมื่อส่งคำขอผ่าน API ข้อมูลที่ป้อนจะได้รับการประมวลผลบนเซิร์ฟเวอร์
พารามิเตอร์ของคำขอ
ส่งออบเจ็กต์ JSON ระบบจะปฏิเสธพร็อพเพอร์ตีที่ไม่รู้จัก ตัวเลือกที่ไม่ได้ระบุจะใช้ค่าเริ่มต้นด้านล่าง ป้อนตัวเลขและค่าบูลีนเป็นค่า JSON โดยไม่ใส่เครื่องหมายคำพูด
input เป็นสตริงที่มีค่าเริ่มต้นเป็นค่าว่างและรับได้สูงสุด 1,000,000 อักขระ เปลี่ยนข้อมูลเข้าหรือการตั้งค่าเพื่ออัปเดตผลลัพธ์ ผลลัพธ์จะเปลี่ยนตามขณะที่คุณพิมพ์
เอนด์พอยต์นี้ไม่รองรับอาร์เรย์ files
ตัวเลือก
ไม่จำเป็นต้องระบุตัวเลือก คุณสามารถละ options หรือส่งออบเจ็กต์ว่างได้
การตอบกลับเมื่อสำเร็จ
การตอบกลับ HTTP 200 มี tool และ result ข้อความอยู่ใน result.text และอาจมี JSON ที่แยกวิเคราะห์แล้วใน result.data ไฟล์ที่สร้างขึ้นอยู่ใน result.files พร้อม name, mime, bytes และ base64 ให้ถอดรหัสไบต์ก่อนบันทึก หากการดำเนินการส่งผลลัพธ์ชนิดอื่นกลับมา อาร์เรย์ไฟล์ว่างและข้อความที่มีค่า null ถือว่าถูกต้อง
สคีมาผลลัพธ์ฉบับเต็ม
{
"type": "object",
"required": [
"tool",
"result"
],
"properties": {
"tool": {
"type": "string"
},
"result": {
"type": "object",
"required": [
"text",
"files"
],
"properties": {
"text": {
"type": [
"string",
"null"
]
},
"data": {
"description": "Parsed JSON when the textual result is JSON."
},
"name": {
"type": "string"
},
"mime": {
"type": "string"
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"mime",
"bytes",
"base64"
],
"properties": {
"name": {
"type": "string"
},
"mime": {
"type": "string"
},
"bytes": {
"type": "integer"
},
"base64": {
"type": "string",
"contentEncoding": "base64"
}
}
}
}
}
}
}
}ข้อจำกัดและข้อผิดพลาด
เอนด์พอยต์นี้บังคับใช้ข้อจำกัดด้านล่าง รวมถึงข้อจำกัดเพิ่มเติมเรื่องรูปแบบ จำนวนหน้า ระยะเวลา และโมเดลที่ระบุในหมายเหตุการทำงาน ข้อจำกัดในหน้าเว็บอาจต่างจากข้อจำกัดของ API
request_bytes- 8388608
input_characters- 1000000
files_bytes- 5242880
max_files- 0
timeout_seconds- 12
คำขอที่ไม่ถูกต้องจะส่งคืนออบเจ็กต์ error ที่มีฟิลด์ code และ message ดู รหัสสถานะ HTTP การลองใหม่ การหมดเวลา และคำขอพร้อมกัน ระบบประมวลผลแบบซิงโครนัสและส่งผลลัพธ์กลับมาในการตอบกลับเดียวกัน
สคีมาคำขอฉบับเต็ม
ขยายสคีมา JSON
{
"type": "object",
"additionalProperties": false,
"properties": {
"input": {
"type": "string",
"maxLength": 1000000,
"default": "",
"description": "Plain text input. File tools use files instead unless otherwise documented."
},
"options": {
"type": "object",
"additionalProperties": false,
"properties": {}
}
}
}หากต้องการทำงานอัตโนมัติในเบราว์เซอร์ ให้ใช้ คำแนะนำสำหรับ WebMCP ส่วนกลางเพื่อตรวจสอบว่าเบราว์เซอร์เปิดให้ใช้เครื่องมือใดบ้าง
curl https://happytails.ai/api/v1/tools/reverse-text/run \
-H "Content-Type: application/json" \
--data '{"input": "A\ud83d\udc4bB", "options": {}}'const payload = {
"input": "A\ud83d\udc4bB",
"options": {}
};
const response = await fetch(
"https://happytails.ai/api/v1/tools/reverse-text/run",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload)
}
);
const data = await response.json();
if (!response.ok) throw new Error(data.error.message);
console.log(data.result);import json
from urllib.request import Request, urlopen
payload = json.loads('{"input": "A\\ud83d\\udc4bB", "options": {}}')
request = Request(
"https://happytails.ai/api/v1/tools/reverse-text/run",
data=json.dumps(payload).encode(),
headers={"Content-Type": "application/json"},
)
with urlopen(request, timeout=200) as response:
result = json.load(response)
print(result){
"input": "A\ud83d\udc4bB",
"options": {}
}เปลี่ยน origin ของ API และค่าข้อมูลเข้าให้ตรงกับแอปพลิเคชันของคุณ
{
"tool": "reverse-text",
"result": {
"text": "B\ud83d\udc4bA",
"files": [],
"name": "result.txt",
"mime": "text/plain;charset=utf-8"
}
}{
"error": {
"code": "INVALID_INPUT",
"message": "Unknown request property. See the tool input schema."
}
}