TubeOnAITubeOnAIDevelopers
Skip to Content
TubeOnAITubeOnAIDevelopers

Add sources to the library

POST
/v1/ai/library

Authorization

bearerAuth
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
allow_paid_transcription?boolean

Paid speech-to-text for videos without captions. Only after the user's explicit yes to the quoted cost.

urls*array<string>

1 to 20 YouTube, article or public document URLs.

Response Body

application/json
  1. response
items*array<>
Example Request
curl -X POST 'https://beta.app.tubeonai.com/v1/ai/library' \  -H 'Content-Type: application/json' \  -d '{  "urls": [    "string"  ]}'
Example Response
{  "items": [    {      "error": {        "code": "string",        "details": {},        "message": "string",        "retry_after_sec": 0,        "retryable": true      },      "failure_reason": "string",      "id": "string",      "retry_after_sec": 0,      "status": "ready",      "url": "string"    }  ]}