VideoDB icon

VideoDB

Interact with the VideoDB API

Generate Text

AI-generated

Summary

Generate text from a prompt using AI models within a specified collection.

Inputs

  • Collection Name or ID (required) — Select the collection by name or ID, fetched dynamically via getCollections method.
  • Prompt (required) — Text prompt used to generate the AI-generated text output.
  • Model Name (required) — Select the AI model variant to use, options include Basic, Pro, or Ultra.
  • Response Type (required) — Choose the format of the generated response: plain text or JSON.

Output shape

a single JSON object containing the generated text or data as per the selected response_type

No pagination. The result includes the AI-generated response based on the prompt and selected model. Errors return an error message in JSON format.

Examples

Example 1: Generate a basic AI-generated text response for a given collection using a prompt and receive the output as plain text.

Set Collection Name or ID to target collection, enter the prompt text, choose 'Basic' model, and set Response Type to 'Text'.

Links

Discussion