> ## Documentation Index
> Fetch the complete documentation index at: https://docs-vip.apigo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude video generation example

> Claude video capability boundary and recommended workflow.

## Official capability boundary

* Anthropic's public API does not expose a dedicated video-generation endpoint
* Claude is better suited to video understanding than video rendering

## Recommended workflow

1. Route true video generation to [OpenAI video](/en/api-reference/endpoints/openai/video) or [Gemini long-running video](/en/api-reference/endpoints/gemini/video-predict-long-running)
2. For video understanding, preprocess frames or transcripts and send them to [Claude /v1/messages](/en/api-reference/endpoints/claude/video)
3. Use Claude for script refinement, summarization, or scene analysis

## cURL example

```bash theme={null}
curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-sonnet-4-20250514",
    "max_tokens": 1024,
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "image",
            "source": {
              "type": "url",
              "url": "https://example.com/video-frame-001.png"
            }
          },
          { "type": "text", "text": "Summarize the scene and suggest a stronger video script." }
        ]
      }
    ]
  }'
```

## Python example

```python theme={null}
from anthropic import Anthropic

client = Anthropic(api_key="<ANTHROPIC_API_KEY>")

response = client.messages.create(
    model="claude-sonnet-4-20250514",
    max_tokens=1024,
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "image",
                    "source": {
                        "type": "url",
                        "url": "https://example.com/video-frame-001.png",
                    },
                },
                {"type": "text", "text": "Summarize the scene and suggest a stronger video script."},
            ],
        }
    ],
)

print(response.content[0].text)
```

## Node.js example

```js theme={null}
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.ANTHROPIC_API_KEY,
});

const response = await client.messages.create({
  model: "claude-sonnet-4-20250514",
  max_tokens: 1024,
  messages: [
    {
      role: "user",
      content: [
        {
          type: "image",
          source: {
            type: "url",
            url: "https://example.com/video-frame-001.png"
          }
        },
        { type: "text", text: "Summarize the scene and suggest a stronger video script." }
      ]
    }
  ]
});

console.log(response.content[0].text);
```

## Best practices

* Keep generation and understanding as separate product workflows
* Persist preprocessing artifacts for reproducibility
* Use Claude for analysis, not as a pretend video generator
