What is Claude Code?
Claude Code is Anthropic’s official CLI tool that lets you work with Claude directly in your terminal. It supports skills — packaged instructions that teach Claude how to perform specific tasks like calling APIs, generating code, or managing workflows. The official RawUGC skill lets you generate and manage AI videos from inside Claude Code. Instead of writing fetch calls or curl commands, you describe what you want and Claude handles the API calls, polling, and error handling for you.View on skills.sh
Get the official RawUGC skill for Claude Code
Why use the skill?
| Raw API | Claude Code Skill | |
|---|---|---|
| Setup | Write auth headers, base URLs, polling logic | One install + API key |
| Video generation | Build JSON payloads, handle async polling | ”Generate a video of a sunset beach” |
| Error handling | Parse RFC 7807 errors, implement retries | Automatic with plain-English feedback |
| Status checks | Write polling loops with backoff | ”Check on my video” |
Setup
1. Get your RawUGC API key
Go to Account Settings and create a new API key. Copy the secret — it’s only shown once.2. Install the skill
Run this command in your terminal:.claude/skills/ directory, making it available to Claude Code.
3. Configure your API key
Add your API key as an environment variable. The simplest way is to export it in your shell profile (~/.zshrc or ~/.bashrc):
source ~/.zshrc.
Alternatively, you can set it in your Claude Code settings at ~/.claude/settings.json:
4. Verify the skill is loaded
Start a new Claude Code session and ask:rawugc-api in the list. You can also invoke it directly:
Usage
Once installed, Claude automatically uses the RawUGC skill when you ask about video generation. You can also invoke it explicitly with/rawugc-api.
Generate a video
Just describe what you want:- Pick the best model for your request
- Build the API request with the right parameters
- Submit the generation task
- Poll for completion automatically
- Return the video URL when it’s ready
Specify a model
You can request a specific model:| Model | Type | Use case |
|---|---|---|
sora-2-text-to-video | Text to Video | General purpose video from text prompts |
sora-2-image-to-video | Image to Video | Animate a still image |
veo3 | Text/Image to Video | High quality generation |
veo3_fast | Text/Image to Video | Faster generation, same quality tier |
kling-2.6/motion-control | Motion transfer | Apply motion from a reference video |
Use image-to-video
Provide an image URL to animate it:Check video status
List your videos
Configure video settings
You can specify additional parameters in your prompt:- Aspect ratio:
portraitorlandscape - Resolution:
720por1080p - Frame count:
10or15frames - Character: specify a character username (e.g.
rawugc.mia)
Example workflows
Batch content creation
Image-to-video pipeline
Generate and integrate
Troubleshooting
”Authentication failed”
Make sureRAWUGC_API_KEY is set in your environment:
”Insufficient credits”
Purchase more credits at rawugc.com/billing. Each model lists its credit cost in the Models reference.”Rate limit exceeded”
The API allows 10 requests per minute. If you’re generating many videos at once, space out your requests. The skill handles polling intervals automatically.Skill not appearing
Skills are loaded when a Claude Code session starts. If you just installed the skill:- Start a new Claude Code session
- Ask “What skills are available?” to verify
- If still missing, check the skill was installed correctly:
rawugc-api directory.
Skill not triggering automatically
If Claude doesn’t use the skill when you ask about video generation, invoke it directly:Updating the skill
To get the latest version of the skill:When to use the API directly
The Claude Code skill covers the most common workflows, but you may want the REST API directly when:- Building a production integration — embed video generation in your own app
- Automating at scale — programmatic batch generation with custom retry logic
- Webhook consumers — receiving completion callbacks in your backend
- Custom pipelines — chaining video generation with other services

