Link to videos
Links
Lipsyncs
Lipsyncs v2
Custom Templates
Custom Template Videos
Text to Speech
AI Shorts
AI Editing
Avatar
Workspace
AI Scripts
Generate AI Scripts
API that generates AI-driven scripts based on either a URL or a combination of title and description. Generating AI scripts through this endpoint costs 1 credit.
POST
/
api
/
ai_scripts
/
Copy
Ask AI
curl --request POST \
--url https://api.creatify.ai/api/ai_scripts/ \
--header 'Content-Type: application/json' \
--header 'X-API-ID: <api-key>' \
--header 'X-API-KEY: <api-key>' \
--data '{
"url": "<string>",
"title": "<string>",
"description": "<string>",
"language": "ar",
"target_audience": "<string>",
"video_length": 15,
"script_styles": [
"BenefitsV2"
]
}'
Copy
Ask AI
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language": "ar",
"target_audience": "<string>",
"video_length": 15,
"script_styles": [
"BenefitsV2"
],
"generated_scripts": [
{
"paragraphs": "<string>",
"script_name": "<string>",
"script_style": "",
"title": "<string>"
}
],
"failed_reason": "<string>",
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"user": 123,
"workspace": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"slug": "<string>",
"title": "<string>",
"description": "<string>",
"image_urls": "<any>",
"video_urls": "<any>",
"image_selected": "<any>",
"video_selected": "<any>",
"reviews": "<any>",
"created_with": "link_to_video",
"logo_url": "<string>",
"price": "<string>",
"original_price": "<string>",
"promo_price": "<string>",
"use_promotional_info": true,
"highlight_features": "<string>",
"brand_info": "<string>",
"promotional_details": "<string>",
"trigger_insights": true,
"ai_summary": "<string>",
"ai_target_audiences": "<any>",
"ai_key_features": "<any>",
"ai_keywords": "<any>",
"updated_at": "2023-11-07T05:31:56Z"
},
"credits_used": 123
}
Authorizations
API ID, from your settings page.
API Key, from your settings page.
Body
Response
201 - application/json
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://api.creatify.ai/api/ai_scripts/ \
--header 'Content-Type: application/json' \
--header 'X-API-ID: <api-key>' \
--header 'X-API-KEY: <api-key>' \
--data '{
"url": "<string>",
"title": "<string>",
"description": "<string>",
"language": "ar",
"target_audience": "<string>",
"video_length": 15,
"script_styles": [
"BenefitsV2"
]
}'
Copy
Ask AI
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"language": "ar",
"target_audience": "<string>",
"video_length": 15,
"script_styles": [
"BenefitsV2"
],
"generated_scripts": [
{
"paragraphs": "<string>",
"script_name": "<string>",
"script_style": "",
"title": "<string>"
}
],
"failed_reason": "<string>",
"status": "pending",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"user": 123,
"workspace": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"slug": "<string>",
"title": "<string>",
"description": "<string>",
"image_urls": "<any>",
"video_urls": "<any>",
"image_selected": "<any>",
"video_selected": "<any>",
"reviews": "<any>",
"created_with": "link_to_video",
"logo_url": "<string>",
"price": "<string>",
"original_price": "<string>",
"promo_price": "<string>",
"use_promotional_info": true,
"highlight_features": "<string>",
"brand_info": "<string>",
"promotional_details": "<string>",
"trigger_insights": true,
"ai_summary": "<string>",
"ai_target_audiences": "<any>",
"ai_key_features": "<any>",
"ai_keywords": "<any>",
"updated_at": "2023-11-07T05:31:56Z"
},
"credits_used": 123
}
Assistant
Responses are generated using AI and may contain mistakes.