Generate Alt Text from File
generate_alt_text_from_fileGenerate alt text from a local image file. Reads the file, base64-encodes it, and sends it to AltText.ai, costing one credit.
Instructions
Generate alt text from a local image file. Reads the file, base64-encodes it, and sends it to AltText.ai. Costs 1 credit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Comma-separated language codes (e.g. 'en', 'en,fr,es') | |
| tags | No | Tags for organization | |
| asset_id | No | Custom asset ID (default: auto-generated hash) | |
| keywords | No | Keywords to incorporate | |
| metadata | No | Custom metadata (string key-value pairs) | |
| file_path | Yes | Absolute path to a local image file | |
| max_chars | No | Maximum character length for the alt text | |
| overwrite | No | Overwrite existing alt text if image was previously processed | |
| gpt_prompt | No | Custom prompt template. Use {{AltText}} as a placeholder for the generated alt text. | |
| negative_keywords | No | Keywords to avoid |