Answer endpoint.
If a response format is also specified, the system prompt is applied to the content of the structured response.
import { Seltz } from "seltz";
const client = new Seltz();
const briefingStyle = `
Write as an analyst briefing an executive.
Open with a one-line bottom line, then at most three supporting bullets.
Avoid hedging language.
`;
const result = await client.answer({
query: "Who will be the next CEO of Apple?",
systemPrompt: briefingStyle,
});
console.log(result.answer);
from seltz import Seltz
client = Seltz()
BRIEFING_STYLE = """
Write as an analyst briefing an executive.
Open with a one-line bottom line, then at most three supporting bullets.
Avoid hedging language.
"""
response = client.answer(
"Who will be the next CEO of Apple?",
system_prompt=BRIEFING_STYLE,
)
print(response.answer)
curl -X POST https://api.seltz.ai/v1/answer \
-H "x-api-key: $SELTZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "Who will be the next CEO of Apple?",
"system_prompt": "Write as an analyst briefing an executive. Open with a one-line bottom line, then at most three supporting bullets. Avoid hedging language."
}'
**John Ternus will be Apple’s next CEO, effective September 1, 2026.** ([MacRumors](https://www.macrumors.com/2026/07/30/tim-cook-thanks-apple-shareholders/))
- Tim Cook said this was his final earnings call as CEO and that “John will lead these calls going forward.” ([MacRumors](https://www.macrumors.com/2026/07/30/tim-cook-thanks-apple-shareholders/))
- Cook will transition to executive chairman when Ternus takes over. ([MacRumors](https://www.macrumors.com/2026/07/30/tim-cook-thanks-apple-shareholders/))
- Other results also state that Apple has announced John Ternus as the incoming CEO and that Cook will step down in September 2026. ([NewsGram](https://www.newsgram.com/science/2026/04/21/apple-tim-cook-steps-down-who-is-john-ternus), [9to5Mac](https://9to5mac.com/2026/07/30/tim-cook-marks-final-earnings-call-as-apple-ceo-confirms-ternus-will-take-over-calls/))
{
"answer": "**John Ternus will be Apple’s next CEO, effective September 1, 2026.** ([MacRumors](https://www.macrumors.com/2026/07/30/tim-cook-thanks-apple-shareholders/))\n\n- Tim Cook said this was his final earnings call as CEO and that “John will lead these calls going forward.” ([MacRumors](https://www.macrumors.com/2026/07/30/tim-cook-thanks-apple-shareholders/))\n- Cook will transition to executive chairman when Ternus takes over. ([MacRumors](https://www.macrumors.com/2026/07/30/tim-cook-thanks-apple-shareholders/))\n- Other results also state that Apple has announced John Ternus as the incoming CEO and that Cook will step down in September 2026. ([NewsGram](https://www.newsgram.com/science/2026/04/21/apple-tim-cook-steps-down-who-is-john-ternus), [9to5Mac](https://9to5mac.com/2026/07/30/tim-cook-marks-final-earnings-call-as-apple-ceo-confirms-ternus-will-take-over-calls/))",
"citations": [
{
"url": "https://in.mashable.com/tech/100649/inside-apples-boardroom-who-will-succeed-tim-cook-as-ceo"
},
{
"url": "https://www.newsgram.com/science/2026/04/21/apple-tim-cook-steps-down-who-is-john-ternus"
},
{
"url": "https://fool.com/investing/2021/04/10/who-will-be-apples-next-ceo"
},
{
"url": "https://www.mactrast.com/2026/07/tim-cook-thanks-shareholders-who-have-put-there-trust-in-us-for-so-many-years/"
},
{
"url": "https://www.macrumors.com/2026/07/30/tim-cook-thanks-apple-shareholders/"
},
{
"url": "https://www.inkl.com/news/apples-next-ceo-inherits-a-product-empire-hungry-for-its-next-breakthrough"
},
{
"url": "https://www.macrumors.com/2026/08/03/apple-john-ternus-hiring-retired-vp/"
},
{
"url": "https://www.explosion.com/207823/tim-cooks-final-earnings-call-hes-all-in-on-john-ternus/"
},
{
"url": "https://9to5mac.com/2026/07/30/tim-cook-marks-final-earnings-call-as-apple-ceo-confirms-ternus-will-take-over-calls/"
},
{
"url": "https://timesofindia.indiatimes.com/technology/tech-news/tim-cook-thanks-shareholders-in-last-earnings-call-as-apple-ceo-says-we-have-a-bright-future-ahead/articleshow/132772693.cms"
}
]
}