Developer API
Make your first request.
Build a request, preview the response and connect your own compatible text gateway.
Quickstart
Set GATEWAY_URL to your gateway’s base URL, such as https://gateway.example/v1, and GATEWAY_KEY to your gateway key. Use a model ID supported by your gateway.
curl "$GATEWAY_URL/chat/completions" \
-H "Authorization: Bearer $GATEWAY_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-6.2-sol",
"messages": [
{ "role": "user", "content": "Say hello." }
]
}'
API playground
Preview any model request locally. Connected mode sends text requests to a gateway you choose.
Run a preview to see a response.
Connect a gateway
A compatible text gateway accepts POST /chat/completions under its base URL. Browser requests require the gateway to allow this site’s origin through CORS. Server-side integrations can use the SDK examples above.
The media requests in this preview illustrate request shapes. Use your provider’s API documentation for its supported endpoints and parameters.
View source on GitHub