Generate video
video_generateStart generating a video from a text prompt — or from an image, with an image-to-video model — with an AIMLAPI video model. For images use image_generate, for music audio_generate. Billed to your AIMLAPI balance at the model's price, usually per second of video (see model_get). Returns at once with job_id, kind, model and status "processing": generation takes minutes, so check it with job_status and, once it is "complete", fetch the video URL with job_result. The same request again within 24 hours returns the job already started instead of a second billed generation; send a new idempotency_key to generate again on purpose.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"prompt": "<prompt>"
},
"name": "video_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | AIMLAPI video model id or alias, e.g. "kling-video/v1.6/standard". Find others with models_list (modality "video") or jev_model_search. | |
| params | No | Model-specific request fields, sent to the model as they are, e.g. { "duration": 5, "resolution": "720p", "aspect_ratio": "16:9" }, or { "image_url": "https://…" } for an image-to-video model. Field names and allowed values differ by model: see its API reference on docs.aimlapi.com. | |
| prompt | Yes | What happens in the video, in plain words. | |
| idempotency_key | No | Optional key that makes a resubmit safe: the same key returns the same job without starting (or charging) a second generation. Without a key, the same request within 24 hours is deduplicated the same way; send a new key to generate again on purpose. |