> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gmicloud.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Wan-AI_Wan2.1-FLF2V-14B-720P

> API usage guide for Wan-AI_Wan2.1-FLF2V-14B-720P.

{/* source_model_id: Wan-AI_Wan2.1-FLF2V-14B-720P */}

{/* source_updated_at: 1782169229 */}

**Model ID**

```bash theme={null}
Wan-AI_Wan2.1-FLF2V-14B-720P
```

**Calling method:** async

# Wan-AI\_Wan2.1-FLF2V-14B-720P API Usage Guide

## Overview

Wan2.1 FLF2V-14B-720P is a state-of-the-art first-last-frame-to-video generation model that creates dynamic videos from first and last frame images. This model generates smooth transitions and interpolations between two given frames, achieving exceptional performance in frame-to-video generation.

### Key Features

* High-definition 720P video output
* Advanced frame interpolation technology
* Chinese and English text generation capabilities
* Multi-GPU support with FSDP + xDiT USP technology
* 14B parameter Diffusion Transformer architecture

## Authentication

All API requests require authentication using an API key. Include your API key in the Authorization header:

```bash theme={null}
Authorization: Bearer YOUR_API_KEY
```

## Submit Video Generation Request

### Endpoint

```
POST /api/v1/apikey/requests
```

### Request Format

```bash theme={null}
curl -X POST "https://api.example.com/api/v1/apikey/requests" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "Wan-AI_Wan2.1-FLF2V-14B-720P",
    "payload": {
      "prompt": "A beautiful sunset transition from day to night",
      "first_frame_image": "your_first_frame_image_data_here",
      "last_frame_image": "your_last_frame_image_data_here",
      "video_length": 5,
      "prompt_extend": false,
      "seed": -1
    }
  }'
```

### Request Parameters

| Parameter                   | Type    | Required | Description                              | Default | Constraints                             |
| --------------------------- | ------- | -------- | ---------------------------------------- | ------- | --------------------------------------- |
| `model`                     | string  | Yes      | Model identifier                         | -       | Must be "Wan-AI\_Wan2.1-FLF2V-14B-720P" |
| `payload.prompt`            | string  | Yes      | Text prompt describing the desired video | -       | Required                                |
| `payload.first_frame_image` | string  | Yes      | Base64 image for the first frame         | -       | Required                                |
| `payload.last_frame_image`  | string  | Yes      | Base64 image for the last frame          | -       | Required                                |
| `payload.video_length`      | integer | No       | Length of the generated video in seconds | 5       | 5, 10                                   |
| `payload.prompt_extend`     | boolean | No       | Enable advanced prompt extension         | false   | true/false                              |
| `payload.seed`              | integer | No       | Seed for reproducible results            | -1      | -1 to 2147483647                        |

### Response

```json theme={null}
{
  "request_id": "550e8400-e29b-41d4-a716-446655440000",
  "model": "Wan-AI_Wan2.1-FLF2V-14B-720P",
  "status": "queued",
  "created_at": 1749002469,
  "updated_at": 1749002469,
  "queued_at": 1749002469
}
```

## Check Request Status

### Endpoint

```
GET /api/v1/apikey/requests/{request_id}
```

### Example

```bash theme={null}
curl -X GET "https://api.example.com/api/v1/apikey/requests/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

### Response

```json theme={null}
{
  "request_id": "550e8400-e29b-41d4-a716-446655440000",
  "org_id": "your-org-id",
  "model": "Wan-AI_Wan2.1-FLF2V-14B-720P",
  "status": "success",
  "is_public": false,
  "payload": {
    "prompt": "A beautiful sunset transition from day to night",
    "first_frame_image": "your_first_frame_image_data_here",
    "last_frame_image": "your_last_frame_image_data_here",
    "video_length": 5,
    "prompt_extend": false,
    "seed": -1
  },
  "outcome": {
    "video_url": "https://storage.googleapis.com/bucket/path/video.mp4",
    "thumbnail_image_url": "https://storage.googleapis.com/bucket/path/thumbnail.jpg"
  },
  "qworker_id": "worker-123",
  "created_at": 1749002469,
  "updated_at": 1749002475,
  "queued_at": 1749002469
}
```

## Request Status Values

| Status       | Description                          |
| ------------ | ------------------------------------ |
| `queued`     | Request is waiting to be processed   |
| `processing` | Request is currently being processed |
| `success`    | Request completed successfully       |
| `failed`     | Request failed                       |
| `cancelled`  | Request was cancelled                |

## List Your Requests

### Endpoint

```
GET /api/v1/apikey/requests?model_id=Wan-AI_Wan2.1-FLF2V-14B-720P
```

### Example

```bash theme={null}
curl -X GET "https://api.example.com/api/v1/apikey/requests?model_id=Wan-AI_Wan2.1-FLF2V-14B-720P" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Get Model Information

### Endpoint

```
GET /api/v1/apikey/models/Wan-AI_Wan2.1-FLF2V-14B-720P
```

### Example

```bash theme={null}
curl -X GET "https://api.example.com/api/v1/apikey/models/Wan-AI_Wan2.1-FLF2V-14B-720P" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## List Available Models

### Endpoint

```
GET /api/v1/apikey/models
```

### Example

```bash theme={null}
curl -X GET "https://api.example.com/api/v1/apikey/models" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

### Response

```json theme={null}
{
  "model_ids": [
    "Wan-AI_Wan2.1-FLF2V-14B-720P",
    "other-model-1",
    "other-model-2"
  ]
}
```

## Pricing

* **Pricing Type**: Video length based pricing
* **Price**: \$0.06 per second
* **Unit**: Second

Example cost calculation:

* 5-second video: 5 × $0.06 = $0.30
* 10-second video: 10 × $0.06 = $0.60

## Video Specifications

* **Duration**: 5-10 seconds
* **Resolution**: 720P (1280x720)
* **Quality**: High-definition with excellent detail and clarity

## Tips for Better Results

1. **Image Quality**: Use high-quality, clear images for first and last frames
2. **Prompt Writing**: Use detailed, descriptive prompts in Chinese for best results
3. **Frame Selection**: Choose frames that have clear visual differences and logical connection
4. **Performance Optimization**: Use appropriate video\_length, enable prompt\_extend for complex scenarios, use seed for reproducibility
