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.

  1. Go to Dashboard → Settings
  2. Click "Generate API Key"
  3. 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

FieldTypeRequiredDescription
github_urlstringYesGitHub repository URL
modestringNoimage (10 cr), video_short (40 cr), video_long (300 cr)
promptstringNoCustom instructions (max 500 chars)
aspect_ratiostringNo16:9, 9:16, 1:1
visual_stylestringNotech, realistic, minimal, vibrant
bgmbooleanNoEnable 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

CodeHTTPDescription
unauthorized401Invalid or missing API key
insufficient_credits402Not enough credits
plan_restricted403Mode not available on your plan
not_found404Project not found
rate_limited429Too 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

  1. Generate an API key in Settings
  2. Add it as a repository secret named REPOCLIP_API_KEY
  3. 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

InputDefaultDescription
api-keyRepoClip API key (required)
modeimageimage, video_short, video_long
promptCustom instructions (max 500 chars)
aspect-ratio16:916:9, 9:16, 1:1
visual-styletechtech, realistic, minimal, vibrant
bgmfalseEnable background music (+20 cr)
timeout1200Max wait time in seconds

Action Outputs

OutputDescription
video-urlURL of the completed video
share-urlPublic share page URL
thumbnail-urlThumbnail image URL
statuscompleted or failed

Rate Limits

PlanPer MinutePer DayConcurrent
Free10501
Starter202003
Pro305005
Agency601,00010

Ready to get started?

Generate your API key and start creating videos programmatically.

Get API Key