Quickstart Guide
FreshPurpose
Get from zero to your first Creatify API call in under 5 minutes. This guide covers obtaining API credentials, checking your credit balance, and generating your first video.
Prerequisites
- A Creatify account with an active plan at creatify.ai
- API access enabled on your account
curlor any HTTP client (Postman, Insomnia, etc.)
Procedure
Step 1: Get Your API Credentials
- Log in to your Creatify dashboard
- Navigate to Settings then API
- Copy your API ID and API Key
- Store them securely (environment variables recommended)
export CREATIFY_API_ID="your-api-id-here"
export CREATIFY_API_KEY="your-api-key-here"Step 2: Verify Your Credentials by Checking Credits
curl --request GET \
--url https://api.creatify.ai/api/workspace/remaining_credits/ \
--header "X-API-ID: $CREATIFY_API_ID" \
--header "X-API-KEY: $CREATIFY_API_KEY"Expected response:
{
"remaining_credits": 150
}TIP
If you receive a 401 or 403 error, double-check your API ID and API Key values. They are case-sensitive.
Step 3: Create a Link Object
Before generating a URL-to-video, create a link from a webpage URL. Creatify scrapes the page to extract product information.
curl --request POST \
--url https://api.creatify.ai/api/links/ \
--header "Content-Type: application/json" \
--header "X-API-ID: $CREATIFY_API_ID" \
--header "X-API-KEY: $CREATIFY_API_KEY" \
--data '{
"url": "https://www.example.com/product-page"
}'Expected response:
{
"id": "abc123-link-id",
"url": "https://www.example.com/product-page",
"title": "Product Name",
"description": "Product description extracted from page...",
"media": ["https://...image1.jpg", "https://...image2.jpg"]
}Save the id value -- you will need it for the next step.
Step 4: Generate a Video Preview
Use the link ID to create a URL-to-video task with a preview (1 credit/30s instead of 5):
curl --request POST \
--url https://api.creatify.ai/api/url_to_videos/ \
--header "Content-Type: application/json" \
--header "X-API-ID: $CREATIFY_API_ID" \
--header "X-API-KEY: $CREATIFY_API_KEY" \
--data '{
"link_id": "abc123-link-id",
"aspect_ratio": "9:16"
}'Expected response:
{
"id": "video-task-id-123",
"status": "pending",
"aspect_ratio": "9:16"
}Step 5: Poll for Completion
The video generation is asynchronous. Poll the task status:
curl --request GET \
--url https://api.creatify.ai/api/url_to_videos/video-task-id-123/ \
--header "X-API-ID: $CREATIFY_API_ID" \
--header "X-API-KEY: $CREATIFY_API_KEY"Poll every 5-10 seconds. Status progression:
| Status | Meaning |
|---|---|
pending | Task is queued |
processing | Video is being generated |
done | Video is ready for download |
failed | Generation failed (check failed_reason) |
Step 6: Download Your Video
When status is done, the response includes an output field with the video URL:
{
"id": "video-task-id-123",
"status": "done",
"output": "https://cdn.creatify.ai/videos/output-video.mp4",
"duration": 30
}Download the video from the output URL.
Verification Checklist
- [ ] API credentials return a valid credit balance
- [ ] Link creation returns an
idwith extracted page data - [ ] Video task creation returns a
pendingstatus - [ ] Polling eventually shows
donestatus - [ ] Output URL returns a playable MP4 video
Credit Cost
| Operation | Credits |
|---|---|
| Check credits | 0 |
| Create link | 0 |
| URL-to-video (create) | 5 per 30s |
| URL-to-video (preview) | 1 per 30s |
| URL-to-video (render) | 4 per 30s |
Credit Tip
Always generate a preview first (1 credit/30s), review the output, then render the final version (4 credits/30s). This saves credits when iterations are needed.
Common First Errors
| Error | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Invalid API ID or Key | Re-check credentials from dashboard |
| 403 Forbidden | API access not enabled | Enable API access in account settings |
| 400 Bad Request | Missing required fields | Check the request body matches the expected format |
| 402 Payment Required | Insufficient credits | Purchase more credits or upgrade plan |
See Also
- Authentication SOP -- Detailed auth patterns
- URL to Video SOP -- Full URL-to-video workflow
- Credit Costs Reference -- Complete credit matrix