Skip to content
Create a key

Paste a key to use it in the examples on these pages. The key stays in this browser tab. These pages never send it anywhere.

Create a streamer project

create_streamer_projectPOST/v1/projects/streamerBeta

Creates a streamer project from a clip you uploaded: a vertical video that follows the speaker, with a headline and captions.

Beta. This endpoint is supported and can gain new fields. If a change would break your code, we tell you before it takes effect and list it in the changelog.

About

Call it after complete_upload (POST /v1/uploads/{uploadId}/complete), with the id of the clip. The clip and its language are chosen here and only here: to use another clip, create another project. The headline, the captions, the framing and the vocabulary can be changed later with update_streamer_project (PATCH /v1/projects/{projectId}/streamer). Nothing is built and no credits are used until you call build_streamer_video (POST /v1/projects/{projectId}/streamer/build). Send an Idempotency-Key: a retry without one creates a second project.

Example use

A streamer's editor uploads a stream highlight and creates a project with a headline, captions and reframe set to face, so the vertical video follows the speaker. It checks the price with estimate_analysis (POST /v1/projects/{projectId}/analyze/estimate) before the build.

Endpoint

Code
POST https://api.gpt-video.com/v1/projects/streamer
  • Scope clips:write.
  • Rate limit 60 requests a minute for each key and 120 for each account, shared by every write call. See rate limits.
  • Idempotency-Key is optional.

Parameters

Headers

NameTypeRequiredDescription
Idempotency-KeystringOptionalSend the same key on every retry of this request. From 1 to 255 visible characters, such as a UUID. See idempotency.

Body

NameTypeRequiredDescription
sourceAssetIdstringRequiredThe clip to make vertical: the asset id that complete_upload (POST /v1/uploads/{uploadId}/complete) returned. It cannot be changed later. Matches ^ast_n?[0-9a-f]{20}$.
headlinestringRequiredThe line shown over the clip, up to 120 characters; "" for none. At most 120 characters.
languagestringRequiredThe language spoken in the clip: en, it, or auto to detect it. It cannot be changed later. One of auto, it, en.
captionStylestringRequiredThe caption style. get_setting_options (GET /v1/reference/setting-options) lists every style with what it looks like. One of bold-karaoke, word-pop, boxed, outline.
reframestringRequiredHow the video follows the speaker: face follows the face, center keeps the middle of the frame. One of face, center.
vocabularystringOptionalNames, brands and jargon the transcription should spell right, separated by commas. At most 311 characters. At most 311 characters.
titlestringOptionalA name for the project, shown in the GPT-Video app. Leave it out to get a default name. From 1 to 120 characters. Matches \S.

Send only the fields listed here. Any other field is refused with UNKNOWN_PARAMETER.

Request

Create a streamer project.

Request example
# Create the key once. Send this same key again if you retry this request.
IDEMPOTENCY_KEY=$(uuidgen)
curl -X POST "https://api.gpt-video.com/v1/projects/streamer" \
  -H "Authorization: Bearer $GPT_VIDEO_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sourceAssetId": "ast_8e21b0d94c6f4a17b358",
    "headline": "Watch the editor cut it",
    "language": "en",
    "captionStyle": "word-pop",
    "reframe": "face"
  }'
// Create the key once. Send this same key again if you retry this request.
const idempotencyKey = crypto.randomUUID();
const res = await fetch("https://api.gpt-video.com/v1/projects/streamer", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.GPT_VIDEO_API_KEY}`,
    "Idempotency-Key": idempotencyKey,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "sourceAssetId": "ast_8e21b0d94c6f4a17b358",
    "headline": "Watch the editor cut it",
    "language": "en",
    "captionStyle": "word-pop",
    "reframe": "face"
  }),
});
const data = await res.json();
console.log(data);
import os
import uuid

import requests

# Create the key once. Send this same key again if you retry this request.
idempotency_key = str(uuid.uuid4())
r = requests.post(
    "https://api.gpt-video.com/v1/projects/streamer",
    headers={
        "Authorization": f"Bearer {os.environ['GPT_VIDEO_API_KEY']}",
        "Idempotency-Key": idempotency_key,
    },
    json={
        "sourceAssetId": "ast_8e21b0d94c6f4a17b358",
        "headline": "Watch the editor cut it",
        "language": "en",
        "captionStyle": "word-pop",
        "reframe": "face"
    },
)
data = r.json()
print(data)
{
  "method": "tools/call",
  "params": {
    "name": "create_streamer_project",
    "arguments": {
      "sourceAssetId": "ast_8e21b0d94c6f4a17b358",
      "headline": "Watch the editor cut it",
      "language": "en",
      "captionStyle": "word-pop",
      "reframe": "face"
    }
  }
}

Response

A successful call answers HTTP 201. Returns a Project object in project.

Fields to check

NameTypeDescription
project.idstringThe project id. It starts with prj_.
project.statusstringdraft has not been analyzed yet, processing is being analyzed, ready has clips, failed means the last analysis failed and errorMessage says why.

Response example

HTTP 201
{
  "project": {
    "id": "prj_0c7f3a95e1d24b68a4f2",
    "kind": "streamer",
    "title": "Streamer clip",
    "status": "draft",
    "sourceAssetId": "ast_8e21b0d94c6f4a17b358",
    "compositionId": null,
    "settings": null,
    "missingSettings": [],
    "errorMessage": null,
    "splitScreen": null,
    "streamer": {
      "sourceAssetId": "ast_8e21b0d94c6f4a17b358",
      "headline": "Watch the editor cut it",
      "language": "en",
      "captionStyle": "word-pop",
      "reframe": "face",
      "vocabulary": null
    },
    "redditStory": null,
    "fakeText": null,
    "vibeEdit": null,
    "createdAt": "2026-09-01T11:00:00.000Z",
    "updatedAt": "2026-09-01T11:00:00.000Z"
  }
}
All response fields
NameTypeRequiredDescription
projectProject objectRequiredDescribed in Project object.
More examples

A clip that does not exist

POST /v1/projects/streamer

Request body
{
  "sourceAssetId": "ast_0b1e5c9d3a7f40628e2d",
  "headline": "",
  "language": "en",
  "captionStyle": "word-pop",
  "reframe": "center"
}
HTTP 404
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Asset ast_0b1e5c9d3a7f40628e2d not found",
    "hint": "Check the id. An id that belongs to another account is not found either.",
    "requestId": "req_0e5c8a2f7d1b43e96a0c5d28"
  }
}

A file that is not a video

POST /v1/projects/streamer

Request body
{
  "sourceAssetId": "ast_e8a35ed674148f27b585",
  "headline": "",
  "language": "en",
  "captionStyle": "word-pop",
  "reframe": "center"
}
HTTP 409
{
  "error": {
    "code": "CONFLICT",
    "message": "This asset is not a video. A streamer project needs a video clip.",
    "requestId": "req_7b2f9d4a1e6c05b38d7a2e40"
  }
}

Errors

CodeStatusWhenWhat to do
NOT_FOUND404A clip that does not existChange the request, then send it again.
CONFLICT409A file that is not a videoRead the resource again, then decide. Do not send the same request again.

Every call can also answer these errors. VALIDATION_FAILED, UNKNOWN_PARAMETER, UNAUTHORIZED, SCOPE_MISSING, IDEMPOTENCY_IN_PROGRESS, PAYLOAD_TOO_LARGE, IDEMPOTENCY_KEY_REUSED, RATE_LIMITED, INTERNAL, UNAVAILABLE.

Cost

No credits are used. The build is charged when you call build_streamer_video (POST /v1/projects/{projectId}/streamer/build).

Questions

Can I change the clip after creating the project?

No. The clip and its language are chosen when the project is created, because the price and the captions depend on them. To use another clip, create another project.

What does reframe do?

face makes the vertical video follow the face of the speaker, which is computed after the build; center keeps the middle of the frame. Change it with update_streamer_project (PATCH /v1/projects/{projectId}/streamer), then build again.

View as Markdown