API Documentation
Integrate RepoClip into your CI/CD pipeline to generate promotional videos programmatically.
Authentication
All API requests require an API key passed via the Authorization header.
- Go to Dashboard → Settings
- Click "Generate API Key"
- Copy the key immediately — it is shown only once
curl https://repoclip.io/api/v1/credits \
-H "Authorization: Bearer rc_live_YOUR_API_KEY"Endpoints
POST/api/v1/generate
Start a new video generation.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| github_url | string | Yes | GitHub repository URL |
| mode | string | No | image (10 cr), video_short (40 cr), video_long (300 cr) |
| prompt | string | No | Custom instructions (max 500 chars) |
| aspect_ratio | string | No | 16:9, 9:16, 1:1 |
| visual_style | string | No | tech, realistic, minimal, vibrant |
| bgm | boolean | No | Enable background music (+20 cr) |
Example
curl -X POST https://repoclip.io/api/v1/generate \
-H "Authorization: Bearer rc_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"github_url": "https://github.com/owner/repo",
"mode": "image",
"prompt": "Focus on the API features"
}'Response (201)
{
"id": "a2140a91-...",
"status": "pending",
"credits_used": 10,
"credits_remaining": 40,
"estimated_time_seconds": 600,
"poll_url": "https://repoclip.io/api/v1/projects/a2140a91-..."
}GET/api/v1/projects/:id
Check generation status and retrieve the result.
curl https://repoclip.io/api/v1/projects/PROJECT_ID \
-H "Authorization: Bearer rc_live_YOUR_API_KEY"Response (completed)
{
"id": "a2140a91-...",
"status": "completed",
"video_url": "https://..../a2140a91.mp4",
"thumbnail_url": "https://..../thumb.jpg",
"share_url": "https://repoclip.io/v/a2140a91-...",
"duration_seconds": 62,
"resolution": "720p"
}Status progresses: pending → analyzing → generating → rendering → completed
GET/api/v1/credits
Check your remaining credits and plan info.
curl https://repoclip.io/api/v1/credits \
-H "Authorization: Bearer rc_live_YOUR_API_KEY"Response
{
"plan": "starter",
"credits": 40,
"costs": {
"image": 10,
"video_short": 40,
"video_long": 300,
"bgm_addon": 20
}
}Error Codes
| Code | HTTP | Description |
|---|---|---|
| unauthorized | 401 | Invalid or missing API key |
| insufficient_credits | 402 | Not enough credits |
| plan_restricted | 403 | Mode not available on your plan |
| not_found | 404 | Project not found |
| rate_limited | 429 | Too many requests |
All errors follow the format: {"error": {"code": "...", "message": "..."}}
GitHub Action
Use our official GitHub Action to generate videos automatically in your CI/CD pipeline.
Setup
- Generate an API key in Settings
- Add it as a repository secret named
REPOCLIP_API_KEY - Create a workflow file
Example: Generate on Release
name: Generate Demo Video
on:
release:
types: [published]
jobs:
video:
runs-on: ubuntu-latest
steps:
- uses: repoclip/generate-video@v1
id: video
with:
api-key: ${{ secrets.REPOCLIP_API_KEY }}
mode: image
prompt: "Highlight the new features in this release"
- name: Add video link to release
if: steps.video.outputs.status == 'completed'
uses: actions/github-script@v7
with:
script: |
const body = context.payload.release.body || '';
github.rest.repos.updateRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: context.payload.release.id,
body: body + '\n\n---\n[Watch demo video](${{ steps.video.outputs.share-url }})'
});Action Inputs
| Input | Default | Description |
|---|---|---|
| api-key | — | RepoClip API key (required) |
| mode | image | image, video_short, video_long |
| prompt | — | Custom instructions (max 500 chars) |
| aspect-ratio | 16:9 | 16:9, 9:16, 1:1 |
| visual-style | tech | tech, realistic, minimal, vibrant |
| bgm | false | Enable background music (+20 cr) |
| timeout | 1200 | Max wait time in seconds |
Action Outputs
| Output | Description |
|---|---|
| video-url | URL of the completed video |
| share-url | Public share page URL |
| thumbnail-url | Thumbnail image URL |
| status | completed or failed |
Rate Limits
| Plan | Per Minute | Per Day | Concurrent |
|---|---|---|---|
| Free | 10 | 50 | 1 |
| Starter | 20 | 200 | 3 |
| Pro | 30 | 500 | 5 |
| Agency | 60 | 1,000 | 10 |
Ready to get started?
Generate your API key and start creating videos programmatically.
Get API Key