package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.krea.ai/generate/video/alibaba/wan-3.0-prime"
payload := strings.NewReader("{\n \"prompt\": \"Snow-clad village, its tranquility disrupted by mech battles, in the style of mecha anime.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://api.krea.ai/generate/video/alibaba/wan-3.0-prime")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"Snow-clad village, its tranquility disrupted by mech battles, in the style of mecha anime.\"\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.krea.ai/generate/video/alibaba/wan-3.0-prime")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"Snow-clad village, its tranquility disrupted by mech battles, in the style of mecha anime.\"\n}"
response = http.request(request)
puts response.read_body
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.krea.ai/generate/video/alibaba/wan-3.0-prime"
payload := strings.NewReader("{\n \"prompt\": \"Snow-clad village, its tranquility disrupted by mech battles, in the style of mecha anime.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.post("https://api.krea.ai/generate/video/alibaba/wan-3.0-prime")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"Snow-clad village, its tranquility disrupted by mech battles, in the style of mecha anime.\"\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.krea.ai/generate/video/alibaba/wan-3.0-prime")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"Snow-clad village, its tranquility disrupted by mech battles, in the style of mecha anime.\"\n}"
response = http.request(request)
puts response.read_body
These aliases are accepted for compatibility only and are not shown in the request schema.
Deprecated
Use instead
Accepted until
startImage
start_image
2026-06-19
aspectRatio
aspect_ratio
2026-06-19
generateAudio
generate_audio
2026-06-19
enablePromptExpansion
enable_prompt_expansion
2026-06-19
endImage
end_image
2026-06-19
referenceImages
reference_images
2026-06-19
referenceVideos
reference_videos
2026-06-19
referenceVideoSeconds
reference_video_seconds
2026-06-19
referenceAudios
reference_audios
2026-06-19
Authorizations
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
X-Webhook-URL
string<uri>
URL to receive a POST request when the job completes. The webhook will receive the job data including results. Deliveries are signed with Ed25519 (EdDSA); verify them with the keys at https://api.krea.ai/.well-known/jwks.json (see X-Krea-Webhook-* headers). Treat requests without these headers as unauthenticated.
Body
application/json
prompt
string
required
Required string length: 1 - 5000
start_image
string<uri> | null
Can be an external URL, base64 data URI, or uploaded asset URL.
Maximum string length: 1024
aspect_ratio
enum<string>
default:adaptive
Available options:
adaptive,
16:9,
4:3,
1:1,
3:4,
9:16
resolution
enum<string>
default:720p
Available options:
480p,
720p,
1080p
duration
integer
default:5
Required range: 2 <= x <= 30
seed
integer
Required range: 0 <= x <= 2147483647
generate_audio
boolean
default:true
enable_prompt_expansion
boolean
default:true
end_image
string<uri> | null
Can be an external URL, base64 data URI, or uploaded asset URL.
Maximum string length: 1024
reference_images
string<uri>[]
Maximum array length: 10
Can be an external URL, base64 data URI, or uploaded asset URL.
Maximum string length: 1024
reference_videos
string<uri>[]
Maximum array length: 5
Can be an external URL, base64 data URI, or uploaded asset URL.
Maximum string length: 1024
reference_video_seconds
number
Required range: 0 <= x <= 15
reference_audios
string<uri>[]
Maximum array length: 5
Can be an external URL, base64 data URI, or uploaded asset URL.
Maximum string length: 1024
Response
The resulting job data. This will be returned in a pending state until the job is completed. See /jobs/{id} for retrieving the results.