Getting StartedQuickstart
Quickstart
Get your first AI API response in under 5 minutes. TexAPI is a drop-in compatible gateway — if you're using the OpenAI SDK, you only need to change the base URL and API key.
OpenAI SDK Compatible
TexAPI implements the OpenAI API specification. Most OpenAI SDK code works without modification — just update your baseURL and apiKey.
1. Install the SDK
bash
2. Set your API key
.env
3. Make your first request
Node.jsPythoncurl
example.ts
4. Expected response
json
Never expose your API key in client-side JavaScript. Always use environment variables and server-side code for API calls.