# Douyin Xingtu Signed Image URL API

> Resolves encrypted Xingtu image URIs into accessible image URLs. Callers can specify preferred image formats such as webp, jpg, or png along with link expiration times.

Source: https://www.sandbase.ai/model/douyin/xingtu/sign-image
API reference: https://www.sandbase.ai/model/douyin/xingtu/sign-image/docs

## Facts

- Provider: Douyin
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/douyin/xingtu/sign-image`
- Price: $0.0015 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: api, douyin
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/douyin/xingtu/sign-image` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `uri` | string | yes |  |
| `durationTS` | integer | no |  |
| `format` | string | no |  |

## FAQ

### How do I use the Douyin Xingtu Signed Image URL API?

Send a POST request to https://api.sandbase.ai/v1/api/douyin/xingtu/sign-image with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Douyin Xingtu Signed Image URL API cost?

$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Douyin Xingtu Signed Image URL API accept?

Required: uri (string). Optional: durationTS (integer) and format (string). The Parameters table and the Playground on this page list every field.

### What does the Douyin Xingtu Signed Image URL API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Douyin developer account or API key?

No. Douyin Xingtu Signed Image URL runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Douyin API access separately.

## README

### Douyin Xingtu Signed Image URL API

Convert encrypted Xingtu image URIs into accessible URLs using the `uri` parameter. You can optionally set custom image formats and link validity periods.

#### Use cases

- Convert Xingtu image URIs into directly accessible image links.
- Retrieve Xingtu images in formats such as jpg, png, or webp.
- Generate temporary media URLs with custom expiration lifetimes.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu/sign-image" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uri": "<uri>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `uri` | string | Yes | Image URI, usually obtained from other XingTu API responses |
| `format` | string | No | Image format, default webp, supports: webp, jpg, png, etc. |
| `durationTS` | integer | No | Duration in seconds, default 86400 (24 hours) |

#### Notes

- The `uri` parameter is typically retrieved from other Xingtu endpoint responses.
- The `format` parameter defaults to webp and accepts formats such as jpg and png.
- The `durationTS` parameter controls link validity in seconds, defaulting to 86400 (24 hours).

#### Related APIs

- [Douyin Xingtu Author Hot Comment Keywords](/model/douyin/xingtu/author-content-hot-comment-keywords-v1): Returns hot comment keywords from content produced by a Douyin Xingtu creator.
- [Douyin Xingtu Author Hot Comment Tokens (Xingtu)](/model/douyin/xingtu/author-hot-comment-tokens-v1): Returns hot comment tokens for a Douyin Xingtu creator based on the specified creator ID.
- [Douyin Xingtu KOL Audience Portrait (V1)](/model/douyin/xingtu/kol-audience-portrait-v1): Returns audience demographic and portrait insights for a Douyin Xingtu creator.
