Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Pipixia Short URL Conversion

Tài liệu API
https://api.sandbase.ai/v1/api/pipixia/app/short-url

Returns a shortened link for a specified web address. Takes an original web link as input and converts it into a Pipixia-compatible short URL format.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
Original URL, can be any link.
Đầu raVí dụ
Phản hồioutputs · 157 B · 10 dòng
[
  {
    "data": {
      "message": "Server Internal Error",
      "prompt": "操作失败,请重试",
      "status_code": 10000,
      "time": 1787218849438
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

Pipixia Short URL Conversion API

Returns a Pipixia short URL for a web address you send. It needs one input, original_url, which can be any link.

Use cases

  • Shorten a Pipixia post link such as https://h5.pipix.com/item/7385813877985909043 before sharing it in a message or caption.
  • Convert external web addresses into the https://h5.pipix.com/s/ short format.
  • Batch-generate compact links for a list of posts in a campaign report or share sheet.

Request

curl -X POST "https://api.sandbase.ai/v1/api/pipixia/app/short-url" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"original_url": "https://h5.pipix.com/item/7385813877985909043"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
original_urlstringYesOriginal URL, can be any link.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "short_url": "https://h5.pipix.com/s/rFYPVXgqO3o/"
  },
  "message": "success",
  "prompt": "",
  "status_code": 0,
  "time": 1793691714055
}

Response fields

FieldMeaning
data.short_urlThe shortened link for the original_url you sent. It uses the https://h5.pipix.com/s/<code>/ format.
status_codeResult code of the call. 0 means the call succeeded.
messageShort status text. It reads success when the call works.
promptExtra prompt text. It is an empty string in the sample response.
timeNumeric timestamp in the response. The sample value 1793691714055 has 13 digits.

Notes

  • Send original_url as a full address that starts with https://. A Pipixia post link has the form https://h5.pipix.com/item/<post id>.
  • Read the result from data.short_url. Check that status_code is 0 before you use it.
  • To look up the post behind a link, call Pipixia Post Detail with the post ID from the /item/ path.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Pipixia$0.001 mỗi lần gọiJSON
Pipixia$0.001 mỗi lần gọiJSON
Pipixia$0.001 mỗi lần gọiJSON
Pipixia$0.001 mỗi lần gọiJSON
Pipixia$0.001 mỗi lần gọiJSON
Pipixia$0.001 mỗi lần gọiJSON

Hướng dẫn:Best Pipixia API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Pipixia Short URL Conversion?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/pipixia/app/short-url với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Pipixia Short URL Conversion có giá bao nhiêu?

$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Pipixia Short URL Conversion chấp nhận những tham số nào?

Bắt buộc: original_url (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Pipixia Short URL Conversion trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Pipixia không?

Không. Pipixia Short URL Conversion chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Pipixia.