Skip to main content
POST
Generate text using AI

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Path Parameters

collection_id
string
required
Example:

"default"

Body

application/json
prompt
string
required
Example:

"Summarize the content of this video"

video_id
string
Example:

"m-12345"

model_name
string
Example:

"gpt-4"

max_tokens
integer
Example:

500

temperature
number
Example:

0.7

callback_url
string
Example:

"https://webhook.example.com/callback"

Response

200 - application/json

Text generation started or completed

success
boolean
Example:

true

status
enum<string>
Available options:
processing,
done,
failed
Example:

"processing"

data
object