# Create from a Custom Script

Provide a complete script marked with speaker labels (`SPEAKER_00`, `SPEAKER_01`, ...) to control every line in your video. Send it through the standard creation endpoint via the `text` field.

```bash
curl -X POST "https://api.autocontentapi.com/content/Create" \
  -H "accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "outputType": "video",
    "text": "SPEAKER_00: Welcome back!\nSPEAKER_01: Today we dig into productivity hacks..."
  }'
```

**Tips**

* Keep each line prefixed with `SPEAKER_00:` or `SPEAKER_01:` so the service can match voices.
* Add optional `voice1` / `voice2` fields when you need precise host selection.
* Scripts over 5,000 characters may be rejected—split longer pieces into multiple videos.

## Try it in code

* [C#](/code-samples/explainer-videos/csharp/from-custom-script.md)
* [Node.js](/code-samples/explainer-videos/nodejs/from-custom-script.md)
* [Java](/code-samples/explainer-videos/java/from-custom-script.md)
* [PHP](/code-samples/explainer-videos/php/from-custom-script.md)
* [Python](/code-samples/explainer-videos/python/from-custom-script.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.autocontentapi.com/quick-start/explainer-videos/from-custom-script.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
