# Vidu Vidu Q3 Turbo — Text To Video > Access the affordable Vidu Q3 Turbo API from $0.032/s. Generate 1–16s text-, image-, start/end-, or reference-led videos up to 1080p with native audio. ## Overview - **Endpoint**: `POST https://gptproto.com/api/v3/vidu/viduq3-turbo/text-to-video` - **Result URL**: `GET https://gptproto.com/api/v3/predictions/{result_id}/result` — the submit response also returns the authoritative URL in `data.urls.get` - **Model ID**: `viduq3-turbo` - **Vendor**: Vidu - **Scene**: `text-to-video` - **Category**: text-to-video - **Modalities**: input text → output video - **Playground**: https://gptproto.com/model/vidu/viduq3-turbo - **API documentation**: https://docs.gptproto.com/docs/allapi/Vidu/viduq3-turbo/gptproto-format/text-to-video - **Other scenes of this model**: `image-to-video`, `start-end-frame` — same auth, different endpoint path and input schema ## Authentication Every request needs a GPTProto API key in the `Authorization` header. Create one at https://gptproto.com/dashboard/api-key, then export it: ```bash export GPTPROTO_API_KEY="your-api-key" ``` Header: `Authorization: Bearer $GPTPROTO_API_KEY` (plus `Content-Type: application/json` on POST). ## Pricing Platform price by tier (USD, already includes the GPTProto discount): - **1080p** — $0.056 per second - **540p** — $0.032 per second - **720p** — $0.048 per second Price range: $0.032 – $0.896 per generation. Prices may change. The model page always shows the live price: https://gptproto.com/model/vidu/viduq3-turbo ## API Information The API is asynchronous: POST the endpoint to create a prediction, then poll its result URL until `status` is `completed` or `failed`. ### Input Schema The endpoint accepts the following JSON body parameters: - **`prompt`** (`string`, _required_): The positive prompt for the generation. - **`style`** (`enum`, _optional_): The style of output video. - Default: `general` - Options: general, anime - **`resolution`** (`enum`, _optional_): The resolution of the generated media. - Default: `720p` - Options: 540p, 720p, 1080p - **`duration`** (`range`, _optional_): The duration of the generated media in seconds. - Default: `5` - Range: 1–16 - **`aspect_ratio`** (`enum`, _optional_): The aspect ratio of the generated media. - Default: `4:3` - Options: 16:9, 9:16, 4:3, 3:4, 1:1 - **`movement_amplitude`** (`enum`, _optional_): The movement amplitude of objects in the frame. Defaults to auto, accepted value: auto small medium large. - Default: `auto` - Options: auto, small, medium, large - **`audio`** (`enum`, _optional_): Whether to generate audio. - Default: `true` - Options: yes, no - **`bgm`** (`enum`, _optional_): The background music for generating the output. - Default: `true` - Options: true, false - **`seed`** (`range`, _optional_): The random seed to use for the generation. 1 means a random seed will be used. - Default: `1` - Range: 1–2147483647 **Required Parameters Example**: ```json { "prompt": "A tiny origami fox sailing a teacup across a moonlit puddle" } ``` **Full Example**: ```json { "prompt": "A tiny origami fox sailing a teacup across a moonlit puddle", "style": "general", "resolution": "720p", "duration": 5, "aspect_ratio": "4:3", "movement_amplitude": "auto", "audio": true, "bgm": true, "seed": 1 } ``` ### Output Schema Both submit and poll return the same envelope: - **`data.id`** (`string`): Prediction id. Use it as `result_id` when polling for the result. - **`data.status`** (`string`): One of `created`, `running`, `completed`, `failed`. See Status Values below. - **`data.outputs`** (`array of string`): Generated files. Empty until `status` is `completed`; then it holds the output URLs (or base64 strings when the model exposes a base64 option). - **`data.urls.get`** (`string`): Authoritative result URL for this prediction. Prefer it over building the poll URL yourself. - **`data.error`** (`string | null`): Failure reason when `status` is `failed`, otherwise `null`. - **`data.executionTime`** (`integer`): Total processing time in milliseconds. - **`data.timings.inference`** (`integer`): Model inference time in milliseconds. - **`data.hasNsfwContents`** (`array of boolean`): Per-output moderation flags. - **`message`** (`string`): `success` on a normal response, otherwise the error message. - **`code`** (`integer`): Business status code. `200` means the request was accepted. **Example Response — submit (task accepted)**: ```json { "data": { "id": "pred_example_01", "model": "viduq3-turbo", "outputs": [], "urls": { "get": "https://gptproto.com/api/v3/predictions/pred_example_01/result" }, "hasNsfwContents": [], "status": "created", "createdAt": "2026-01-01T12:00:00Z", "executionTime": 0, "timings": { "inference": 0 } }, "message": "success", "code": 200 } ``` **Example Response — poll (completed)**: ```json { "data": { "id": "pred_example_01", "model": "viduq3-turbo", "outputs": [ "https://oss-us.gptproto.com/example/output.mp4" ], "urls": { "get": "https://gptproto.com/api/v3/predictions/pred_example_01/result" }, "status": "completed", "error": null, "executionTime": 12345, "timings": { "inference": 12000 }, "has_nsfw_contents": [], "created_at": "2026-01-01T12:00:00Z" }, "message": "success", "code": 200 } ``` ### Status Values - `created` — Task accepted. Use `data.id` as `result_id` for polling. - `running` — Generation is in progress. Keep polling. - `completed` — Finished successfully. Generated files are in `data.outputs`. - `failed` — Generation failed. Read `data.error` for the reason. ## Usage Examples ### 1. Submit a request ```bash curl --request POST "https://gptproto.com/api/v3/vidu/viduq3-turbo/text-to-video" \ --header "Authorization: Bearer $GPTPROTO_API_KEY" \ --header "Content-Type: application/json" \ --data '{ "prompt": "A tiny origami fox sailing a teacup across a moonlit puddle", "style": "general", "resolution": "720p", "duration": 5, "aspect_ratio": "4:3", "movement_amplitude": "auto", "audio": true, "bgm": true, "seed": 1 }' ``` ```python import os import requests url = "https://gptproto.com/api/v3/vidu/viduq3-turbo/text-to-video" headers = { "Authorization": f"Bearer {os.environ['GPTPROTO_API_KEY']}", "Content-Type": "application/json" } payload = { "prompt": "A tiny origami fox sailing a teacup across a moonlit puddle", "style": "general", "resolution": "720p", "duration": 5, "aspect_ratio": "4:3", "movement_amplitude": "auto", "audio": True, "bgm": True, "seed": 1 } response = requests.request("POST", url, headers=headers, json=payload) print(response.json()) ``` ```typescript const response = await fetch("https://gptproto.com/api/v3/vidu/viduq3-turbo/text-to-video", { method: "POST", headers: { "Authorization": `Bearer ${process.env.GPTPROTO_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ prompt: "A tiny origami fox sailing a teacup across a moonlit puddle", style: "general", resolution: "720p", duration: 5, aspect_ratio: "4:3", movement_amplitude: "auto", audio: true, bgm: true, seed: 1, }), }); const data = await response.json(); console.log(data); ``` ### 2. Poll until the task finishes Replace `YOUR_RESULT_ID` with `data.id` from the submit response (or call `data.urls.get` directly), and keep polling every 1–3 seconds while `status` is `created` or `running`. ```bash result_id="YOUR_RESULT_ID" curl --request GET "https://gptproto.com/api/v3/predictions/$result_id/result" \ --header "Authorization: Bearer $GPTPROTO_API_KEY" ``` ```python import os import requests result_id = "YOUR_RESULT_ID" url = f"https://gptproto.com/api/v3/predictions/{result_id}/result" headers = { "Authorization": f"Bearer {os.environ['GPTPROTO_API_KEY']}" } response = requests.request("GET", url, headers=headers) print(response.json()) ``` ```typescript const result_id = "YOUR_RESULT_ID"; const response = await fetch(`https://gptproto.com/api/v3/predictions/${result_id}/result`, { method: "GET", headers: { "Authorization": `Bearer ${process.env.GPTPROTO_API_KEY}`, }, }); const data = await response.json(); console.log(data); ``` ## Example Prompts - A woman sits at a café table writing a letter. As each word flows from her pen, the ink lifts off the paper and forms tiny animated scenes floating above the page — a miniature couple dancing, a train crossing a bridge, a house with smoke rising from its chimney. Her tears fall o… - A massive generation ship drifts through a nebula of purple and gold gas clouds. Camera slowly pushes through the ship's cracked observation window into the interior, revealing an overgrown biodome where trees have overtaken the corridors and deer graze between rusted control pan… - A little girl chases a glowing golden butterfly through a field of sunflowers that gradually transform into a fantastical underwater coral reef. She starts swimming instead of running, her dress flowing like jellyfish tentacles. Bioluminescent fish swirl around her. The transitio… ## HTTP Status Codes - `400` — malformed body, a parameter or value this model does not accept, or input blocked by the provider's content moderation - `401` — missing or invalid API key - `403` — insufficient credits - `413` — request body too large - `429` — rate limited; retry with backoff - `500` — An internal server error occurred - `502` — An internal server error occurred - `504` — Gateway timeout — upstream service did not respond in time; retry later ## Additional Resources - [Model playground](https://gptproto.com/model/vidu/viduq3-turbo) - [API documentation](https://docs.gptproto.com/docs/allapi/Vidu/viduq3-turbo/gptproto-format/text-to-video) - [All models](https://gptproto.com/model) - [API keys](https://gptproto.com/dashboard/api-key) - [Platform overview for LLMs](https://gptproto.com/llm-full.txt) - Any other model: `https://gptproto.com/model/{vendor}/{model}/{scene}/llms.txt`