Contents
Get AI Settings - Plugixa Stream
GET /plugixa-stream/v1/admin/ai/settings
The AI subtitle settings: the Claude model that translates, and whether the Anthropic and OpenAI keys are saved. The keys are never returned.
Needs a user with the plugixa_stream_manage_settings capability (signed in with an Application Password or the login cookie). Administrators hold it; other roles only when you grant it.
Request
GET https://your-site.example/wp-json/plugixa-stream/v1/admin/ai/settings
Responses
200 OK.
{
"success": true,
"data": {
"model": "claude-opus-5-5",
"models": ["claude-opus-5-5", "claude-sonnet-5-5", "claude-haiku-5-5"],
"has_anthropic_key": true,
"has_openai_key": false
}
}
| Field | Type | Meaning |
|---|---|---|
data.model |
string |
The Claude model used for translation |
data.models |
string[] |
The models you can choose |
data.has_anthropic_key |
boolean |
An Anthropic key is saved (translation) |
data.has_openai_key |
boolean |
An OpenAI key is saved (transcription) |
Errors
| Status | Code | When |
|---|---|---|
401 / 403 |
plugixa_stream_forbidden |
The caller lacks the capability. |
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-stream/v1/admin/ai/settings" \
-u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-stream/v1/admin/ai/settings');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => getenv('WP_USER') . ':' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-stream/v1/admin/ai/settings', {
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
},
});
const { data } = await response.json();
Quick Links
Share