Get Text Styles
Branding - Video
Get Text Styles
Retrieve all available text styles defined in the Pictory application
GET
Get Text Styles
Documentation Index
Fetch the complete documentation index at: https://docs.pictory.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Fetch all text styles defined in the Pictory App. Text styles are predefined formatting presets that control the appearance of text in your videos, including font, size, color, weight, alignment, and other visual properties. These styles can be applied to captions, titles, headings, and body text in your video projects. Use this endpoint to retrieve available styles for video editing, branding customization, or to allow users to select from predefined text formatting options.You need a valid API key to use this endpoint. Get your API key from the API Access page in your Pictory dashboard.
API Endpoint
Request Parameters
Headers
API key for authentication (starts with
pictai_)Response
Returns an array of text style objects, each containing a unique identifier and descriptive name.List of available text styles
Response Examples
Code Examples
Common Use Cases
1. List All Available Styles
Retrieve and display all text styles:2. Search Styles by Name
Find styles matching specific criteria:3. Create Style Selector for UI
Build a dropdown/selector component:4. Cache Styles Locally
Cache styles to reduce API calls:5. Group Styles by Category
Organize styles into logical categories:Style Categories
Based on the returned styles, common categories include:| Category | Examples | Use Case |
|---|---|---|
| Captions | Black Traditional Caption, Dark Blue Caption, Standard White Caption | Subtitles and closed captions |
| Headings | Bold One-word Heading, Orange Handwritten Heading, Headliner | Video titles and section headers |
| Colors | Navy blue, Sunflower yellow, Lemon Yellow, Indigo ink | Color-themed text |
| Standard | Default, Standard, Body text, Sub heading, Heading | General-purpose text |
| Branded | Sleek, Classic mini, Clean, Bold edge, Polished pro | Consistent branding |
| Special Effects | Flash, Retro, Handwritten, Typewriter, Cartoon | Creative and stylized text |
| News/Media | Red Breaking News Caption, Large Yellow News Heading | News and announcements |
Usage Notes
Style IDs: Use the UUID
id field when applying styles to video elements. Style names are for display purposes only.Consistent Across Projects: The same text styles are available across all your video projects, ensuring brand consistency.
Best Practices
- Cache Styles: Fetch styles once and cache them locally. Text styles change infrequently.
-
Use Style IDs: Always reference styles by their UUID
id, not by name. Names may change, but IDs remain constant. - Provide Search/Filter: In user interfaces, provide search or filter functionality to help users find specific styles quickly from the large list.
- Group by Category: Organize styles into logical categories (captions, headings, colors) for better user experience.
- Show Previews: If possible, display visual previews of text styles to help users make selections.
- Handle Missing Styles Gracefully: If a referenced style ID does not exist, fall back to a default style.
- Sort Alphabetically: Present styles in alphabetical order for easy browsing.
- Validate Style IDs: Before applying a style, verify the ID exists in the current list of available styles.
