TokenFab Docs Center
A large LLM inference service platform, compatible with OpenAI SDK to help developers quickly build AI applications.
Platform Capabilities
Quick Navigation
Questions?See the FAQ or Contact Us.
Get API Key
Follow these steps to create an API key and start calling the TokenFab API.
1Create API Key
- Visit TokenFab Console,log in or register.
- Go to Console → API Keys.
- Click "Create API Key", enter a note, then confirm.
- Copy the key (format:
tk-xxxx...), it cannot be viewed again after closing.
⚠️ Warning
Keep your API Key secure. Do not commit it to version control or hardcode it in frontend code.
2Configure Environment Variables
The api_key in later examples can be replaced with your key directly; if you use the environment variable above, read TOKENFAB_API_KEY in your code.
First API Call
Use the Python SDK to make your first API call.
Install Dependencies
Call Example
SDK Guide
TokenFab API is compatible with the OpenAI SDK.
Install
Initialize
Error Handling
OpenAI SDK Compatibility
TokenFab provides an OpenAI-compatible interface. Basic Chat Completions calls require only two changes to migrate; configure extensions such as Thinking Mode and Web Search according to this guide.
| Config Field | OpenAI | TokenFab |
|---|---|---|
| api_key | sk-xxx... | tk-xxxx... |
| base_url | https://api.openai.com/v1 | https://api.tokenfab.cn/v1 |
💡 Tip
OpenAI-compatible features can be used directly; for TokenFab extensions such as Thinking Mode and Web Search, follow the corresponding sections.
Anthropic SDK Compatibility
TokenFab API is compatible with the Anthropic SDK (Messages API). Simply modify the base_url to migrate your existing Anthropic applications to TokenFab.
⚠️ Tip
Anthropic protocol currently supports the following models: glm-5.2, qwen3.7-max, qwen3.7-plus, kimi-k3
Migration Guide
Update the following two required configuration items; set the optional ANTHROPIC_AUTH_TOKEN only if your client requires it:
| Environment Variable | Description | TokenFab Configuration Value |
|---|---|---|
ANTHROPIC_API_KEY | API Key | tk-xxxx... |
ANTHROPIC_BASE_URL | Compatible endpoint URL | https://api.tokenfab.cn/anthropic |
ANTHROPIC_AUTH_TOKEN | Auth token (optional, equivalent to API_KEY) | tk-xxxx... |
Quick Start
Text Chat
Streaming Output
Integrating Agent Tools
TokenFab API is compatible with the OpenAI interface format and can easily integrate with various AI coding assistants, Agent frameworks, and IDE plugins. Select the tool you are using and follow the configuration guide.
Integrate Claude Code
AI coding assistant running in your terminal, point it to TokenFab via config file
Integrate OpenClaw
Open-source personal AI assistant, integrates with chat tools like Feishu and WeChat, extends capabilities through Skills
Integrate Hermes
Nous Research open-source self-evolving AI Agent with built-in learning loop and skill accumulation
Integrate WorkBuddy
AI Agent and coding assistant, supports custom model config files, integrates via OpenAI Compatibility API
Integrate Claude Code
Claude Code is an AI coding assistant that runs in your terminal. By replacing the model in the configuration file, you can point Claude Code to the TokenFab API and use our models for an advanced coding experience.
Migrate from Existing Installation
If you have already installed Claude Code, follow these steps to complete the configuration:
Linux / Mac
Windows (PowerShell)
Tip
The "Migrate from Existing Installation" section above contains the configuration variables. Get the API Key from the console.
After configuration, run claude --version to verify the version. If the version displays correctly, you can proceed with the next steps.
Getting Started
Web Search Feature
TokenFab API supports the Claude Code Web Search feature. When the model determines your question needs searching, it returns search results with citations. Since different models have different Web Search usage, you can refer to the official Claude Code documentation.
Model Mapping
With Claude Code, we can automatically map incoming Claude model names:
| Claude Models | Maps To |
|---|---|
claude-opus-4 / claude-opus-4-1 | glm-5.2 |
claude-sonnet-4 / claude-haiku-4 | glm-5.2 |
By modifying ~/.claude/settings.json to customize the imported Claude models for automatic mapping.
Integrate OpenClaw
OpenClaw is an open-source personal AI assistant that integrates with chat tools like Feishu and WeChat, and extends capabilities through Skills. With simple configuration, you can point OpenClaw to the TokenFab API.
Migrate from Existing Installation
If you have already installed OpenClaw, run the following command to re-enter the configuration phase and switch to the TokenFab provider:
Then follow the prompts:
- When you see I understand this is personally-by-default... select Yes
- When you see Skip onboarding by default? select No to continue configuration
Install OpenClaw
Linux / Mac
Windows (PowerShell)
Configure Default Model
After first installation, it will automatically enter the configuration phase; existing users can run openclaw onboard --install-daemon to enter the configuration phase.
- When you see I understand this is personally-by-default... select Yes
- Select Setup node recommended: QuickStart
- When you see ModelAuth provider select TokenFab
- When you see Enter API key:Enter your TokenFab API Key
- When you see Default model:enter the model name(glm-5.2)
- When you see Skip permissions for... configure as needed; beginners can choose Skip for now
Getting Started
Open Web UI
Chat in terminal
Chat with a specific model
Integrate Hermes
Hermes is an open-source self-evolving AI Agent built by Nous Research. It has a built-in learning loop that generates skills from experience, continuously optimizes during use, accumulates knowledge, and gradually builds a dynamic model around your preferred topics.
Install Hermes
Quick Install
With a single install command, you can launch the Hermes Agent in under two minutes.
Linux / macOS / WSL2
The only dependency is Git. The command clones the Hermes repository from GitHub and provides a ready-to-use set of scripts and commands.
Quick Start
- Run
hermes setup - Select Quick Setup
- When prompted to select a model provider, choose TokenFab
- Enter your TokenFab API Key
- Base URL::
https://api.tokenfab.cn/v1 - Select glm-5.2 Models
- Continue with the remaining configuration options
Integrate WorkBuddy
WorkBuddy / CodeBuddy is an AI Agent and coding assistant tool. It supports adding custom models through local model configuration files and can connect to TokenFab using the OpenAI-compatible Chat Completions API.
Configure Model
In the WorkBuddy model configuration file, add the following JSON config. The API Key is obtained from the console. Replace ${{API_KEY}} with your actual TokenFab API Key; do not leave the placeholder in the config.
💡 Tip
The url in the config uses the OpenAI-compatible Chat Completions endpoint. Make sure apiKey contains your actual TokenFab API Key and that the placeholder is removed.
Voucher Usage Guide
View, use, and manage your vouchers
What Is a Voucher
A voucher is a monetary benefit granted by TokenFab in the form of a virtual coupon, which can be used to offset the fees you incur from using our products. A voucher has a fixed face value and can be applied multiple times within its remaining balance, until the balance is used up or the voucher expires.
Viewing Vouchers
Sign in to TokenFab Console, go to Billing > Voucher Management, and you can view all vouchers in your account.
The list page provides the following filters to help you quickly locate a voucher:
- Effective period: filter by the voucher's effective time range
- Keyword search: search by voucher name or ID
- Status filter: filter vouchers that are available, used up, expired, or voided
The voucher attributes are as follows:
| Attribute | Description |
|---|---|
| Voucher ID | The unique identifier of the voucher |
| Face value | The face value of the voucher |
| Balance | The remaining deductible amount of the voucher |
| Applicable products | The product scope eligible for voucher deduction, e.g. all products or specific products |
| Payment method | The payment methods eligible for voucher deduction, e.g. pay-as-you-go |
| Validity period | The valid usage period of the voucher |
| Granted at | The time when the voucher was credited to your account |
| Status | Available, used up, expired, or voided |
Click View Details in the actions column of the list to go to the voucher details page and view the complete information of the voucher (summary, applicable products, deduction records).
How to Use Vouchers
A voucher comes with usage conditions such as the applicable product scope, eligible payment methods, and a valid usage period. For details, see the voucher details page.
Deduction Rules
- Automatic matching: the system prioritizes vouchers that are expiring soon.
- Multiple vouchers: if the balance of a single voucher is not enough to cover the entire bill, the system automatically applies the next available voucher and continues deducting until the bill is fully covered or all available vouchers are used up.
- Balance payment: if any amount remains on the bill after voucher deductions, the remaining amount must be paid with your account balance.
Deduction Scope and Limitations
- Product scope: only model invocation fees within the voucher's applicable product scope are deductible. When the applicable products are set to all products, any pay-as-you-go product can be deducted; when set to specific products, only the fees of the corresponding products are deductible. The voucher details page shall prevail.
- No deduction of outstanding payments: vouchers cannot be used to cover historical overdue charges. Overdue charges must be paid off by topping up your account.
Viewing Deduction Details
In the Voucher Management list, click View Details to go to the voucher details page. Under "Usage Details", you can view all deduction records of the voucher, including the deduction record ID, deduction time, and deduction amount.
Usage Details supports filtering by time and transaction type, and can be exported for reconciliation.
Validity Rules
Voucher validity periods come in two types, as shown on the voucher details page:
- Fixed period: the voucher is valid between the specified effective date and expiration date.
- N days after grant: starts counting N days from the date the voucher is credited to your account, and expires automatically when due.
FAQ
Why hasn't my voucher been deducted from my bill?
Common reasons include:
- Product restrictions: the product consumed in this billing cycle is not within the voucher's applicable product scope
- Expired: the bill issuance time is past the voucher's validity period
- Insufficient balance: the voucher is used up, so the system automatically uses another available voucher or your account balance
- Voided: the voucher has been voided by our operations team and its balance has been cleared
- Overdue status: when your account has overdue charges, vouchers cannot cover the overdue portion
- Bill not yet issued: pay-as-you-go bills may take time to settle. Please check back later
If the cause still cannot be identified, verify the applicable products and validity period on the voucher details page, or contact customer support with the voucher ID (e.g. VF15474540) for troubleshooting.
Can vouchers be cashed out, withdrawn, or transferred to the account balance?
No. Vouchers cannot be converted to cash, topped up, or transferred to your account balance. They can only be used to automatically deduct pay-as-you-go bills. To top up your account, go to "Top-Up > Online Top-Up".
Can vouchers be transferred to or shared with another account?
No. Vouchers are bound to the tenant account verified at grant time and cannot be transferred to, shared with, or paid on behalf of another account. Vouchers granted to your account can only be used to deduct pay-as-you-go bills of that account.
Can expired vouchers be restored or extended?
No. Once a voucher expires, its remaining balance is automatically cleared and cannot be restored, extended, or reissued. The system deducts in the "expiring soonest first" order to help you minimize losses from expiration.
Does claiming a voucher incur any charges?
No. Vouchers credited to your account incur no fees and require no activation. Deduction is triggered only when a pay-as-you-go bill is generated from model invocations.
Can I get an invoice for the fees deducted by vouchers?
Amounts deducted by vouchers are not invoiced twice: invoices are issued based on the amount actually paid (the portion paid from your account balance), and the portion deducted by vouchers is not included in the invoiced amount. For invoicing rules, see the "Invoice Management" page.
TokenFab Domain Change Notice
Published: September 19, 2026
Dear TokenFab users,
To standardise our domain management and improve your experience, the TokenFab website will move to www.tokenfab.cn, and the previous domain www.tokenfab.com will stop serving at 18:00 on September 21, 2026 (UTC+8). Please update your configuration and integrations in time:
1. Update your API endpoint: replace api.tokenfab.com/v1 with api.tokenfab.cn/v1 in your code, SDK configuration and environment variables (e.g. the base_url of an OpenAI-compatible SDK);
2. Update your network allowlists and bookmarks: if your corporate firewall, proxy or gateway restricts outbound traffic by domain, add the new domain to the allowlist. Also update your browser bookmarks — save the new website www.tokenfab.cn and the new console www.tokenfab.cn/console;
3. Update your callbacks and integrations: if you have configured Webhook callbacks or third-party integrations, point them to the new domain and verify connectivity.
We apologise for any inconvenience this may cause, and thank you for your continued trust and support.
September 19, 2026
Model Overview
Learn about the available models and capabilities on TokenFab. All models share the same API.
Text Models
| Models ID | Context | Max output tokens | Features |
|---|---|---|---|
| glm-5.2 | 1M | 128K | Latest flagship, 1M ultra-long context, supports Web Search |
| glm-5.3 | 1M | — | Supports Web Search and tool calling |
| kimi-k3 | — | — | Flagship model; capabilities follow the API response |
| kimi-k2.7-code | 128K | 128K | Strong coding ability, excellent math reasoning |
| kimi-k2.6 | — | — | Capabilities follow the API response |
| deepseek-v4-pro | 1M | 384K | Deep reasoning and coding |
| deepseek-v4-flash | 1M | 384K | Fast response for coding and RAG |
| qwen3.7-max | 1M | 64K | Flagship model for complex reasoning and agents |
| qwen3.7-plus | 128K | 96K | Balanced quality, speed, and cost |
Video Models
| Models ID | Inputs | Supported modes | Use Case |
|---|---|---|---|
| viduq3-pro | Text + image | T2V / I2V / FLF2V | Quality-first, 540P / 720P / 1080P |
| viduq3-turbo | Text + image | T2V / I2V / FLF2V | Speed and throughput, suited to frequent drafts |
| happyhorse-1.1-t2v | Text | T2V | Text-to-video, 720P / 1080P |
| happyhorse-1.1-i2v | Text + image | I2V | Image-to-video, 720P / 1080P |
| happyhorse-1.1-r2v | Text + reference images | R2V | Reference consistency, 1-9 images |
See Video Generation Scenarios for the video endpoint request format and model parameters.
Recommended Scenarios
🏆 Best Overall — glm-5.2
1M ultra-large context, flagship performance.
💻 Coding — deepseek-v4-pro
Code generation, debugging, review.
⚡ High Concurrency — qwen3.7-max
Millisecond response, suitable for simple tasks like customer service and classification.
Token & Context Window
Understand billing units and context limits.
What is a Token
A Token is the basic unit of text processing for models:
1
English words ≈ 1 Token
1-2
Chinese characters ≈ 1-2 Tokens
usage
Actual token count returned per call
Context Window
The maximum number of tokens a model can process in one go = input + output + reasoning intermediate content.
⚠️ Warning
Exceeding the context limit may result in degraded response quality or errors.
Long Text Processing Strategies
- Use large-context models like glm-5.2.
- Process in segments and merge results.
- Use keyword search or an external retrieval service to retain relevant snippets.
- First extract key information via summarization.
Streaming Output
Real-time token-by-token output via SSE.
Enable Streaming Output
SSE Data Format
Thinking Mode
Let models that support this capability perform internal reasoning before output. The example uses deepseek-v4-pro.
Enable Thinking Mode
Note
Thinking Mode is available on models that support it, such as deepseek-v4-pro, glm-5.2, and qwen3.7-max; check the model capability configuration. In Thinking Mode, temperature and other parameters do not take effect.
Function Calling
Let the model call external tools and APIs to build agent applications.
How It Works
- Send request.Include user question and tool definitions.
- Model returns tool_calls.Function name and arguments.
- Execute tool.Get results.
- Return results.Call again to get the final answer.
Full Example
Best Practices
- Tool descriptions should be clear.Affects call accuracy.
- Control the number of tools.Too many can reduce quality.
- Principle of least privilege.
Multi-turn Conversation
Maintain a messages array for multi-turn contextual conversations.
Basic Usage
Message Role Types
| role | Description |
|---|---|
| system | System instruction (optional) |
| user | User input |
| assistant | Model response |
| tool | Tool execution result |
JSON Mode / Structured Output
Let the model return structured data conforming to JSON Schema.
Usage Example
Supported JSON Schema Types
| Code | Description |
|---|---|
| object | Nested object |
| string | String |
| number / integer | Number |
| array | Array |
| boolean | Boolean |
| enum | Enum |
Async Call
Use async client for concurrent requests to improve throughput in high-concurrency scenarios.
Python Async Example
💡 Tip
Suitable for batch processing. Make sure not to exceed model rate limits.
Web Search
Enable Web Search to let the model retrieve real-time information from the internet for the latest news and data.
Enable Web Search
Parameter Description
| Parameter | Code | Default | Description |
|---|---|---|---|
| enable_web_search | boolean | False | Whether to enable Web Search |
Use Cases
- Real-time information.Get the latest news, stock prices, weather, and other time-sensitive information.
- Fact-checking.Verify the accuracy of model responses.
- Resource supplement.Supplement knowledge beyond the training cutoff date.
Note
Web Search increases response latency. Only enable it when real-time information is needed. Search consumes additional tokens, which count toward your total usage.
Chat Completions API
Call large language models for chat completion.
Endpoint
POST https://api.tokenfab.cn/v1/chat/completionsRequest Parameters
| Parameter | Code | Required | Description |
|---|---|---|---|
| model | string | ✓ | Models ID |
| messages | array | ✓ | Message array |
| stream | boolean | — | Streaming Output |
| temperature | number | — | Sampling temperature |
| max_tokens | integer | — | Max output tokens |
| enable_web_search | boolean | — | Web Search |
| tools | array | — | Tool definitions |
| response_format | object | — | JSON Mode |
| enable_thinking | boolean | — | Thinking Mode, available on models that support it |
Request Example
Response Example
Models List API
Query currently available models.
Endpoint
GET https://api.tokenfab.cn/v1/modelsRequest Example
Response Example
Rate Limit & Concurrency
Rate limits are calculated at the account level.
Rate Limits (RPM / TPM)
| Models | RPM | TPM |
|---|---|---|
| glm-5.2 | 200 | 3,000,000 |
| deepseek-v4-pro | 15,000 | 1,200,000 |
| qwen3.7-plus | 30,000 | 5,000,000 |
| qwen3.7-max | 30,000 | 5,000,000 |
Note
For higher concurrency needs, contact technical support to upgrade. Exceeding limits returns HTTP 429.
Error Codes
Common error codes for API calls and troubleshooting methods.
Error Response Format
Common Error Codes
| HTTP | Code | Type | Description | Solution |
|---|---|---|---|---|
| 401 | invalid_api_key | Unauthorized | Invalid API Key | Check Authorization header |
| 403 | — | Forbidden | No Access | Check permissions |
| 404 | — | Not Found | Model Not Found | Check model name |
| 429 | — | Rate Limit | Rate Limited | Reduce frequency |
| 500 | — | Server Error | Server Error | Wait and retry |
FAQ
How to optimize costs?
Choose a model suitable for your task, reduce unnecessary context, set max_tokens appropriately, and use smaller models for testing during development.
How to handle long text?
Use large-context models like glm-5.2, process in segments and merge results, or use keyword search or an external retrieval service to retain relevant snippets.
Getting a 429 error?
Concurrency limit exceeded. Reduce call frequency, use exponential backoff retry, or request an upgrade.
Is there a billing difference between streaming and non-streaming?
No difference. Both are billed based on actual prompt_tokens + completion_tokens.
Environment variable not working?
Check: whether it's persisted in the config file, whether you restarted the IDE, and whether you used sudo.
Which programming languages are supported?
TokenFab API is compatible with the OpenAI SDK, so it supports Python, Node.js, Go, Java, and all languages with OpenAI SDKs. You can also call it directly via HTTP requests.
How to choose the right model?
For general tasks, use glm-5.2 (flagship, 1M context); for coding, use deepseek-v4-pro; for high-concurrency simple tasks, use qwen3.7-max. SeeModel Overview.
How is data security ensured?
API communication is fully encrypted via HTTPS. The platform does not store your request content for training. Data is only temporarily processed during inference. Keep your API Key secure and do not hardcode it in frontend code.
Which models support video generation?
Supports Vidu (viduq3-pro / viduq3-turbo) and HappyHorse (1.1-t2v / 1.1-i2v / 1.1-r2v) model series, covering Text-to-Video, Image-to-Video, Reference-to-Video and First-Last Frame to Video. Reference-to-Video uses HappyHorse 1.1-r2v. See Video Scenarios Overview.
LangChain Integration
TokenFab API integrates with LangChain through the OpenAI-compatible interface.
Chat Model
💡 Tip
Frameworks compatible with the OpenAI SDK, such as LlamaIndex and Semantic Kernel, can all be directly integrated.
Video Generation Scenarios
Learn about Text-to-Video (T2V), Image-to-Video (I2V), Reference-to-Video (R2V), and First-Last Frame to Video (FLF2V) to quickly understand the available video models on TokenFab, their use cases, input methods, and model selection.
Four Video Generation Modes
Text-to-Video
Input only a text prompt, and the model generates a complete video. Suitable for creative exploration without image assets.
Image-to-Video
Input an image + prompt to animate static scenes with camera movement and character actions.
Reference-to-Video
Reference images constrain characters/products/styles, reducing subject and style drift.
First-Last Frame to Video
First frame + last frame, the model fills in the intermediate transitions. Suitable for scene transitions and storyboard tweening.
Model-Scenario Support Matrix
| Models | T2V | I2V | R2V | FLF2V | Positioning |
|---|---|---|---|---|---|
| viduq3-pro | ✅ | ✅ | — | ✅ | Quality-focused |
| viduq3-turbo | ✅ | ✅ | — | ✅ | Speed-focused |
| happyhorse-1.1-t2v | ✅ | — | — | — | Text-to-Video focused |
| happyhorse-1.1-i2v | — | ✅ | — | — | Image-to-Video focused |
| happyhorse-1.1-r2v | — | — | ✅ | — | Reference-to-Video focused |
Choose a Scenario by Need
- No image assets, only text ideas → Text-to-Video T2V
- Have a product image/poster and want to animate it → Image-to-Video I2V
- Need to keep characters/products/brand style consistent → Reference-to-Video R2V
- Already designed the first and last frames, control the start and end → First-Last Frame to Video FLF2V
Text-to-Video T2V
Generate video from text prompts only. All video generation uses the unified POST /v1/videos endpoint to submit async tasks.
Create a Task with the Unified Endpoint
Mode Selection Rules
| Mode | Required Fields | Must Omit | Reference Models |
|---|---|---|---|
| Text-to-Video T2V | prompt | Omit input_reference, last_frame, reference_images | happyhorse-1.1-t2v, viduq3-turbo |
| Image-to-Video I2V | input_reference + prompt | Omit last_frame and reference_images | happyhorse-1.1-i2v |
| Reference-to-Video R2V | reference_images + prompt | Do not pass last_frame;1-9 images | happyhorse-1.1-r2v |
| First-Last Frame FLF2V | input_reference + last_frame + prompt | Do not combine with reference_images together | viduq3-turbo |
Unified Request Field Reference
| Field | Code | Purpose |
|---|---|---|
model | string | Required, use the model ID returned by /v1/models, e.g. happyhorse-1.1-t2v, viduq3-turbo |
prompt | string | Required, subject/scene/action/camera/style/lighting |
input_reference | string | I2V source image or FLF2V first frame, public URL or Base64 |
last_frame | string | FLF2V last frame |
reference_images | string[] | R2V reference image array |
seconds | string | Video duration in seconds, e.g. "3" |
size | string | Resolution, e.g. 720P, 1080P |
watermark | boolean | Watermark toggle |
negative_prompt | string | Description of content to avoid |
seed | integer | Reproducible random seed |
Async Lifecycle
1. Create
POST /v1/videos returns id
2. Poll
GET /v1/videos/{id}
3. Complete
status=completed
4. Download
GET /v1/videos/{id}/content
Poll Task Status
Note
Video generation tasks can take a long time. Creation is not idempotent - check for existing tasks first on network timeout, do not blindly retry POST.
Image-to-Video I2V
Input an image with a prompt to animate static scenes with camera movement, character actions, or environmental changes.
Create a Task with the Unified Endpoint
Integration Checklist
- Request structure: Pass
model+input_reference+prompt, omitlast_frameandreference_images. - Image requirements:Images should be clear with distinct subjects and minimal occlusion; describe camera movement direction and elements to preserve in the prompt.
- Image format:Only publicly accessible URLs or complete Base64 Data URLs are accepted. Do not use local paths or private network URLs.
Production Integration Tips
Polling Backoff
Start with 2-5 seconds, gradually back off, set a business timeout.
Idempotency & Tracking
Save the request ID and returned video_id; check logs first on timeout.
Security Boundaries
Do not expose API tokens on the frontend; control the expiration of public URLs.
Reference-to-Video R2V
Reference images serve as consistency constraints for subjects, products, styles, or compositions, generating new videos that match the reference. The key is reducing subject and style drift during generation.
Create a Task with the Unified Endpoint
Integration Checklist
- Request structure: Pass
model+reference_images+prompt,Omitlast_frame. - Number of images:HappyHorse supports 1-9 reference images; Vidu does not support Reference-to-Video.
- Prompt tips:Use [Image 1], [Image 2] to reference the order of reference images, specifying which elements must remain consistent and which can vary.
Key Differences
I2V focuses on animating the input image;R2V focuses on referencing the features of the input image,to generate new frames that remain consistent.
First-Last Frame to Video FLF2V
Provide both the first and last frames, and the model fills in the transition from A to B. Suitable for product transitions, pose changes, Before/After, and storyboard tweening.
Create a Task with the Unified Endpoint
Integration Checklist
- Request structure: Pass
model+input_reference+last_frame+prompt,Must not be used withreference_imagesat the same time. - Asset tips:The subject, style, and composition of the first and last frames should be as continuous as possible. If the frames differ significantly, describe the motion path in the prompt.
- Recommended models:ViduQ3-Pro (quality-focused) or ViduQ3-Turbo (speed-focused).