The majority of the times Elohim occurs in the Bible, it refers to the true God. However, even a brief glance through a Hebrew concordance will show that many times it refers to false gods. Dozens of verses could be cited as examples, but a few are: “You must not have any other gods [Elohim] besides me” (Exod. 20:3); “You must not bow down to their gods [Elohim]” (Exod. 23:24); “Israel chose new gods [Elohim]” (Judg. 5:8); and, “[Solomon’s] wives turned away his heart after other gods [Elohim]” (1 Kings 11:4). There are times when Elohim is used to refer to a specific pagan god: for example, Dagon (Judg. 16:23; 1 Sam. 5:7), Chemosh (Judg. 11:24), and Baal (1 Kings 18:24-27).
Elohim, “God,” can also refer to angels or other spirit beings. One example is Psalm 8:5, which says God made mankind a little lower than Elohim. Given the flexible meaning of Elohim, the verse could be saying that God made mankind a little lower than He Himself, or it could be saying that He made mankind a little lower than his representatives in the spirit world, i.e., angels. Thankfully, the interpretation is not in doubt because the verse is quoted in Hebrews 2:7, which says “angels,” letting us know that in Psalm 8:5, Elohim refers to God’s representatives, the angels. Thus Psalm 8:5 is an excellent example of how the New Testament clarifies our understanding of the Old Testament. Another example is Judges 13:22, where Manoah and his wife saw an angel, but exclaimed, “We have seen God [Elohim].” Their statement made perfect sense in the biblical culture because they saw God’s representative.
There are times when God’s representatives are called “God” (Elohim and even Yahweh!) when they represent God and speak on His behalf. This is referred to as “agency.” The essence of the principle of agency is: “a person’s agent is regarded as the person himself.” The principle of agency is well-attested by scholars and occurs quite a few times in the Bible. For example, in Genesis 16:13, even though Hagar was speaking to an angel, she referred to him as Yahweh and El (God). In Genesis 31:11 an angel speaks to Jacob, but in Gen. 31:13 he says, “I am the God [El] of Bethel.” In Genesis 32:28, 30 it seems Jacob is wrestling with God [Elohim], but we learn from Hosea 12:3-4 that it was an angel representing God. Another example is that Exodus 13:21 says “Yahweh” went before Israel in the pillar of fire, but Exodus 14:19 and 23:20-23 let us know it was an angel, a representative of God. So “Yahweh” did go in front of Israel as represented by his angel protector. Similarly, if you read Judges 2:1-4, an angel speaks to the Israelites, but his speech is in the first person as if he were God Himself.
Elohim, “God,” can also refer to human rulers, kings, prophets, and people who represent God in some way. Thus Exodus 21:6; 22:8-9, almost certainly refer to God’s representatives as Elohim, “God” (Exod. 22:28 likely does too. In those verses, the accompanying verb is plural, not singular, so the traditional teaching of the Rabbis, that the meaning is “judges,” which is also in the KJ21c, is almost certainly correct). Psalm 82:1 is noteworthy because it uses Elohim twice; at the beginning of the verse to refer to the true God, and at the end of the verse to refer to rulers and people who represent him. The verse says, “Elohim [God] takes his stand in his own assembly. He judges in the midst of the Elohim [gods].” Furthermore, Ps. 82:6 says, “You are Elohim [gods], all of you are children of the Most High.” As sons of the Most High, these rulers are qualified to be called Elohim, [gods]. Psalm 97:7 also calls rulers Elohim.
There are times when specific individuals are called Elohim, “God.” One example is Moses. In Exodus 7:1, God is speaking to Moses and says, “See, I have made thee God [Elohim] to Pharaoh” (Darby). Given the uniplural nature of Elohim, another translation is, “See, I have made you a god [Elohim] to Pharaoh” (BBE, KJV), but the fact is that Moses, who represents Elohim (“God”) can legitimately be called Elohim (“God”) in the biblical culture. Another example is when King Saul wanted to speak to the dead prophet Samuel and went to a woman who was a medium and necromancer (1 Sam. 28:7-15). When she conjured up “Samuel” (actually a demon impersonating Samuel), the woman said, “I see Elohim coming up from the ground” (1 Sam. 28:13). This is a good example of a person being called Elohim, and we could translate it “God” and understand the custom of God’s representatives being called “God,” or a more easily understood translation for the English reader is simply, “a god;” the woman saw “a god” coming up who she thought was Samuel.
Given the language of the time, and given that Jesus did represent the Father and have divine authority, for Thomas to refer to Jesus as “god” is certainly understandable. In contrast, to assert that Thomas said that Jesus was “God,” and thus 1/3 of a triune God, seems incredible. As was noted above, in biblical times it was common to call God’s representatives “God,” and the Old Testament contains quite a few examples, such as when Jacob wrestled with “God” and it is clear that he was actually wrestling with an angel (Hos. 12:4).