Request routing and redirects
How a request to the Consumption API gets to the supplier fulfilling your inference, and which clients need configuration to follow the routing redirect.
Most clients follow 307 by default
cURL needs -L
-Lcurl -L -X POST https://api.thegrid.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "Text-Prime", "messages": [{"role": "user", "content": "Hello"}]}'Clients that need configuration
Firewall and domain allowlisting
307 is not an error
Last updated
Was this helpful?