Agnes Video 2.5 is now available on the international site and uses an asynchronous video generation API. First call
POST /v1/videos to create a task, then use the returned video_id with GET /agnesapi?video_id=<VIDEO_ID>&model_name=agnes-video-2.5 to retrieve progress and results. See “Billing” below for prices and billing rules.Model ID
agnes-video-2.5Create Task
POST /v1/videosRetrieve Task
GET /agnesapi?video_id=<VIDEO_ID>&model_name=agnes-video-2.5Pricing
720P:
$0.025 / second; 960P: $0.040 / second; 2K: $0.055 / second.Core Capabilities
Text-to-video
Generate videos with subject motion, scene dynamics, and camera movement from a text prompt.
First and Last Frame Control
Constrain the composition and transition with a first frame, a last frame, or both.
Multimodal References
Use images, audio, and videos as content, style, rhythm, or motion references.
Video-to-video Reference
Continue or reinterpret motion, visual appearance, and timing from a reference video.
Audio-visual Coordination
Use audio or a video soundtrack as a reference to improve rhythm and audio-visual consistency.
Multiple Aspect Ratios
Generate landscape, portrait, square, and ultrawide video outputs.
Quickstart
1. Get an API Key
Create an API key in the Agnes AI platform. Store and use the key only on your server. Never expose it in frontend code or a public repository.2. Set the Base URL
International Base URL:3. Create a Video Task
video_id from the create response. id and task_id identify the asynchronous task, while video_id is used to retrieve progress and results.
4. Retrieve the Result
model_name for every mode. Poll every 1–2 seconds until status becomes completed or failed. When the task is complete, use metadata.url to play or download the video.
API Reference
Create a Video Task
Common Request Parameters
Mode-specific Parameters
All media URLs must be publicly reachable by the Agnes AI service. Avoid URLs that require authentication, point to a private network, or expire before the task finishes.
Generation Mode Rules
Reference Video Objects
Each object in thevideos array supports these fields:
When
require_audio is false, a reference video may omit audio. If it contains an audio track, the audio can also participate as a reference. When set to true, the source must contain an audio track or the request fails.
Request Examples
- Text-to-video
- First and Last Frames
- Image Reference
- Image and Audio References
- Video Reference
<Picture N>, <Audio N>, and <Video N> are numbered independently, starting from 1 in their respective arrays. For example, refer to the second item in images as <Picture 2>.Create Response
Retrieve a Task
- By video_id + model_name (Recommended)
- By video_id (text mode only)
text, keyframe, and reference modes and is the recommended polling method for Agnes Video 2.5.Python SDK Example
Passmode, aspect_ratio, and media fields through extra_body; the SDK merges them into the top level of the request JSON.
Video Size and Aspect Ratio
size selects the output resolution tier and accepts "720P", "960P", or "2K". Use aspect_ratio to select the frame shape. WIDTHxHEIGHT and auto are not supported.
The following table shows pixel examples for the 720P tier. The 960P and 2K tiers produce higher-resolution video in the selected
aspect_ratio; use the API response as the source of truth for the actual width and height.
Parameter Restrictions
The following parameters and request patterns are not supported and return400:
- Passing reference videos through
video_url,video_path, orvideo_reference; usevideos[].urlinstead. - Passing media through
input_referenceorreference_url; usefirst_frame,last_frame,images,audios, orvideosaccording to the selected mode. - Sending non-configurable fields such as
width,height,fps,num_frames,quality, ornum_inference_steps. - Passing pixel dimensions such as
1280x720directly insize, or a value other than"720P","960P", or"2K"; select the resolution tier withsizeand the frame shape withaspect_ratio. - Setting
aspect_ratiotoautoor a value outside the supported list. - Setting
nto any value other than1. - Using media fields that conflict with
mode, or usingreferencewithout any reference media.
Error Handling
Failed task example:
Prompting Recommendations
For more consistent results, structure the prompt in this order:- Subject and setting: Specify the people, objects, environment, and time.
- Action and change: Describe how the subject moves and how the scene evolves.
- Camera language: Specify push, pull, pan, tilt, tracking, fixed camera, or shot size.
- Visual style: Add lighting, color, material, realism, and atmosphere.
- Sound and rhythm: Describe ambient sound or action sounds, or reference an audio input.
- Consistency requirements: State which character, product, or composition details must remain unchanged.
Integration Checklist
- Use the model ID
agnes-video-2.5. - Use
https://apihub.agnes-ai.com/v1as the Base URL. - Save
video_idfrom the create response;idandtask_ididentify the asynchronous task. - For every mode, use
GET /agnesapi?video_id=<VIDEO_ID>&model_name=agnes-video-2.5until the status iscompletedorfailed. Avideo_idquery withoutmodel_nameis valid only formode: "text". - Keep all media URLs publicly accessible until the task completes.
- Pass
secondsas a string from"4"–"12"and setnto1. - Set
sizeto"720P","960P", or"2K"and use a supportedaspect_ratio. - Never expose your API key in logs, client-side code, or public repositories.
Billing
Agnes Video 2.5 is billed by output resolution and output duration. The first 5 input images are free; each input image from the 6th onward costs
$0.005.Prices
Billing formula
The output resolution unit price is based on the requested
size: 720P is $0.025 / second, 960P is $0.040 / second, and 2K is $0.055 / second.