Prerequisites
- Claude Code installed (
npm install -g @anthropic-ai/claude-code) - A Claude subscription (Pro, Max, or API access)
- A Pictory API key from app.pictory.ai/api-access (starts with
pictai_)
Setup
Recommended CLAUDE.md Template
Drop this into your project root. Claude Code will load it automatically every session.
Example Prompts
After Claude Code loadsCLAUDE.md, you can prompt it naturally:
- “Write a Python script that takes a recipe (list of steps as strings) and submits each step as a scene to the storyboard render endpoint. Use my chef avatar (
chef_07).” - “Debug this payload — I am getting a 400. Here is the JSON: [paste]”
- “Add webhook support to my existing
submit_render.jsso I do not have to poll.” - “Write a Make.com HTTP module configuration that calls the Pictory render API with a template ID and dynamic recipe scenes from the previous module.”
Connecting via MCP
If you want Claude Code to call the Pictory API as a structured tool (rather than generating cURL/code), connect the Pictory MCP server. Setup details at Pictory MCP Server.Troubleshooting
Claude Suggests `Bearer YOUR_API_KEY`
Claude Suggests `Bearer YOUR_API_KEY`
Cause: Training-data bias toward OAuth/Bearer flows.Resolution: Reinforce the rule in
CLAUDE.md: “Authorization header value is the raw key with no prefix.” If it still happens mid-session, correct it once — Claude Code will pick up the correction.Claude Invents an Endpoint That Does Not Exist
Claude Invents an Endpoint That Does Not Exist
Cause: Insufficient context loaded.Resolution: Add this line to your prompt: “Verify the endpoint exists by referencing https://docs.pictory.ai/openapi.json before suggesting it.” Or fetch
llms-full.txt and paste relevant sections.Videos Submitted via Claude-Generated Code Do Not Appear in My Projects
Videos Submitted via Claude-Generated Code Do Not Appear in My Projects
Cause: Code is missing
saveProject: true or templateId.Resolution: Update CLAUDE.md to require one of these on all render calls.Next Steps
Use Pictory with an LLM
System prompts, MCP, and example flows
End-to-End Recipes
Ready-to-run JSON payloads
Cursor Setup
Same setup, for Cursor users
Windsurf Setup
Same setup, for Windsurf users
