🚀 One API for every frontier model on FastInfra

Browse models

Transparent per-token pricing → compare providers on FastInfra

View pricing

OpenAI-compatible chat completions → start in minutes

Read the docs

⚡ Server Auction → Enterprise bare metal from $78.15/mo (173 in stock)

Browse deals

Wan2.7 i2v API

Run Wan-AI/wan2.7-i2v through FastInfra's API. Text-to-video — async job API on the same base URL. Not available on /chat/completions.

Integration

API access for Wan-AI/wan2.7-i2v

One Base URL and API key for every model. Use the endpoint that matches the capability — not every model uses chat completions.

Field Value
Model ID Wan-AI/wan2.7-i2v
Capability Text-to-video
Base URL https://api.fastinfra.ai/v1
Primary endpoint POST https://api.fastinfra.ai/v1/videos (or https://api.fastinfra.ai/v1/videos/generations)
Follow-up GET https://api.fastinfra.ai/v1/videos/{id} (or https://api.fastinfra.ai/v1/videos/jobs/{id}); list models: GET https://api.fastinfra.ai/v1/videos/models
Auth Authorization: Bearer YOUR_API_KEY
OpenAI Chat SDK No — use the endpoint above
List / confirm video ids GET https://api.fastinfra.ai/v1/videos/models — confirm Wan-AI/wan2.7-i2v appears in data[].id
Docs Integration reference

Async job API (HTTP 202 on submit). Hosted video SKUs (e.g. Alibaba Wan, Veo) use the same FastInfra key and wallet — list ids with GET /videos/models. Video models do not work on POST /chat/completions.

Pricing

Wan2.7 i2v pricing

Billed per token. 1,000 output tokens = 1 second of video ($0.00/s at this list price).

Direction Price per 1M tokens
Input—
Output—
Per second of video$0.00 (1,000 output tokens)
Availability

1 route available

Requests route to route-03 by default (lowest cost). FastInfra fails over automatically if a route is unavailable.

Route label Model ID
route-03 Wan-AI/wan2.7-i2v
Quickstart

Call Wan2.7 i2v in 30 seconds

List ids with GET /videos/models, then POST /videos (HTTP 202) and poll GET /videos/{id} — not chat completions. See Alibaba Wan in the docs.

Python

import base64, json, time, urllib.request

headers = {"Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json"}
req = urllib.request.Request(
    "https://api.fastinfra.ai/v1/videos",
    data=json.dumps({
        "model": "Wan-AI/wan2.7-i2v",
        "prompt": "A woman looks at the camera and says, welcome to FastInfra.",
        "seconds": 5,
        "size": "1280x704"
    }).encode(),
    headers=headers,
    method="POST",
)
with urllib.request.urlopen(req, timeout=60) as resp:
    job = json.load(resp)

while True:
    time.sleep(2)
    poll = urllib.request.Request(
        f"https://api.fastinfra.ai/v1/videos/{job['id']}",
        headers={"Authorization": "Bearer YOUR_API_KEY"},
    )
    with urllib.request.urlopen(poll, timeout=60) as resp:
        payload = json.load(resp)
    if payload["status"] == "completed":
        break
    if payload["status"] == "failed":
        raise SystemExit(payload.get("error") or "video job failed")

open("clip.mp4", "wb").write(base64.b64decode(payload["data"][0]["b64_json"]))

curl

curl https://api.fastinfra.ai/v1/videos \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "Wan-AI/wan2.7-i2v",
    "prompt": "A woman looks at the camera and says, welcome to FastInfra.",
    "seconds": 5,
    "size": "1280x704"
  }'
# HTTP 202 — copy "id", then poll:
curl https://api.fastinfra.ai/v1/videos/JOB_ID \
  -H "Authorization: Bearer YOUR_API_KEY"
FAQ

Wan2.7 i2v — common questions

How much does the Wan-AI/wan2.7-i2v API cost?

On FastInfra, Wan-AI/wan2.7-i2v costs $0/1M input, $0/1M output tokens ($0 per second of video). Billing is per token used, with no subscription.

Is Wan-AI/wan2.7-i2v compatible with the OpenAI SDK?

Video models use the same FastInfra API key and base URL (https://api.fastinfra.ai/v1). List SKUs with GET https://api.fastinfra.ai/v1/videos/models, submit with POST https://api.fastinfra.ai/v1/videos (HTTP 202), poll GET https://api.fastinfra.ai/v1/videos/{id} until status is completed. They do not work on POST https://api.fastinfra.ai/v1/chat/completions.

Can I call Wan-AI/wan2.7-i2v on POST /chat/completions?

No. Wan-AI/wan2.7-i2v is a video model. Use GET https://api.fastinfra.ai/v1/videos/models to confirm the id, POST https://api.fastinfra.ai/v1/videos with "model": "Wan-AI/wan2.7-i2v", then poll GET https://api.fastinfra.ai/v1/videos/{id}.

I asked for Wan 2.2 — why doesn't it work?

Wan is available on FastInfra through the video job API, not chat. Call GET https://api.fastinfra.ai/v1/videos/models and use the exact Wan video id listed there (often alibaba/wan-2.6 or newer). Names like "wan-2.2" only work if that exact id appears in the list. See the docs section "Alibaba Wan" for the full flow.

How does routing work for Wan-AI/wan2.7-i2v?

Wan-AI/wan2.7-i2v is available on 1 route(s): route-03. Requests use route-03 by default (lowest cost). FastInfra fails over automatically if a route is unavailable.