Finding the Field You Need
A free lesson from Swipe AI · Building With AI APIs, level 2 · updated October 2026
By the Swipe team, founded by Colin · how we make lessons
The exact name of the field holding the real answer differs between providers — one might call it output, another might call it text or result. Whatever it's called, your code needs to know that specific field name to correctly pull out the actual content, the same way it needs the right endpoint address.
This is why reading a provider's documentation matters before writing anything that depends on the response: guessing the wrong field name means your code either crashes or, worse, silently grabs something that isn't the actual answer.
Two providers, two different field names for the same idea:
Provider A response: { output: "Here is your summary." }
Provider B response: { text: "Here is your summary." }
Same concept, different label — your code has to match whichever field the specific provider actually uses.What's the risk of assuming a response field name without checking documentation?
The exact field name holding the real answer in a response ____ between different providers.
Every AI provider uses the exact same field name for the response field containing the actual answer.
Free ai tools
Keep your streak going in Swipe AI
Swipe through every level of Building With AI APIs on your iPhone — with XP, stars, streaks, a personal advisor and the full track beyond these free levels.
Get the Swipe apps →