Views
No views yet
https://<your-endpoint>.aws.endpoints.huggingface.cloudAuthorization: Bearer YOUR_HF_TOKENinputs object.1{
2 "inputs": {
3 "prompt": "cinematic drone shot of a futuristic city",
4 "num_frames": 32,
5 "outputs": ["gif"]
6 }
7}image field.1{
2 "inputs": {
3 "prompt": "slow zoom in, volumetric fog",
4 "image": "BASE64_STRING_HERE",
5 "num_frames": 32,
6 "outputs": ["gif"]
7 }
8}| Field | Type | Default | Description |
|---|---|---|---|
prompt | string | required | Description of the video or motion. |
image | string | null | (New) Base64-encoded input image for I2V. |
negative_prompt | string | "" | Elements to avoid in the generation. |
num_frames | int | 32 | Total frames to generate. |
fps | int | 12 | Playback frame rate. |
height | int | 512 | Video height (must be divisible by 32). |
width | int | 512 | Video width (must be divisible by 32). |
seed | int | null | Random seed for reproducibility. |
num_inference_steps | int | 30 | Higher = better quality, slower generation. |
guidance_scale | float | 7.5 | How strictly to follow the prompt. |
outputs | array | ["gif"] | Output formats: ["gif", "webm", "zip"]. |
return_base64 | bool | true | Returns file content as base64 string. |
inputs.1"inputs": {
2 "outputs": ["webm"],
3 "webm": {
4 "quality": "best",
5 "fps": 24
6 }
7}{ "fps": int }{ "fps": int, "quality": "fast"|"good"|"best" }1{
2 "ok": true,
3 "outputs": {
4 "gif_base64": "R0lGODlh...",
5 "webm_base64": "..."
6 },
7 "diagnostics": {
8 "timing_ms": { ... },
9 "mode": "i2v" // or "t2v"
10 }
11}1curl -sS -X POST "https://<ENDPOINT>.aws.endpoints.huggingface.cloud" \
2 -H "Authorization: Bearer <TOKEN>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "inputs": {
6 "prompt": "a cyberpunk street in rain, neon lights",
7 "num_frames": 24,
8 "outputs": ["gif"]
9 }
10 }' \
11| jq -er '.outputs.gif_base64' | base64 --decode > output.gif1# MacOS/Linux: Convert image to base64
2IMG_B64=$(base64 -i my_input.jpg)
3
4curl -sS -X POST "https://<ENDPOINT>.aws.endpoints.huggingface.cloud" \
5 -H "Authorization: Bearer <TOKEN>" \
6 -H "Content-Type: application/json" \
7 -d "{
8 \"inputs\": {
9 \"prompt\": \"waves crashing on the shore, moving water\",
10 \"image\": \"$IMG_B64\",
11 \"num_frames\": 32,
12 \"outputs\": [\"gif\"]
13 }
14 }" \
15| jq -er '.outputs.gif_base64' | base64 --decode > animated.gif1curl -sS -X POST "https://<ENDPOINT>.aws.endpoints.huggingface.cloud" \
2 -H "Authorization: Bearer <TOKEN>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "inputs": {
6 "prompt": "slow pan over a mars landscape",
7 "num_frames": 48,
8 "fps": 24,
9 "outputs": ["webm"],
10 "webm": { "quality": "best" }
11 }
12 }' \
13| jq -er '.outputs.webm_base64' | base64 --decode > output.webm