Generate text using AI

post/collection/{collection_id}/generate/text/

Path parameters

collection_idstring required
Example:default

Request body

OR

Example request

{
  "prompt": "Summarize the content of this video",
  "prompt_url": "https://storage.googleapis.com/.../generate_text_prompt_123abc.txt",
  "video_id": "m-12345",
  "model_name": "Qwen/Qwen3.5-27B",
  "sandbox_id": "bx-123abc",
  "max_tokens": 500,
  "temperature": 0.7,
  "callback_url": "https://webhook.example.com/callback"
}

Response

Text generation started or completed

OR

Example response

{
  "success": true,
  "status": "processing",
  "data": {
    "id": "job-123",
    "output_url": "https://api.videodb.io/async-response/job-123"
  }
}

Changes

Changed in 1 of the 5 revisions of this API.5

    • added the new optional request property model_config

      new-optional-request-property

    • added the new optional request property prompt_url

      new-optional-request-property

    • added the new optional request property sandbox_id

      new-optional-request-property

    • added subschema #1 subschema #2 to the request body oneOf list

      request-body-one-of-added

    • the request property prompt became optional

      request-property-became-optional