# auto-alt-text/2.7.0/src/App/Configuration/AIProviderConfig.php

Auto Alt Text, version 2.7.0. 37 lines.

- Page: https://pluginprobe.com/plugins/auto-alt-text/2.7.0/code/src/App/Configuration/AIProviderConfig.php
- Raw: https://pluginprobe.com/plugins/auto-alt-text/2.7.0/raw/src/App/Configuration/AIProviderConfig.php
- Modified: 2026-01-14T13:38:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/auto-alt-text/2.7.0/code/src/App/Configuration/AIProviderConfig.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace AATXT\App\Configuration;

/**
 * Configuration interface for AI providers.
 *
 * Defines the contract for all AI provider configuration objects,
 * implementing the Dependency Inversion Principle by depending on
 * abstractions rather than concrete implementations.
 */
interface AIProviderConfig
{
    /**
     * Get the API key for the AI provider.
     *
     * @return string The API key
     */
    public function getApiKey(): string;

    /**
     * Get the prompt template for generating alt text.
     *
     * @return string The prompt template
     */
    public function getPrompt(): string;

    /**
     * Get the model identifier to use.
     *
     * @return string The model identifier (e.g., 'gpt-4o', 'claude-sonnet-4')
     */
    public function getModel(): string;
}

```
