Create a video
Render a world with Goth-1 — from a prompt (text to video) or from a first frame plus a prompt (image to video).
Send image_url to render from a first frame; leave it out to render from text alone. The request returns a job immediately with status 202.
Body parameters
modelstringrequiredgoth-1.promptstringrequiredimage_urlstringoptionallast_image_urlstringoptionaldurationintegeroptional3–15. Default 5.resolutionstringoptional480p, 540p, 768p or 1080p. Default 768p.aspect_ratiostringoptional16:9, 9:16, 1:1, 4:3, 3:4, 21:9 or 9:21. Default 16:9. Not allowed with image_url.seedintegeroptional0–2147483647) to reproduce a render. Omit or send -1 for a random seed.prompt_expansionbooleanoptionaltrue.Unknown parameters and out-of-range values are rejected with 400 invalid_parameter — nothing is charged. Media URLs must be public HTTPS links to the file itself; private, local and redirecting addresses are refused with 400 invalid_media.
Pricing
Each job is priced live from its resolution, duration and inputs and charged in credits (100 credits = $1) from the key owner’s balance when the job is created. The charge is returned as credits on the job. If the balance is too low the request fails with 402 insufficient_credits and nothing is created. A job that fails is refunded in full, once, and shows refunded: true.
Text to video
curl https://api.goth.video/v1/videos/generations \
-H "Authorization: Bearer $GOTH_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 7d1c4e2a-render-001" \
-d '{
"model": "goth-1",
"prompt": "Candlelit bedroom, two adults, slow push-in, quiet breathing, rain outside",
"duration": 10,
"resolution": "768p",
"aspect_ratio": "16:9"
}'Image to video
curl https://api.goth.video/v1/videos/generations \
-H "Authorization: Bearer $GOTH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "goth-1",
"image_url": "https://example.com/first-frame.jpg",
"prompt": "She walks toward camera down the red-lit corridor, heels on carpet",
"duration": 5,
"resolution": "768p",
"seed": 42
}'Response
{
"id": "job_5f0e2c1a-8b7d-4e43-9a51-2f6c0d9b1e77",
"object": "job",
"type": "video.generation",
"model": "goth-1",
"status": "queued",
"created_at": "2026-12-01T12:00:00.000Z",
"completed_at": null,
"input": {
"mode": "text-to-video",
"prompt": "Candlelit bedroom, two adults, slow push-in, quiet breathing, rain outside",
"duration": 10,
"resolution": "768p",
"aspect_ratio": "16:9",
"prompt_expansion": true
},
"credits": 96,
"refunded": false,
"output": null,
"error": null
}output.url on the finished job. Download files you want to keep; stored outputs are not kept indefinitely.