# Video generation API

Let your agent make the clip.

Request a short Sora 2 clip through StableStudio. Check the existing job until it finishes, then retrieve the video.



Provider in the worked example: StableStudio · Sora 2.

Price shown for this route: 40¢ for 4 seconds.



## What it can do

### Generate a video from text

Describe a shot for Sora 2. Choose 4, 8 or 12 seconds and landscape or portrait at 720p. The provider returns a job to poll.

Price: Priced per request.

### Supply a reference image

Optionally include an image URL with your prompt. The provider supports cropping the reference to the requested aspect ratio.

Price: Priced per request.

### Check a generation job

Poll the returned job URL until it completes or fails. Starting another generation is a separate paid request.

Price: Free in the test run.


## A real example

Tested on 2026-09-22 through StableStudio · Sora 2.

One paid call from our own test run.

Your agent asked: Make a 4-second video of a red paper rectangle sliding across a cream desk

Returned in this test:

- Initial response: Pending job
- Final status: Complete, with a video URL

Charged in this test: $0.40.

The job completed and returned a video URL.


## Try the API request

Use your TaskFuel API key as TASKFUEL_API_KEY in your terminal or server. Keep it out of browser code.

### 1. Check the price

This request checks the price without paying. The prompt is shortened from the test above; the four-second, 720p settings match. Quote your exact prompt before paying.

```sh
curl --fail-with-body https://app.taskfuel.ai/v1/call \
  -H "Authorization: Bearer $TASKFUEL_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'TASKFUEL_REQUEST'
{
  "url": "https://stablestudio.dev/api/generate/sora-2/generate",
  "method": "POST",
  "body": {
    "prompt": "A red paper rectangle sliding across a cream desk.",
    "seconds": "4",
    "size": "1280x720"
  },
  "dryRun": true
}
TASKFUEL_REQUEST
```

### 2. Run the request

Review amount_usd in the quote. To pay and run, change dryRun to false and add maxAmountUsd with that approved amount inside the same JSON object. Keep the inputs unchanged; this limit applies to one call.

### 3. Read the result

The first response contains a pending job and pollUrl. Send that URL through TaskFuel’s /v1/call with method GET and no body. Check until complete or failed, then read result.videoUrl. Polls were free in this test; confirm the current price. Do not resubmit a pending generation.

[Open the test video](https://wgunica1uhl5nijm.public.blob.vercel-storage.com/generated/videos/c6735b59-b542-4d8b-b5a7-2fdaf1d57eb7.mp4)

[Setup and API reference](https://taskfuel.ai/docs/) · [Job polling and timeout recovery](https://app.taskfuel.ai/using.md)


## Connect your agent

Read the [setup guide](https://taskfuel.ai/docs/setup/) and choose the connection your agent supports.

Use one TaskFuel account and prepaid balance. Inspect the provider and request quote before a paid call, then review the returned response and recorded charge.



## When to use it

### Make one short shot.

Describe the subject and motion your post needs. Review the clip before publishing it with your launch copy.

### Try a motion idea.

Use a short generation to test the shot. Your agent shows the price before you pay for another version.

### Start from a reference.

Supply an image you have permission to use and describe the motion. Check the output for changes to details that matter.




## Questions

### How does video generation work?

Your agent submits a prompt to StableStudio and receives a job ID and polling URL. It checks that job until the provider reports completion or failure. Submission alone does not mean the video is ready.

### What does a video cost?

Our four-second Sora 2 video at 1280 × 720 cost $0.40 on 22 September 2026. Duration and settings change the price. Your agent shows the price for your own request before it pays.

### Which formats can I request?

The checked Sora 2 endpoint accepts 4, 8 or 12 seconds, at 1280 × 720 landscape or 720 × 1280 portrait. It also accepts an optional reference image URL.

### Do I need a separate video subscription?

No. Your agent pays from your TaskFuel balance, so there is nothing else to sign up for.

### What if a video job is still pending?

Ask your agent to check the existing job URL. Submitting the same prompt again starts another paid generation. An accepted job can still fail later; keep the charge and final job status separate.

### Can I publish the generated clip?

Check the provider terms and review the clip for your intended use. TaskFuel does not grant rights to reference images or third-party material in an output.

### How do I let my agent make videos?

Sign in to TaskFuel, copy the connection prompt into your agent and approve it. Then describe the clip you want; the price appears before it runs.

## Related tool guides

- [Compare fal.ai and other generation access options](https://taskfuel.ai/tools/fal-ai-alternative/)
- [Make the reference image](https://taskfuel.ai/tools/image-generation/)
- [Generate a music track](https://taskfuel.ai/tools/generate-music/)


## Reference

- [Read this guide on the website](https://taskfuel.ai/tools/video-generation/).
- [Browse providers and capabilities](https://taskfuel.ai/catalog/).
- [Pricing](https://taskfuel.ai/pricing/).
- [Agent instructions](https://taskfuel.ai/llms.txt).
