Skip to main content
Claude Code is Anthropic’s official CLI for Claude. This page shows you how to configure it to work productively with the Pictory API: making API calls, building integration code, debugging payloads, and operating as a Pictory-aware coding assistant.

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

1

Install Claude Code

2

Store your Pictory API key

Add the key to your shell profile (do not commit it):
3

Navigate to your project and start Claude Code

4

Add a CLAUDE.md file with Pictory context

Create a CLAUDE.md at your project root using the template in the next section. This teaches Claude Code the Pictory API conventions before you ask any questions.
Drop this into your project root. Claude Code will load it automatically every session.

Example Prompts

After Claude Code loads CLAUDE.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.js so 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

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.
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.
Cause: Code is missing saveProject: true or templateId.Resolution: Update CLAUDE.md to require one of these on all render calls.

Next Steps

Pictory Claude Skills

Skip the setup: install the ready-made Text-to-Video skill and create videos in plain English

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